Commit Graph

8001 Commits

Author SHA1 Message Date
Émilie Feral
7891cf4182 [apps/shared] Fix ExpressionListController: the cell heights memoization
was corrupted
2019-07-11 10:43:59 +02:00
Romain Goyet
c7bde32d65 [kandinsky] Fix the 0 glyph in the large font 2019-06-26 17:34:19 +02:00
Léa Saviot
2ae4b63951 Revert "[kandinsky/fonts/LargeFont.ttf] Change the glyphs of 0 and 3 characters"
This reverts commit cd4260494a.
2019-06-26 16:45:33 +02:00
Léa Saviot
0298291043 [poincare/parser] Comment and new test about system parentheses 2019-06-26 14:03:08 +02:00
Léa Saviot
596a438557 [poincare/parser] Comment about parseCaretWithParenthesis 2019-06-26 14:03:08 +02:00
Léa Saviot
2ff03bb6a0 [poincare/parser] Pop corresponding types of parentheses 2019-06-26 14:03:08 +02:00
Léa Saviot
2fdbf2ea11 [poincare] VerticalOffsetLyt serializes as ^().
UCodePointLeftSuperscript and UCodePointRightSuperscript no longer exist
2019-06-26 14:03:08 +02:00
Léa Saviot
4945868ec0 [poincare] Factorize SerializationHelper::Infix and Prefix 2019-06-26 14:03:08 +02:00
Léa Saviot
b985599079 [poincare] Remove unused parameter in SerializationHelper::Prefix 2019-06-26 14:03:08 +02:00
Léa Saviot
b6638bb929 [poincare] Serialize with UCodePointLeftSystemParenthesis
In fraction, integral and sequence layouts
2019-06-26 14:03:08 +02:00
Léa Saviot
23c2358f19 [poincare] Clean Factorial serialization 2019-06-26 14:03:08 +02:00
Léa Saviot
2028fca481 [poincare/nth_root_layout] Fix serialization
The layout (3 root3) is not parsable anymore
2019-06-26 14:03:08 +02:00
Léa Saviot
e64b8cabc8 [poincare/test] Test about 2^(3+4)! layout serialization 2019-06-26 14:03:08 +02:00
Léa Saviot
6455891b77 [apps/test] Silence unused variable warning 2019-06-26 14:03:08 +02:00
Léa Saviot
40c5196cee [test] Use strcmpWithSystemParentheses
Now there can be two types of parentheses : '(' or
UCodePointLeftSystemParenthesis. Because we do not want to complicate
the test results, when comparing a computed serialization and a result
we do not differentiate between the two types of parentheses.
2019-06-26 14:03:08 +02:00
Léa Saviot
6109903f66 [poincare/serialization] Use system parentheses to serialize
This solves the problem :

 (1
 --- that serialized as ((1)/(2)), which was valid
  2)
2019-06-26 14:03:08 +02:00
Léa Saviot
a0b21b9931 [poincare/tests] Unparsable layouts test 2019-06-26 14:03:08 +02:00
Léa Saviot
e72c7d8564 [escher/layout_field] Fix cursor position when inserting layout
Scenario : In calculation, write 10/7, enter
Go up, press OK on 10/7 -> the cursor is not on the right of the layout
2019-06-26 10:08:03 +02:00
Léa Saviot
5f20c1d0c4 [apps] Fix portuguese typo 2019-06-26 09:38:49 +02:00
Léa Saviot
05c479a6fc [poincare] Better collapsing of fractions
The user can now write intuitively 1/2 * 3/4
2019-06-25 11:05:26 -04:00
Léa Saviot
95403c8a91 [python/port] Increase stack limit on emscripten, simulator...
The value is quite arbitrary, we just do not want to outperfom the
device but still provide more recursion depth.
2019-06-25 08:37:47 -04:00
Ruben Dashyan
cd4260494a [kandinsky/fonts/LargeFont.ttf] Change the glyphs of 0 and 3 characters 2019-06-21 14:30:58 -04:00
Léa Saviot
2463b6bb95 [apps/code] Update icon 2019-06-21 14:30:31 -04:00
Léa Saviot
cc8403e020 [escher/text_input] Factorize and clean handleEvent Right and Left 2019-06-21 14:30:14 -04:00
Léa Saviot
5a8596acd7 [ion/utf8_helper] Put default parameter in RemovePreviousGlyph 2019-06-21 14:30:14 -04:00
Léa Saviot
b696668422 [escher/text_field] Fix cursor navigation on combining code points 2019-06-21 14:30:14 -04:00
Léa Saviot
5f549b514e [escher] Fix backspace on utf8 combining code point 2019-06-21 14:30:14 -04:00
Léa Saviot
67eea0802f [escher/text_area] Fix cursor navigation on combining code points 2019-06-21 14:30:14 -04:00
Léa Saviot
1043426c40 [ion/utf8] next/previousGlyphPosition methods and tests 2019-06-21 14:30:14 -04:00
Émilie Feral
fb80cd3271 [apps] Object contained in the Storage might be unaligned. Make sure to
use emscripten unaligned type to avoid producing an alignment error on
emscripten platform.
2019-06-19 09:54:57 +02:00
Émilie Feral
cd688ab9cf [apps] Force packing classes of objects contained in the Storage
If these classes are padded, we lose space in the Storage and the
Storage::checksum is computed on uninitialized values (corresponding to
the padding memory spaces)
2019-06-19 09:54:57 +02:00
Émilie Feral
0222509850 [regression] GraphController: add missing banner view reload 2019-06-17 15:33:10 -04:00
Émilie Feral
0b8fddf576 [solver] Reinitialize selected subcell when changing displayed layouts 2019-06-17 15:10:40 -04:00
Émilie Feral
3b25398e6e [shared] ScrollableExactApproximateExpressionsView: reloadScroll when
displayed layouts have changed
2019-06-17 15:10:40 -04:00
Léa Saviot
0478fc816e [escher/layout_field] Fix cursor position when inserting "cos()" 2019-06-17 08:25:29 -04:00
Émilie Feral
a5536115c5 [poincare] Symbol: fix uninitialized read (valgrind) 2019-06-17 14:03:27 +02:00
Émilie Feral
57cc58dfb8 [poincare] Decimal: avoid deferencing nullptr 2019-06-17 10:20:25 +02:00
Émilie Feral
709a7028e8 [shared] BannerView: add an assertion to avoid deferencing nullptr 2019-06-17 10:20:25 +02:00
Émilie Feral
b485319e76 [python] Clean gc_collect and comment to explain potential address
sanitize error
2019-06-14 13:37:11 -04:00
Émilie Feral
c0da810ea1 [python] Turtle module: fix modturtle_gc_collect from stack-buffer-overflow 2019-06-14 13:37:11 -04:00
Émilie Feral
9c2fc84cd0 [code] Fix 'use address after scope' issue
We used an array that was out of scope in PythonToolbox.
2019-06-14 15:53:45 +02:00
Léa Saviot
bedc09f9f1 [apps/graph_controller] Clean code 2019-06-14 09:31:46 -04:00
Léa Saviot
3de7e4daab [apps/regression] Fix bannerView
For data
0 0
1 2
2 6
3 12
4 20
5 30
6 42
7 56
and square regression, the coefficient c is not fully displayed
2019-06-14 09:31:46 -04:00
Léa Saviot
a886c0fb32 [apps/shared] Share PadWithSpaces method 2019-06-14 09:31:46 -04:00
Léa Saviot
e17658181d [escher/layout_field] Compute the pointed layout after the insertion
Otherwise it breaks the scenario:
Initial layout:   '0
"abs(x)" pressed in the toolbox => |•| is added, • being an empty layout
Final layout: |0'|
2019-06-14 08:20:54 -04:00
Léa Saviot
872de8deef [ion/utf8_helper] Fix StringGlyphLength 2019-06-14 08:16:55 -04:00
Léa Saviot
2061c5d692 [escher/text_area] Fix text indentation handling
We used a small buffer to preprocess a text to insert in text area (add
indentation, remove empty code points, compute the next cursor location),
but the size of this buffer was sometimes too small and caused a crash.
Now we do all the text odification in place in the text area buffer.
2019-06-13 11:40:13 -04:00
Léa Saviot
78bdd0e04b [apps/statistics] Fix banner view
Scientific mode, Data:
10 - 1
20 - 5
30 - 4
40 - 3
50 - 1
Display the histogram, there are problems in the banner view
2019-06-13 10:37:47 -04:00
Léa Saviot
50bbae5e06 [ion/unicode] StringGlyphLength method 2019-06-13 10:37:47 -04:00
Léa Saviot
1e64db68ef [apps/solver] Fix string length computation
The layout for delta=b^2*4ac did not appear properly
2019-06-13 08:50:45 -04:00