diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9add6b..78c5eec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,4 +21,4 @@ repos: hooks: - id: codespell -exclude: 'paper/' +exclude: 'papers/' diff --git a/CMakeLists.txt b/CMakeLists.txt index 4001dde..ebf83a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,5 +53,5 @@ if(BEMAN_UTF_VIEW_BUILD_EXAMPLES) endif() if(BEMAN_UTF_VIEW_BUILD_PAPER) - add_subdirectory(paper) + add_subdirectory(papers) endif() diff --git a/README.md b/README.md index 7ef5a7f..3cd253d 100644 --- a/README.md +++ b/README.md @@ -337,8 +337,8 @@ beman.utf_view is based on P2728 and P3705. - The latest official revision of P2728 can be found at https://wg21.link/p2728 - The latest official revision of P3705 can be found at https://wg21.link/p3705 - The unofficial latest draft Markdown source for each paper can be found in this repository: - - At [paper/P2828.md](https://github.com/bemanproject/utf_view/blob/main/paper/P2728.md) - - At [paper/P3705.md](https://github.com/bemanproject/utf_view/blob/main/paper/P3705.md) + - At [papers/P2828.md](https://github.com/bemanproject/utf_view/blob/main/papers/P2728.md) + - At [papers/P3705.md](https://github.com/bemanproject/utf_view/blob/main/papers/P3705.md) - P2728's committee status page can be found at https://github.com/cplusplus/papers/issues/1422 ## Authors diff --git a/paper/CMakeLists.txt b/papers/CMakeLists.txt similarity index 100% rename from paper/CMakeLists.txt rename to papers/CMakeLists.txt diff --git a/paper/P2728.md b/papers/P2728.md similarity index 99% rename from paper/P2728.md rename to papers/P2728.md index a54582f..5769046 100644 --- a/paper/P2728.md +++ b/papers/P2728.md @@ -46,7 +46,7 @@ as a sequence of 32-bit unsigned integers. The building blocks of an encoding are _code units_, and UTF-32 has the most direct mapping between code points and code units. -![](../../paper/images/utf32.png){ width=400px } +![](../../papers/images/utf32.png){ width=400px } Any values greater than `0x10FFFF` are rejected by validators for being outside the range of valid Unicode. @@ -56,9 +56,9 @@ codespace used to top out at `0xFFFF`. Code points outside this range are represented using _surrogates_, a reserved area in codespace which allows combining the low 10 bits of two code units to form a single code point. -![](../../paper/images/utf16.png){ width=400px } +![](../../papers/images/utf16.png){ width=400px } -![](../../paper/images/utf16_2.png){ width=300px } +![](../../papers/images/utf16_2.png){ width=300px } UTF-16 is rendered invalid by improper use of surrogates: a high surrogate not followed by a low surrogate or a low surrogate not preceded by a high @@ -72,9 +72,9 @@ code unit is either a start byte, which describes how long the subsequence is (two to four bytes long), or a continuation byte, which fills out the subsequence with the remaining data. -![](../../paper/images/utf8.png){ width=750px } +![](../../papers/images/utf8.png){ width=750px } -![](../../paper/images/utf8_2.png){ width=400px } +![](../../papers/images/utf8_2.png){ width=400px } UTF-8 code unit sequences can be invalid for many reasons, such as a start byte not followed by the correct number of continuation bytes, or a UTF-8 @@ -216,7 +216,7 @@ underlying view. `operator*` provides the current element of the buffer. Below is an approximate block diagram of the iterator. Bold lines denote actual data members of the iterator; dashed lines are just function calls. -![](../../paper/images/iterator.png){ width=500px } +![](../../papers/images/iterator.png){ width=500px } The `to_utf_view::@*iterator*@` is converting the string `Qϕ学𡪇` from UTF-8 to UTF-16. The user has iterated the view to the first UTF-16 code @@ -284,7 +284,7 @@ The table below compares the error handling behavior of the `to_utf16` and "Substitution of Maximal Subparts" section of the Unicode standard: [@SubstitutionExamples] -![](../../paper/images/error_handling.png){ width=750px } +![](../../papers/images/error_handling.png){ width=750px } ## Code Unit Views diff --git a/paper/P3705.md b/papers/P3705.md similarity index 100% rename from paper/P3705.md rename to papers/P3705.md diff --git a/paper/diagram_sources/3-10.graffle b/papers/diagram_sources/3-10.graffle similarity index 100% rename from paper/diagram_sources/3-10.graffle rename to papers/diagram_sources/3-10.graffle diff --git a/paper/diagram_sources/3-11.graffle b/papers/diagram_sources/3-11.graffle similarity index 100% rename from paper/diagram_sources/3-11.graffle rename to papers/diagram_sources/3-11.graffle diff --git a/paper/diagram_sources/3-8.graffle b/papers/diagram_sources/3-8.graffle similarity index 100% rename from paper/diagram_sources/3-8.graffle rename to papers/diagram_sources/3-8.graffle diff --git a/paper/diagram_sources/3-9.graffle b/papers/diagram_sources/3-9.graffle similarity index 100% rename from paper/diagram_sources/3-9.graffle rename to papers/diagram_sources/3-9.graffle diff --git a/paper/diagram_sources/error_handling.graffle b/papers/diagram_sources/error_handling.graffle similarity index 100% rename from paper/diagram_sources/error_handling.graffle rename to papers/diagram_sources/error_handling.graffle diff --git a/paper/diagram_sources/filterview.graffle b/papers/diagram_sources/filterview.graffle similarity index 100% rename from paper/diagram_sources/filterview.graffle rename to papers/diagram_sources/filterview.graffle diff --git a/paper/diagram_sources/iterator.graffle b/papers/diagram_sources/iterator.graffle similarity index 100% rename from paper/diagram_sources/iterator.graffle rename to papers/diagram_sources/iterator.graffle diff --git a/paper/diagram_sources/utf16_2.graffle b/papers/diagram_sources/utf16_2.graffle similarity index 100% rename from paper/diagram_sources/utf16_2.graffle rename to papers/diagram_sources/utf16_2.graffle diff --git a/paper/diagram_sources/utf32.graffle b/papers/diagram_sources/utf32.graffle similarity index 100% rename from paper/diagram_sources/utf32.graffle rename to papers/diagram_sources/utf32.graffle diff --git a/paper/diagram_sources/utf8-1.graffle b/papers/diagram_sources/utf8-1.graffle similarity index 100% rename from paper/diagram_sources/utf8-1.graffle rename to papers/diagram_sources/utf8-1.graffle diff --git a/paper/diagram_sources/utf8-2.graffle b/papers/diagram_sources/utf8-2.graffle similarity index 100% rename from paper/diagram_sources/utf8-2.graffle rename to papers/diagram_sources/utf8-2.graffle diff --git a/paper/diagram_sources/utf8-3.graffle b/papers/diagram_sources/utf8-3.graffle similarity index 100% rename from paper/diagram_sources/utf8-3.graffle rename to papers/diagram_sources/utf8-3.graffle diff --git a/paper/diagram_sources/utf8.psd b/papers/diagram_sources/utf8.psd similarity index 100% rename from paper/diagram_sources/utf8.psd rename to papers/diagram_sources/utf8.psd diff --git a/paper/diagram_sources/utf8_2.graffle b/papers/diagram_sources/utf8_2.graffle similarity index 100% rename from paper/diagram_sources/utf8_2.graffle rename to papers/diagram_sources/utf8_2.graffle diff --git a/paper/diagram_sources/viewoptimization.graffle b/papers/diagram_sources/viewoptimization.graffle similarity index 100% rename from paper/diagram_sources/viewoptimization.graffle rename to papers/diagram_sources/viewoptimization.graffle diff --git a/paper/diagram_sources/viewoptimization2-pt1-alternate.graffle b/papers/diagram_sources/viewoptimization2-pt1-alternate.graffle similarity index 100% rename from paper/diagram_sources/viewoptimization2-pt1-alternate.graffle rename to papers/diagram_sources/viewoptimization2-pt1-alternate.graffle diff --git a/paper/diagram_sources/viewoptimization2-pt1.graffle b/papers/diagram_sources/viewoptimization2-pt1.graffle similarity index 100% rename from paper/diagram_sources/viewoptimization2-pt1.graffle rename to papers/diagram_sources/viewoptimization2-pt1.graffle diff --git a/paper/diagram_sources/viewoptimization2-pt2.graffle b/papers/diagram_sources/viewoptimization2-pt2.graffle similarity index 100% rename from paper/diagram_sources/viewoptimization2-pt2.graffle rename to papers/diagram_sources/viewoptimization2-pt2.graffle diff --git a/paper/diagram_sources/viewoptimization2.graffle b/papers/diagram_sources/viewoptimization2.graffle similarity index 100% rename from paper/diagram_sources/viewoptimization2.graffle rename to papers/diagram_sources/viewoptimization2.graffle diff --git a/paper/generator/.clang-format b/papers/generator/.clang-format similarity index 100% rename from paper/generator/.clang-format rename to papers/generator/.clang-format diff --git a/paper/generator/generator.sh b/papers/generator/generator.sh similarity index 100% rename from paper/generator/generator.sh rename to papers/generator/generator.sh diff --git a/paper/generator/post_clang_format.py b/papers/generator/post_clang_format.py similarity index 100% rename from paper/generator/post_clang_format.py rename to papers/generator/post_clang_format.py diff --git a/paper/images/error_handling.png b/papers/images/error_handling.png similarity index 100% rename from paper/images/error_handling.png rename to papers/images/error_handling.png diff --git a/paper/images/iterator.png b/papers/images/iterator.png similarity index 100% rename from paper/images/iterator.png rename to papers/images/iterator.png diff --git a/paper/images/utf16.png b/papers/images/utf16.png similarity index 100% rename from paper/images/utf16.png rename to papers/images/utf16.png diff --git a/paper/images/utf16_2.png b/papers/images/utf16_2.png similarity index 100% rename from paper/images/utf16_2.png rename to papers/images/utf16_2.png diff --git a/paper/images/utf32.png b/papers/images/utf32.png similarity index 100% rename from paper/images/utf32.png rename to papers/images/utf32.png diff --git a/paper/images/utf8-1.png b/papers/images/utf8-1.png similarity index 100% rename from paper/images/utf8-1.png rename to papers/images/utf8-1.png diff --git a/paper/images/utf8-2.png b/papers/images/utf8-2.png similarity index 100% rename from paper/images/utf8-2.png rename to papers/images/utf8-2.png diff --git a/paper/images/utf8-3.png b/papers/images/utf8-3.png similarity index 100% rename from paper/images/utf8-3.png rename to papers/images/utf8-3.png diff --git a/paper/images/utf8.png b/papers/images/utf8.png similarity index 100% rename from paper/images/utf8.png rename to papers/images/utf8.png diff --git a/paper/images/utf8_2.png b/papers/images/utf8_2.png similarity index 100% rename from paper/images/utf8_2.png rename to papers/images/utf8_2.png diff --git a/paper/images/utf_transcoding_error_old.png b/papers/images/utf_transcoding_error_old.png similarity index 100% rename from paper/images/utf_transcoding_error_old.png rename to papers/images/utf_transcoding_error_old.png diff --git a/paper/images/viewoptimization2-pt1.png b/papers/images/viewoptimization2-pt1.png similarity index 100% rename from paper/images/viewoptimization2-pt1.png rename to papers/images/viewoptimization2-pt1.png