Anki/rslib/src
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 f19126a2f1.

* add missing header

* Write error message if tts lang is missing

* `Tag` -> `Directive`
2021-12-17 19:04:42 +10:00
..
backend New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
card support updating multiple cards in one transaction/undo op 2021-08-02 16:59:02 +10:00
card_rendering New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
collection add a builder for Collection 2021-11-06 14:43:41 +10:00
config add a builder for Collection 2021-11-06 14:43:41 +10:00
deckconfig handle AnkiDroid's two element new intervals 2021-10-07 23:15:51 +10:00
decks fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
error Check for invalid conditionals on templates 2021-07-28 11:53:31 +02:00
media Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
notes update to edition 2021 2021-11-18 20:51:10 +10:00
notetype fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
revlog Cap steps (#1548) 2021-12-15 18:46:26 +10:00
scheduler Make Hard use current step's interval if it's not the first one (#1561) 2021-12-16 22:02:13 +10:00
search fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
stats fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
storage order by template after note id in filtered decks 2021-12-10 18:53:50 +10:00
sync add a builder for Collection 2021-11-06 14:43:41 +10:00
tags fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
undo update undo skipping; exclude deck/tag expand/collapse 2021-06-25 09:16:15 +10:00
adding.rs expose undoable config changes to frontend; refresh sidebar 2021-05-21 17:50:41 +10:00
backend_proto.rs Add links.proto and backend module 2021-07-22 10:05:38 +02:00
browser_table.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
cloze.rs Add check for out-of-place/missing clozes 2021-06-12 10:02:21 +02:00
dbcheck.rs Skip new notetype checks when importing apkg 2021-07-28 21:46:51 +02:00
findreplace.rs Fix find & replace for notes without 'field_name' 2021-07-13 16:21:13 +02:00
i18n.rs drop the legacy enum from rslib, and pass separate module/message idx 2021-03-27 11:56:31 +10:00
latex.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
lib.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
links.rs fix a link anchor 2021-11-14 11:44:54 +10:00
log.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
markdown.rs render deck description with markdown; strip images 2021-02-06 15:02:40 +10:00
ops.rs update undo skipping; exclude deck/tag expand/collapse 2021-06-25 09:16:15 +10:00
preferences.rs allow customization of default search text 2021-06-24 11:24:30 +10:00
prelude.rs support undo for (renamed) unbury_deck() action 2021-04-30 20:03:20 +10:00
serde.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
template.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
template_filters.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
text.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
timestamp.rs fix test scheduler undo + implement look-ahead 2021-05-14 22:16:53 +10:00
types.rs update scheduling ops 2021-04-06 16:38:42 +10:00
version.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00