Commit Graph

14 Commits

Author SHA1 Message Date
Léa Saviot
45b8c20059 [poincare/layout] Fix XNT when cursor points outside of integrand
Example:
   3
  sum(|4) and XNT event gives n
  n=1

   3
 |sum(4) and XNT event gives 0
  n=1
2019-09-20 15:11:39 +02:00
Léa Saviot
49a508ea62 [poincare] Fix serializations
They should return the number of written chars
2019-08-08 17:22:05 +02:00
Léa Saviot
4b3a3d10a8 [poincare/layouts] Fix Prefix serialization
Add SystemParentheses around each child if there are more than 1 child,
so we do not parse:
 /            \
| 1+binomial(3 |  (This is a binomial layout)
|    1),1      |
 \            /
2019-08-08 17:22:05 +02:00
Émilie Feral
0e40177f85 [poincare] Product, Sum, Integral, Floor etc (special layouts) serialize
to identifier[arg1, arg2, ...] instead of identifier([arg1, arg2, ...])
which is not parseable
2019-08-08 17:22:03 +02:00
Émilie Feral
b11e6e5661 [poincare] System parentheses are not layouted but used only to
correctly serialized fraction layouts, integral layouts...

Layouts wrapped by system parentheses:
- fraction children
- fraction (to be able to omit multiplication)
- vertical offset index
- integral children
- sequence chidlren
2019-08-08 17:22:02 +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
2f3aa51c8c [unicode] Use unicode when dealing with chars - Part 1 2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
f576e31ff1 [apps/poincare] Replace CharLayouts with CodePointLayouts 2019-05-03 15:53:19 +02:00
Émilie Feral
51b09193ea [poincare] SequenceLayout: implement moving cursor up from the left of the sequence 2018-11-23 12:04:04 +01:00
Émilie Feral
31a5caff60 [poincare] Sum and Product can specify their variable name 2018-11-23 12:04:04 +01:00
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Émilie Feral
8cffbdd7de [poincare] Change name of files: *_layout_node --> *_layout 2018-09-14 16:57:12 +02:00