anki/ftl
RumovZ 3e0c9dc866
New TTS/AV tag handling (#1559)
* Add new `card_rendering` mod

Parses a text with av/tts tags and strips or extracts tags.

* Replace old `extract_av_tags` and `strip_av_tags`

... with new `card_rendering` mod

* ressource -> resource

* Add AV prettifier for use in browser table

* Accept String in av tag routines

... and avoid redundant writes if no changes need to be made.

* add benchmarking with criterion; make links test optional (dae)

cargo install cargo-criterion, then run ./bench.sh

* performance comparison: creating HashMap up front (dae)

the previous solution:

anki_tag_parse          time:   [1.8401 us 1.8437 us 1.8476 us]

this solution:

anki_tag_parse          time:   [2.2420 us 2.2447 us 2.2477 us]
                        change: [+21.477% +21.770% +22.066%] (p = 0.00 < 0.05)
                        Performance has regressed.

* Revert "performance comparison: creating HashMap up front" (dae)

This reverts commit f19126a2f15b729b825825a49283f63ab13474d0.

* add missing header

* Write error message if tts lang is missing

* `Tag` -> `Directive`
2021-12-17 19:04:42 +10:00
..
core New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
qt Add browser action to create note copy (#1535) 2021-12-08 08:40:48 +10:00
usage Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
BUILD.bazel fix missing dependencies on ftl:sync 2021-10-26 08:30:13 +10:00
duplicate-string.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
extract-strings.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
format_check.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
format.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
README.md fix documentation links 2021-06-03 16:51:03 +10:00
remove-unused.sh Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
sync.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
transform-string.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
update-ankimobile-usage.sh Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
update-desktop-usage.sh Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00

Files related to Anki's translations.

Please see https://translating.ankiweb.net/anki/developers