Commit Graph

7715 Commits

Author SHA1 Message Date
Léa Saviot
80e2879cb7 [poincare] Make GridLayout rendering faster 2019-04-12 15:16:52 +02:00
Léa Saviot
fbfbf5c845 [poincare] Rational::createLyt gives single CodePointLyt if possible
This reduces the size of created layouts, thus allowing more layouts to
be created, as there is a limit on the number of layout in a lyout field
2019-04-12 15:16:52 +02:00
Léa Saviot
1da8a5af52 [poincare] Do not simplify random nor randint
For instance, random()+random() is simplified into random()+random(),
not 2*random()
2019-04-12 15:16:52 +02:00
Léa Saviot
02f6a577ce [poincare/test] Fix test due to bigger printable decimals
The max size of printed float is calculated to make 1.121212..ᴇ-308 fit
with 15 significant digits, but ᴇ now uses more than one char, which
makes more floats printable.
2019-04-12 15:16:52 +02:00
Léa Saviot
f638809ca5 [kandinsky] Fix font test 2019-04-12 15:16:52 +02:00
Léa Saviot
11b26bfa16 [poincare] Add tests on random 2019-04-12 15:16:52 +02:00
Léa Saviot
92574ab0a3 [coding style] Small inlining 2019-04-12 15:16:52 +02:00
Léa Saviot
8ac2c80625 [apps/settings] Reload the title bar when changing language
Before, the "Settings" title would not be immediately translated into
the new language.
2019-04-12 15:16:52 +02:00
Léa Saviot
c5f555b8f1 [apps] Fix SumGraphController array size 2019-04-12 15:16:52 +02:00
Léa Saviot
2d83c2994c [escher] Fix TextArea::handleEventWithText
It did not handle properly a new line (placed the cursor wrongly).
2019-04-12 15:16:52 +02:00
Léa Saviot
d98e1f44cd [escher] Fix null termination for drawString in ScrollViewIndicator 2019-04-12 15:16:52 +02:00
Léa Saviot
1b6b94c4bc [poincare/parser] Syntax error on combining code points 2019-04-12 15:16:52 +02:00
Léa Saviot
f39358423b [escher/text_field] Fix rect dirtying in setText
The content of the buffers might no be initialized before the setText,
so we cannot use reloadRectFromPosition, as it requires to perform
stringSize, which needs valid content.
2019-04-12 15:16:52 +02:00
Léa Saviot
e6d8820c08 [unicode] Comment about avoiding accents in literals 2019-04-12 15:16:52 +02:00
Léa Saviot
d1d93fc3d6 [unicode] Prevent upper case letters with accents 2019-04-12 15:16:52 +02:00
Léa Saviot
693d7e0976 [unicode] Clean typography (accents, non present glyphs...) 2019-04-12 15:16:52 +02:00
Léa Saviot
2034103f54 [i18n] Remove duplicate entry 2019-04-12 15:16:52 +02:00
Léa Saviot
ab0af58d31 [unicode] Handle not properly written UTF8 in nextCodePoint 2019-04-12 15:16:52 +02:00
Léa Saviot
86f6e6e72b [escher] Fix TextField::ContentView::setEditing 2019-04-12 15:16:52 +02:00
Léa Saviot
b1d18416e8 [escher] Fix buffer choice in TextField::glyphFrameAtPosition 2019-04-12 15:16:52 +02:00
Léa Saviot
06269d5349 [unicode] Fix portuguese literals 2019-04-12 15:16:52 +02:00
Léa Saviot
7b5636f298 [unicode] Clean decoder use 2019-04-12 15:16:52 +02:00
Léo Solé
fd407ce3d9 [toolbox] Translate toolbox title in all languages 2019-04-12 15:16:52 +02:00
Léo Solé
e4526124f9 [unicode] Fix Spanish literals 2019-04-12 15:16:52 +02:00
Léo Solé
387cf996c0 [unicode] Add accents in french litterals 2019-04-12 15:16:52 +02:00
Léa Saviot
e5afda96c2 [poincare] Fix printFloat buffer legnths.
Some code points are not 1 byte long.
2019-04-12 15:16:51 +02:00
Léa Saviot
ccc1d51634 [ion/storage] fix use of unicode method 2019-04-12 15:16:51 +02:00
Léa Saviot
a214bbdc5a [unicode] Use unicode when dealing with chars - Part 2 2019-04-12 15:16:51 +02:00
Léa Saviot
68db4620ba [escher/text_area] Fix rect dirtying after Clear event 2019-04-12 15:16:51 +02:00
Léa Saviot
c9feec7cd7 [unicode] Fix stop condition in TextArea::Text::removeRemainingLine 2019-04-12 15:16:51 +02:00
Léa Saviot
f4cf7530f6 [unicode] Fix stop condition of CopyAndRemoveCodePoint 2019-04-12 15:16:51 +02:00
Léa Saviot
f5f172ce67 [unicode] Fix code point serialization 2019-04-12 15:16:51 +02:00
Léa Saviot
32ad041336 [poincare] Fix Decimal serialization 2019-04-12 15:16:51 +02:00
Léa Saviot
2c2c62b61b [poincare] Clearer CodePointLayout log 2019-04-12 15:16:51 +02:00
Léa Saviot
6251a8ac33 Use correct unicode symbols 2019-04-12 15:16:51 +02:00
Léa Saviot
3bc9a390bf [escher/ion] Fix wrong assertions 2019-04-12 15:16:51 +02:00
Léa Saviot
8403eb4704 [apps] In consexpr char *, empty layouts should be inserted using /x11 2019-04-12 15:16:51 +02:00
Léa Saviot
646931b3b5 [text_area] Fix Text::Position use with unicode
A glyph offset is not equivalent to a code point offset since a code
point can be several glyphs long.
2019-04-12 15:16:51 +02:00
Léa Saviot
1f76cd65f3 [apps] Fix SumGraphController use of CodePointString 2019-04-12 15:16:51 +02:00
Léa Saviot
0a95276be9 [escher/text_field] Fix removeCodePoint rect dirtying 2019-04-12 15:16:51 +02:00
Léa Saviot
4ecb0a6815 [utf8_decoder] Fix previousCodePoint 2019-04-12 15:16:51 +02:00
Léa Saviot
0b05480aaf [escher/text_field] Code cleaning 2019-04-12 15:16:51 +02:00
Léa Saviot
eb80005bde [apps] Calling draftTextLength should be done only if text field is editing 2019-04-12 15:16:51 +02:00
Léa Saviot
5be803ac45 [unicode] Fix python area 2019-04-12 15:16:51 +02:00
Léa Saviot
784381bd33 [unicode] Use unicode when dealing with chars - Part 1 2019-04-12 15:16:51 +02:00
Léa Saviot
b59d568063 Remove useless comment 2019-04-12 15:16:51 +02:00
Léa Saviot
79dc1dc2b9 Remove compilation warnings 2019-04-12 15:16:51 +02:00
Léa Saviot
0ebfab773e [escher/ion] Factorize code for removing a code point in text field/area 2019-04-12 15:16:51 +02:00
Léa Saviot
aac78ca32a [escher/ion] Standard methods in UTF8Helper used in text_area
String manipulations need to be done using an UTF8 decoder, but some
manipulations can be optimized if the code points we manipulate are only
one char long. These optimizations are done inside UTF8Helper methods.
2019-04-12 15:16:51 +02:00
Léa Saviot
e6051fae42 [unicode] Methods optimized when code points are one char long 2019-04-12 15:16:51 +02:00