In my application, I have a screen that shows pricing. However, the currency icon does not appear correctly in some places (look at the amount 7000). This problem is more frequent on iOS devices, with a few occurrences on Android devices.
The information is retrieved in the following manner:
Text("₹ 7000.00") // in application the pricing is retrieved from api call.
The currency icon is included in the data I receive from the api request. "₹7000" is an example.
The font used is Gotham Rounded. Is this due to the font's inability to render currency icons? What is the best way to resolve this problem?
It's better to use Unicode characters for currency symbols because most of the symbols are not yet supported in flutter so your device does not understand the string so it does not render it on mobile.
Unicode characters on the other hand could be easily translated after compilation
You can find unicode characters for different symbols here
So you have something like this instead
Text("\u{20B9}");
Related
My organisation now has a policy to make all documents accessible, and a long list of guidance how to do so. Most of the requirements are OK. Alt-text is only a small amount of work; sans-serif fonts may not be as nice as Times Roman, but they’re readable; spacing using paragraph formatting rather than carriage returns is good practice anyway.
But then there’s figures. On a paginated document, large figures look great floating with text wrapped around them, but terrible inline, because page breaks often cause huge blank gaps in the page before the inline image. Same goes for tables. But our accessibility guidance insists that only inline images/tables are acceptable for screen readers – and Word’s accessibility checker does as well, though the requirement is missing in Microsoft’s accessibility documentation.
Is there some way to make floating images (and floating tables) accessible, so that popular screen readers will know where to parse them in the context of the document? I'm expecting that the documents will be shared as an exported PDF, but even for screen readers to work with the DOCX file would be sufficient.
It sounds as though this is a 'flaw' (design fault) in Microsoft Word's accessibility checker, which doesn't understand text frames being used for table and image layout. Both #slugolicious and my organization's accessibility trainer confirm that having images and tables floating with no additional text apart from the caption is actually fine for modern screen readers.
My error was assuming that my organization's standards included 'No errors from Microsoft Accessibility Checker'. That is not the case.
Need help to understand if Flutter can help us.
We are looking at flutter for app development for a rewrite of a js electron for desktop and js webview for mobiles.
It is basically a sophisticated reading app with multiple dictionaries and searching algorithms and other features specific to an Asian language and also English parallel translations.
We want to display Religious books in the native Unicode language with extensive dictionary support.
The books will have some bold and heading text markup (the markup style can be any format but we currently use html styles).
The books will be in a sqlite DB and streamed to the user.
The books will be stored in the db by paragraph.. We need to display this in a built up flow to the user.
The books will have some items which can be displayed or hidden upon user request but we can regenerate the display if needed. (currently it does live through js).
The books will need to communicate if a tap() or Textselect() event has been called (we often tap to select a word and it goes to a custom dictionary).
Searching for strings in the book will be done by paragraph and then we need to 1) highlight the text and bring the user to that text.
We wish to implement infinite scroll or "Lazy load" as the books are very big and often text processing to change the native script font is involved before display.
Conclusion
I think this captures much of what we want to have.
I have done some work in flutter, but i'm very new to it.
It seems that there is a SelectableText.rich widget and perhaps we could connect them together in an infinite scroll list widget from pub.dev
For hiding the page numbers.. and alt readings, it is fine to reload the book and remove those as we feed the widget with text.
There are a few html widgets, but I'm not sure if it gives select and tap events.
Can Flutter do this for us?
Are there packages that I'm not aware of?
Am I heading in the wrong direction?
I have done a test called https://github.com/bksubhuti/mydbtest
It seems to work.. the selecting of texts are off by a few bits, but it is workable..
However, I have found a full app for my purpose already written in flutter with a sqlite philosophy already working. The dev and myself are in touch and the project has been upgraded to null safety. Flutter is awesome. In about a month.. part time.. I have learned flutter and written my first app and submitted it to the play store called Buddhist Sun. (pending approval). I use sqflite and the multiplatform eq for getting cities.. the db search of cities was more of a flutter tutorial for me than purpose.
https://github.com/bksubhuti/buddhist_sun
Flutter will be the language of the future. I'm so amazed at how great it works and all the packages on pub.dev
Is it possible to change the result language of the Google Places Autocomplete iOS component (similar to changing it when using JavaScript but in Swift)? Specifically I would like to change the search results language.
Per default it seems to be set to the phone's system language meaning that on my German phone I get German city names and on my English phone I get English ones.
[EDIT]: I'm using the Google Placepicker Library that can be installed via Cocoa Pods. My code looks very similar to the first code snippet on the linked page.
I am writing an Instagram client for Ubuntu in Vala. And I'm using Gtk.Labels to display post title, comments etc. Problem is, sometimes received data contains special symbols like smiles etc. And currently they are displayed incorrectly, like in the picture (these squares containing 6 hex numbers):
I guess that's not the problem of my application because I've seen such behavior in other apps (for example, Pantheon Files). But anyway, this is not the way I want my program to behave, I want these symbols to be displayed correctly.
So, my question is: is it possible to achieve the behavior I want? And if it is possible, then how?
There was indeed an issue with the font I'm using. I just installed ttf-ancient-fonts package (according to the https://www.kirsle.net/blog/entry/make-emoji-work-in-linux) and now it is working.
Is it possible to customize Recaptcha to display text in English only words?
As recently, I found that text could be displayed in other language like Hebrew.
Here is example:
To be honest it is not possible to type such words for ordinary users having keyboard with Roman alphabet and not many know that image can be redrawn.
AFAIK, via the API you may only customize the interface, not the images.
reCAPTCHA uses scans from the real books, so sometimes, even in latin books there are some non latin characters too.
But there should be no problem here. reCAPTCHA displays always two words: one unknown even for the reCAPTCHA (probably the Hebrew in this case), and the other one, which is really checked.
So the user may misspell the Hebrew, but it's OK when he types the other one (latin) word as expected.
(Only guesses, but I think that's how this thing works).
Have you looked at: http://code.google.com/apis/recaptcha/docs/customization.html#i18n?
That's the API. It talks about setting the translation, but I've never used it, so I'm not 100% sure whether it can do what you want.
Due to where Recaptcha gets its captcha string from (text scanned from books), it could very well be limited to languages that use the Latin alphabet.
I bet that Reviled is the challenge word (the one scanned from the book) and the other is the test word (the one it uses to verify whether or not the person who typed the challenge word is actually typing something legitimate or not).