Anyone know how this feature done (magnifying text)? [closed] - swift

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I saw this feature in many children apps where the word magnified when the reader read it. i want to know how it was achieved in swift here is an example:
https://youtu.be/Hv0In39r2so
I have no idea what I've to seach for to learn about it

It's hard to be sure. in the example you linked it looks like it's drawing a highlighing rectangle with a drop shadow behind the text rather than magnifying it.
You could use attributed strings (NSAttributedString) to highlight each word in bold, for example. I'm not sure how you would synchronize the highlighting with the spoken text however. You might need to create an array of time indexes for the time when the audio begins speaking each word in the text, along with a range for each word to be highlighted. You could then apply bolding (or other styling changes) to one word at a time as each time index passes.
If you wanted to use a highlighting box as in the video you'd probably have to use CoreText. This link should get you started, but be warned that CoreText is complicated. It is not a beginner framework.

Related

is there any input-process-output chart generate tools? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I can make a chart with any chart drawing tool, like 'LibreOffice Draw'. But I want to save the effort of drawing arrow-lines, blocks. Just give it the inputs, outputs and process name, then it will generate a chart for me.
I use graphviz for this. You textually specify the graph you want and it provides a variety of command line tools for drawing it. It doesn't always draw things perfectly, but it usually does a good enough job. There are also probably LaTeX packages out there, if you're into that, although its probably overkill for your needs if you don't use it already.
Graphviz will do this. You define a graph using fairly simple text format and it will layout and draw the output.
Graphviz documentation

Real TIme Image Processing (OCR) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am planing to develop an app like Word Lens. Can any one suggest a good library that I can use? or any one explain technology behind the Word Lens App? is it reel time image matching or OCR? I know some image processing library like OpenCv, tesseract...Any help is greatly appreciated...
I'm one of the creators of Word Lens. Although there are some OCR libraries out there (like tesseract), we decided to make our own in order to get better results and performance. Our general algorithm goes like this:
copy the image from the camera and get its grayscale component
level out the image so the text stands out clearly against the background
draw boxes around things that look like characters & sentences
do OCR: match the pixels in each box against a database of characters -- this is actually pretty hard!
collect the characters into words, look up in a dictionary (this is hard too, because there will be mistakes in the OCR)
draw the results back onto the image
Image matching by itself is not good enough, because of the huge variety of fonts, words, and languages out there.
OpenCV is a great library to get up and running with, and to learn more about computer vision in general. I would recommend building off their examples, and playing around there. Have fun!

Is there a good outliner/note-taking alternative to emacs org-mode (with images)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Org-mode from Emacs is awesome to scribble down project notes and also maintain a todo list where you can quickly move things around (up/down, indentation etc.). However, especially when it comes to images, the emacs is rather limited (since it's a text-editor). There are ways to include images, even copy-pasted images from the clipboard, but the results are rather unsatisfactory. For instance, an image in emacs is treated as a character, so if the images is higher than your screen there is no way to see the bottom of it. The existing workarounds for the scrolling problems are also not very satisfactory.
Is there any good alternative to emacs org-mode? I checked through dozens of programs, but no other software (that supports rich-text) would allow for fast, keyboard-based folding and moving of items.
Org-mode has now in development (git) the following, that would fit images in Org buffers, with no need for thumbnails, etc.:
(setq org-image-actual-width 300)
=> always resize inline images to 300 pixels
etc...
Development version:
http://orgmode.org/cgit.cgi/org-mode.git/
git://orgmode.org/org-mode.git
It may be considered heresy, but what about OneNote? It's WYSIWYG and freeform.

Rich text editor library for iOS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Does somebody know a rich text editor (like NSTextView for Mac OS X) library for the iOS platform?
The Omni Group also released some code that could be the start of a rich-text editor.
http://github.com/omnigroup/OmniGroup/tree/master/Frameworks/OmniUI/iPad/Examples/TextEditor/
Based on Core Text.
I am following 3 rich text editors for iOS, available in GitHub. Below is the list:
iOS-Rich-Text-Editor
RichEditorView
ZSSRichTextEditor
ZSSRichTextEditor is best library among these.
Here's an attempt at a fully implemented one: http://www.cocoanetics.com/parts/dtrichtexteditor/
One doesn't exist, you'll have to craft one yourself. There are examples of using Core Text out there, if you just know where to look. For instance, the I7CoreTextExample is one such example.

Looking for an example of a complex text editor using SWT's StyledText [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need to write a text editor which can merge arbitrary text styles from several sources (in my case: spell checker, style hints like repeated words, links and other markup) using SWT StyledText. I examined the the standard ways to do it:
I could install a modify listener and create the styles for the whole text for each modification. That's pretty slow but accurate.
I could use a LineStyleListener. This means I'll have to redraw the text myself (for example in the case of repeated words because some of them will be outside the current edit range) plus the editor doesn't cache the styles, so this API gets called much more often then one would expect.
I could use a background reconciler like the IDE does. This means the styling lags behind the edits which is bad from a user perspective.
The icing of the cake is that I need hierarchical styles, so I have to reimplement the StyleRange API.
Has anyone seen a better solution? Can someone direct me to some examples which do more than highlight keywords?
I used this example as a starting point for an editor which got fairly advanced. It helped me to understand multi-line styling, and implemenent a reg-ex based styling engine for my editor.
The StyleRange API doesn't really provide a way of doing intersections like merging style 1 which goes from index 1 to index 20 and style 2 ranging from 10 to 14. Something like this.
If this is what you mean with 'hierarchical styles', there's a solution in JFace: org.eclipse.jface.text.TextPresentation
You can add all your styles with mergeStyleRange(.), and use getAllStyleRangeIterator() to get the result. Very useful.