Commit Graph

7723 Commits

Author SHA1 Message Date
Émilie Feral
067577ea02 [escher] Avoid unnecessary relayouts 2019-05-03 15:53:20 +02:00
Léa Saviot
69aad40c89 [poincare] Make GridLayout rendering faster 2019-05-03 15:53:20 +02:00
Léa Saviot
8466d5b124 [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-05-03 15:53:20 +02:00
Léa Saviot
210ec62cab [poincare] Do not simplify random nor randint
For instance, random()+random() is simplified into random()+random(),
not 2*random()
2019-05-03 15:53:20 +02:00
Léa Saviot
df57d6330d [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-05-03 15:53:20 +02:00
Léa Saviot
eea6e702eb [kandinsky] Fix font test 2019-05-03 15:53:20 +02:00
Léa Saviot
928aaa2575 [poincare] Add tests on random 2019-05-03 15:53:20 +02:00
Léa Saviot
b3d0de564a [coding style] Small inlining 2019-05-03 15:53:20 +02:00
Léa Saviot
d0300c0e7f [apps/settings] Reload the title bar when changing language
Before, the "Settings" title would not be immediately translated into
the new language.
2019-05-03 15:53:20 +02:00
Léa Saviot
40c057f0ee [apps] Fix SumGraphController array size 2019-05-03 15:53:20 +02:00
Léa Saviot
3f0bdc6630 [escher] Fix TextArea::handleEventWithText
It did not handle properly a new line (placed the cursor wrongly).
2019-05-03 15:53:20 +02:00
Léa Saviot
d4feebc2c6 [escher] Fix null termination for drawString in ScrollViewIndicator 2019-05-03 15:53:20 +02:00
Léa Saviot
a2451aa104 [poincare/parser] Syntax error on combining code points 2019-05-03 15:53:20 +02:00
Léa Saviot
07b22f44d2 [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-05-03 15:53:20 +02:00
Léa Saviot
5494cea1c7 [unicode] Comment about avoiding accents in literals 2019-05-03 15:53:20 +02:00
Léa Saviot
b243fd1a99 [unicode] Prevent upper case letters with accents 2019-05-03 15:53:20 +02:00
Léa Saviot
d2b9bdd616 [unicode] Clean typography (accents, non present glyphs...) 2019-05-03 15:53:20 +02:00
Léa Saviot
bf3e4b0f4b [i18n] Remove duplicate entry 2019-05-03 15:53:20 +02:00
Léa Saviot
35f65ae255 [unicode] Handle not properly written UTF8 in nextCodePoint 2019-05-03 15:53:20 +02:00
Léa Saviot
cbb1055218 [escher] Fix TextField::ContentView::setEditing 2019-05-03 15:53:20 +02:00
Léa Saviot
b2a97cfc7a [escher] Fix buffer choice in TextField::glyphFrameAtPosition 2019-05-03 15:53:20 +02:00
Léa Saviot
4f63b16e0a [unicode] Fix portuguese literals 2019-05-03 15:53:20 +02:00
Léa Saviot
e338577793 [unicode] Clean decoder use 2019-05-03 15:53:20 +02:00
Léo Solé
0f52a4293c [toolbox] Translate toolbox title in all languages 2019-05-03 15:53:20 +02:00
Léo Solé
e74c5f8039 [unicode] Fix Spanish literals 2019-05-03 15:53:19 +02:00
Léo Solé
3038073d3b [unicode] Add accents in french litterals 2019-05-03 15:53:19 +02:00
Léa Saviot
699f6e218d [poincare] Fix printFloat buffer legnths.
Some code points are not 1 byte long.
2019-05-03 15:53:19 +02:00
Léa Saviot
a7e7319e4e [ion/storage] fix use of unicode method 2019-05-03 15:53:19 +02:00
Léa Saviot
4c5251f04f [unicode] Use unicode when dealing with chars - Part 2 2019-05-03 15:53:19 +02:00
Léa Saviot
ac5311d257 [escher/text_area] Fix rect dirtying after Clear event 2019-05-03 15:53:19 +02:00
Léa Saviot
d91fdeb12b [unicode] Fix stop condition in TextArea::Text::removeRemainingLine 2019-05-03 15:53:19 +02:00
Léa Saviot
12e1f6be58 [unicode] Fix stop condition of CopyAndRemoveCodePoint 2019-05-03 15:53:19 +02:00
Léa Saviot
9dd6b41b39 [unicode] Fix code point serialization 2019-05-03 15:53:19 +02:00
Léa Saviot
87d7d58832 [poincare] Fix Decimal serialization 2019-05-03 15:53:19 +02:00
Léa Saviot
2e65bd3e51 [poincare] Clearer CodePointLayout log 2019-05-03 15:53:19 +02:00
Léa Saviot
5df9e0af71 Use correct unicode symbols 2019-05-03 15:53:19 +02:00
Léa Saviot
4e93a564b6 [escher/ion] Fix wrong assertions 2019-05-03 15:53:19 +02:00
Léa Saviot
37d05a237f [apps] In consexpr char *, empty layouts should be inserted using /x11 2019-05-03 15:53:19 +02:00
Léa Saviot
7f4ef39d0c [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-05-03 15:53:19 +02:00
Léa Saviot
47e9be2574 [apps] Fix SumGraphController use of CodePointString 2019-05-03 15:53:19 +02:00
Léa Saviot
c476ea5380 [escher/text_field] Fix removeCodePoint rect dirtying 2019-05-03 15:53:19 +02:00
Léa Saviot
b006b0c7ae [utf8_decoder] Fix previousCodePoint 2019-05-03 15:53:19 +02:00
Léa Saviot
34fc647ccd [escher/text_field] Code cleaning 2019-05-03 15:53:19 +02:00
Léa Saviot
4688e9535f [apps] Calling draftTextLength should be done only if text field is editing 2019-05-03 15:53:19 +02:00
Léa Saviot
94b4cbc8d5 [unicode] Fix python area 2019-05-03 15:53:19 +02:00
Léa Saviot
2f3aa51c8c [unicode] Use unicode when dealing with chars - Part 1 2019-05-03 15:53:19 +02:00
Léa Saviot
293517892c Remove useless comment 2019-05-03 15:53:19 +02:00
Léa Saviot
39f6f4f5bb Remove compilation warnings 2019-05-03 15:53:19 +02:00
Léa Saviot
f9fbcabb30 [escher/ion] Factorize code for removing a code point in text field/area 2019-05-03 15:53:19 +02:00
Léa Saviot
9e06b23bbb [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-05-03 15:53:19 +02:00