Commit Graph

11243 Commits

Author SHA1 Message Date
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
Jean-Baptiste Boric
1c40194ac1 [regression] Add gradians support 2019-06-24 22:32:55 +02:00
Jean-Baptiste Boric
a289e4989e [apps] Add gradians support 2019-06-24 22:15:05 +02:00
Jean-Baptiste Boric
2d06110822 [poincare] Add support for gradians 2019-06-24 22:15:05 +02:00
Jean-Baptiste Boric
1af2d17927 [poincare] Generalize trigonometry engine a bit 2019-06-24 21:12:38 +02: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
5ac1c27401 Merge branch 'version-11' into f7 2019-06-17 15:48:03 -04:00
Émilie Feral
1717bafe29 build: Version 11.1.0 2019-06-17 15:40:47 -04:00
Émilie Feral
00797647c2 [regression] GraphController: add missing banner view reload 2019-06-17 15:38:53 -04:00
Émilie Feral
a13d6daab8 [solver] Reinitialize selected subcell when changing displayed layouts 2019-06-17 15:38:53 -04:00
Émilie Feral
fbe0a0ca3e [shared] ScrollableExactApproximateExpressionsView: reloadScroll when
displayed layouts have changed
2019-06-17 15:38:53 -04:00
Léa Saviot
ddce497916 [escher/layout_field] Fix cursor position when inserting "cos()" 2019-06-17 15:38:53 -04:00
Émilie Feral
63ae889bc9 [poincare] Symbol: fix uninitialized read (valgrind) 2019-06-17 15:38:53 -04:00
Émilie Feral
81a0e71409 [poincare] Decimal: avoid deferencing nullptr 2019-06-17 15:38:53 -04:00
Émilie Feral
7d2f69821a [shared] BannerView: add an assertion to avoid deferencing nullptr 2019-06-17 15:38:53 -04:00
Émilie Feral
c611084086 [python] Clean gc_collect and comment to explain potential address
sanitize error
2019-06-17 15:38:53 -04:00
Émilie Feral
84ae25b09f [python] Turtle module: fix modturtle_gc_collect from stack-buffer-overflow 2019-06-17 15:38:53 -04:00
Émilie Feral
a53bfdc807 [code] Fix 'use address after scope' issue
We used an array that was out of scope in PythonToolbox.
2019-06-17 15:38:53 -04:00
Léa Saviot
1ea5003c1f [apps/graph_controller] Clean code 2019-06-17 15:38:53 -04:00
Léa Saviot
0ff5867332 [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-17 15:38:53 -04:00
Léa Saviot
453c43967d [apps/shared] Share PadWithSpaces method 2019-06-17 15:38:53 -04:00
Léa Saviot
a29994e84f [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-17 15:38:53 -04:00
Léa Saviot
519c4ef32a [ion/utf8_helper] Fix StringGlyphLength 2019-06-17 15:38:53 -04:00
Léa Saviot
e5190f38ab [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-17 15:38:53 -04:00
Léa Saviot
15b4803ba0 [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-17 15:38:53 -04:00
Léa Saviot
1328277132 [ion/unicode] StringGlyphLength method 2019-06-17 15:38:53 -04:00
Léa Saviot
53eb5ddd95 [apps/solver] Fix string length computation
The layout for delta=b^2*4ac did not appear properly
2019-06-17 15:38:53 -04:00