diff options
| author | figsoda <figsoda@pm.me> | 2023-06-20 12:11:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-20 18:11:20 +0200 |
| commit | c0c03812d08bc833b8a2477c594d762f43a0c95b (patch) | |
| tree | 7ecf451953b39779b2580dfcb7b2e8def108ff47 /library/src/layout | |
| parent | 57d4b8b75175c2fb169ab24ae683f580bcd42c99 (diff) | |
Move assets/data to library/assets (#1515)
So these assets lives inside the typst-library crate and doesn't break `cargo vendor`
Diffstat (limited to 'library/src/layout')
| -rw-r--r-- | library/src/layout/par.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs index 2d0944ce..6170a34d 100644 --- a/library/src/layout/par.rs +++ b/library/src/layout/par.rs @@ -1016,23 +1016,23 @@ fn linebreak_optimized<'a>(vt: &Vt, p: &'a Preparation<'a>, width: Abs) -> Vec<L /// /// ```sh /// icu4x-datagen --locales full --keys-for-bin target/debug/typst \ -/// --format blob --out assets/data/icudata.postcard --overwrite +/// --format blob --out library/assets/icudata.postcard --overwrite /// ``` /// /// Install icu4x-datagen with `cargo install icu4x-datagen`. -static ICU_DATA: &[u8] = include_bytes!("../../../assets/data/icudata.postcard"); +static ICU_DATA: &[u8] = include_bytes!("../../assets/icudata.postcard"); /// Generated by the following command: /// /// ```sh /// icu4x-datagen --locales zh ja --keys segmenter/line@1 --format blob \ -/// --out assets/data/cj_linebreak_data.postcard --overwrite +/// --out library/assets/cj_linebreak_data.postcard --overwrite /// ``` /// /// The used icu4x-datagen should be patched by /// https://github.com/peng1999/icu4x/commit/b9beb6cbf633d61fc3d7983e5baf7f4449fbfae5 static CJ_LINEBREAK_DATA: &[u8] = - include_bytes!("../../../assets/data/cj_linebreak_data.postcard"); + include_bytes!("../../assets/cj_linebreak_data.postcard"); /// The general line break segmenter. static SEGMENTER: Lazy<LineSegmenter> = Lazy::new(|| { |
