diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..00df0c3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,146 @@ +name: Build & Test + +on: + push: + branches: [main, rust-rewrite] + pull_request: + branches: [main, rust-rewrite] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + strategy: + matrix: + include: + - os: macos-14 + target: aarch64-apple-darwin + name: macOS-arm64 + - os: windows-latest + target: x86_64-pc-windows-msvc + name: Windows-x64 + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Rust cache + uses: swatinem/rust-cache@v2 + with: + workspaces: eat-rs + key: ${{ matrix.target }} + + - name: Run tests + working-directory: eat-rs + run: cargo test --release + + package-macos: + needs: test + if: github.ref == 'refs/heads/rust-rewrite' || startsWith(github.ref, 'refs/tags/') + runs-on: macos-14 + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - uses: swatinem/rust-cache@v2 + with: + workspaces: eat-rs + key: aarch64-apple-darwin + + - name: Build release + working-directory: eat-rs + run: cargo build --release -p eat-cli -p eat-gui + + - name: Assemble .app + working-directory: eat-rs + run: ./scripts/make-app.sh dist + + - name: Codesign (ad-hoc) + run: | + codesign --force --deep --sign - "eat-rs/dist/Project-EAT.app" + + - name: Upload .app artifact + uses: actions/upload-artifact@v4 + with: + name: Project-EAT-macos-arm64 + path: eat-rs/dist/Project-EAT.app + retention-days: 30 + + package-windows: + needs: test + if: github.ref == 'refs/heads/rust-rewrite' || startsWith(github.ref, 'refs/tags/') + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - uses: swatinem/rust-cache@v2 + with: + workspaces: eat-rs + key: x86_64-pc-windows-msvc + + - name: Build release (MSVC) + working-directory: eat-rs + shell: pwsh + run: cargo build --release -p eat-cli -p eat-gui + + - name: Assemble Windows dist + working-directory: eat-rs + shell: pwsh + run: | + $app = "dist/win/Project-EAT-win" + New-Item -ItemType Directory -Force -Path "$app/models", "$app/fonts" + + Copy-Item target/release/eat.exe "$app/" + Copy-Item target/release/eat-gui.exe "$app/Project-EAT.exe" + + # pdfium.dll (vendored) + Copy-Item vendor/pdfium-win-x64/pdfium.dll "$app/" + + # onnxruntime.dll: download from Microsoft release (ort load-dynamic) + $ortVer = "1.31.0" + $url = "https://github.com/microsoft/onnxruntime/releases/download/v$ortVer/onnxruntime-win-x64-$ortVer.zip" + Invoke-WebRequest -Uri $url -OutFile ort.zip + Expand-Archive ort.zip -DestinationPath ort -Force + Copy-Item "ort/onnxruntime-win-x64-$ortVer/lib/onnxruntime.dll" "$app/" + + # PP-OCR models + font + Copy-Item vendor/ppocr/PP-OCRv6_det_small.onnx "$app/models/" + Copy-Item vendor/ppocr/PP-OCRv6_rec_small.onnx "$app/models/" + Copy-Item vendor/ppocr/rec_keys.txt "$app/models/" + Copy-Item vendor/fonts/NotoSansCJKtc-Regular.otf "$app/fonts/" + + # zip + Compress-Archive -Path $app -DestinationPath dist/win/Project-EAT-win-x64.zip + + - name: Upload Windows zip + uses: actions/upload-artifact@v4 + with: + name: Project-EAT-windows-x64 + path: eat-rs/dist/win/Project-EAT-win-x64.zip + retention-days: 30 + + release: + if: startsWith(github.ref, 'refs/tags/v') + needs: [package-macos, package-windows] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + pattern: Project-EAT-* + merge-multiple: false + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: | + Project-EAT-macos-arm64/** + Project-EAT-windows-x64/* + generate_release_notes: true diff --git a/.gitignore b/.gitignore index c16d2ff..b9722ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,27 +1,2 @@ -# Python -__pycache__/ -*.pyc - -# macOS -.DS_Store - -# Tooling -.spectra/ -.opencode/ -.agent/ -openspec/ -docs/ - -# Large media (demo recordings) -*.mov - -# Generated outputs -pdfs_annotated*/ -pdfs_annotated.zip -pretest_posttest_output/ -*_annotated.pdf -*_ocr.json -*_errors.json - -# Misc -sampleREADME.md +eat-rs/dist/ +dist/ diff --git a/eat-rs/.gitignore b/eat-rs/.gitignore new file mode 100644 index 0000000..74f7873 --- /dev/null +++ b/eat-rs/.gitignore @@ -0,0 +1,2 @@ +/target +**/target diff --git a/eat-rs/Cargo.lock b/eat-rs/Cargo.lock new file mode 100644 index 0000000..e1388fb --- /dev/null +++ b/eat-rs/Cargo.lock @@ -0,0 +1,5585 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "ab_glyph" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2" +dependencies = [ + "ab_glyph_rasterizer", + "owned_ttf_parser", +] + +[[package]] +name = "ab_glyph_rasterizer" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" + +[[package]] +name = "accesskit" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf203f9d3bd8f29f98833d1fbef628df18f759248a547e7e01cfbf63cda36a99" + +[[package]] +name = "accesskit_atspi_common" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "890d241cf51fc784f0ac5ac34dfc847421f8d39da6c7c91a0fcc987db62a8267" +dependencies = [ + "accesskit", + "accesskit_consumer", + "atspi-common", + "serde", + "thiserror 1.0.69", + "zvariant", +] + +[[package]] +name = "accesskit_consumer" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db81010a6895d8707f9072e6ce98070579b43b717193d2614014abd5cb17dd43" +dependencies = [ + "accesskit", + "hashbrown 0.15.5", +] + +[[package]] +name = "accesskit_macos" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0089e5c0ac0ca281e13ea374773898d9354cc28d15af9f0f7394d44a495b575" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.15.5", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "accesskit_unix" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "301e55b39cfc15d9c48943ce5f572204a551646700d0e8efa424585f94fec528" +dependencies = [ + "accesskit", + "accesskit_atspi_common", + "async-channel", + "async-executor", + "async-task", + "atspi", + "futures-lite", + "futures-util", + "serde", + "zbus", +] + +[[package]] +name = "accesskit_windows" +version = "0.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2d63dd5041e49c363d83f5419a896ecb074d309c414036f616dc0b04faca971" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.15.5", + "static_assertions", + "windows 0.61.3", + "windows-core 0.61.2", +] + +[[package]] +name = "accesskit_winit" +version = "0.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8cfabe59d0eaca7412bfb1f70198dd31e3b0496fee7e15b066f9c36a1a140a0" +dependencies = [ + "accesskit", + "accesskit_macos", + "accesskit_unix", + "accesskit_windows", + "raw-window-handle", + "winit", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if 1.0.5", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "android-activity" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd" +dependencies = [ + "android-properties", + "bitflags 2.13.2", + "cc", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "num_enum", + "thiserror 2.0.21", +] + +[[package]] +name = "android-properties" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" +dependencies = [ + "derive_arbitrary", +] + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "image", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[package]] +name = "ash" +version = "0.38.0+1.3.281" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f" +dependencies = [ + "libloading 0.8.9", +] + +[[package]] +name = "ashpd" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f3f79755c74fd155000314eb349864caa787c6592eace6c6882dad873d9c39" +dependencies = [ + "async-fs", + "async-net", + "enumflags2", + "futures-channel", + "futures-util", + "rand", + "raw-window-handle", + "serde", + "serde_repr", + "url", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "zbus", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-fs" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5" +dependencies = [ + "async-lock", + "blocking", + "futures-lite", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if 1.0.5", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix 1.1.6", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-net" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7" +dependencies = [ + "async-io", + "blocking", + "futures-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if 1.0.5", + "event-listener", + "futures-lite", + "rustix 1.1.6", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if 1.0.5", + "futures-core", + "futures-io", + "rustix 1.1.6", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "atspi" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c83247582e7508838caf5f316c00791eee0e15c0bf743e6880585b867e16815c" +dependencies = [ + "atspi-common", + "atspi-connection", + "atspi-proxies", +] + +[[package]] +name = "atspi-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33dfc05e7cdf90988a197803bf24f5788f94f7c94a69efa95683e8ffe76cfdfb" +dependencies = [ + "enumflags2", + "serde", + "static_assertions", + "zbus", + "zbus-lockstep", + "zbus-lockstep-macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "atspi-connection" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4193d51303d8332304056ae0004714256b46b6635a5c556109b319c0d3784938" +dependencies = [ + "atspi-common", + "atspi-proxies", + "futures-lite", + "zbus", +] + +[[package]] +name = "atspi-proxies" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2eebcb9e7e76f26d0bcfd6f0295e1cd1e6f33bedbc5698a971db8dc43d7751c" +dependencies = [ + "atspi-common", + "serde", + "zbus", +] + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "bindgen" +version = "0.65.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" +dependencies = [ + "bitflags 1.3.2", + "cexpr", + "clang-sys", + "lazy_static", + "lazycell", + "log", + "peeking_take_while", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash 1.1.0", + "shlex 1.3.0", + "syn 2.0.119", + "which", +] + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.3", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2 0.6.5", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "calloop" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.13.2", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] + +[[package]] +name = "calloop" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e" +dependencies = [ + "bitflags 2.13.2", + "polling", + "rustix 1.1.6", + "tracing", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20" +dependencies = [ + "calloop 0.13.0", + "rustix 0.38.44", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.5", + "rustix 1.1.6", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "cc" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex 2.0.1", +] + +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "cgl" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff" +dependencies = [ + "libc", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link 0.2.1", +] + +[[package]] +name = "clang-sys" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a" +dependencies = [ + "glob", + "libc", + "libloading 0.8.9", +] + +[[package]] +name = "clap" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "clap_lex" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" + +[[package]] +name = "clipboard-win" +version = "5.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" +dependencies = [ + "error-code", +] + +[[package]] +name = "cocoa" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c49e86fc36d5704151f5996b7b3795385f50ce09e3be0f47a0cfde869681cf8" +dependencies = [ + "bitflags 1.3.2", + "block", + "core-foundation 0.7.0", + "core-graphics 0.19.2", + "foreign-types 0.3.2", + "libc", + "objc", +] + +[[package]] +name = "cocoa-foundation" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d" +dependencies = [ + "bitflags 2.13.2", + "block", + "core-foundation 0.10.1", + "core-graphics-types 0.2.0", + "objc", +] + +[[package]] +name = "codespan-reporting" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if 1.0.5", + "wasm-bindgen", +] + +[[package]] +name = "console_log" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86919cef3e37b9356ccf54d4421208c17ecfda01beae61393e7ffd72916c0ef1" +dependencies = [ + "log", + "web-sys", +] + +[[package]] +name = "core-foundation" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" +dependencies = [ + "core-foundation-sys 0.7.0", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys 0.8.7", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys 0.8.7", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.7.0", + "foreign-types 0.3.2", + "libc", +] + +[[package]] +name = "core-graphics" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "core-graphics-types 0.1.3", + "foreign-types 0.5.0", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "libc", +] + +[[package]] +name = "core-media-sys" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "273bf3fc5bf51fd06a7766a84788c1540b6527130a0bce39e00567d6ab9f31f1" +dependencies = [ + "cfg-if 0.1.10", + "core-foundation-sys 0.7.0", + "libc", +] + +[[package]] +name = "core-video-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ecad23610ad9757664d644e369246edde1803fcb43ed72876565098a5d3828" +dependencies = [ + "cfg-if 0.1.10", + "core-foundation-sys 0.7.0", + "core-graphics 0.19.2", + "libc", + "metal 0.18.0", + "objc", +] + +[[package]] +name = "crc32fast" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" +dependencies = [ + "cfg-if 1.0.5", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + +[[package]] +name = "der" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004" +dependencies = [ + "pem-rfc7468", + "zeroize", +] + +[[package]] +name = "derive_arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "dlib" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading 0.8.9", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "eat-app" +version = "0.1.0" +dependencies = [ + "eat-core", + "eat-ocr", + "eat-pdf", + "serde", + "serde_json", + "ureq 2.12.1", + "zip", +] + +[[package]] +name = "eat-cli" +version = "0.1.0" +dependencies = [ + "clap", + "eat-app", + "eat-core", + "eat-ocr", + "eat-pdf", + "serde_json", +] + +[[package]] +name = "eat-core" +version = "0.1.0" +dependencies = [ + "serde", + "serde_json", + "ureq 2.12.1", +] + +[[package]] +name = "eat-gui" +version = "0.1.0" +dependencies = [ + "eat-app", + "eat-core", + "eat-ocr", + "eat-pdf", + "eframe", + "image", + "nokhwa", + "rfd", + "serde_json", +] + +[[package]] +name = "eat-ocr" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "eat-core", + "image", + "ort", + "serde", + "serde_json", + "ureq 2.12.1", +] + +[[package]] +name = "eat-pdf" +version = "0.1.0" +dependencies = [ + "eat-core", + "pdfium-render", + "serde_json", +] + +[[package]] +name = "ecolor" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71ddb8ac7643d1dba1bb02110e804406dd459a838efcb14011ced10556711a8e" +dependencies = [ + "bytemuck", + "emath", +] + +[[package]] +name = "eframe" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "457481173e6db5ca9fa2be93a58df8f4c7be639587aeb4853b526c6cf87db4e6" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "egui-wgpu", + "egui-winit", + "egui_glow", + "glow", + "glutin", + "glutin-winit", + "image", + "js-sys", + "log", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "parking_lot", + "percent-encoding", + "profiling", + "raw-window-handle", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "web-time", + "windows-sys 0.61.2", + "winit", +] + +[[package]] +name = "egui" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a9b567d356674e9a5121ed3fedfb0a7c31e059fe71f6972b691bcd0bfc284e3" +dependencies = [ + "accesskit", + "ahash", + "bitflags 2.13.2", + "emath", + "epaint", + "log", + "nohash-hasher", + "profiling", + "smallvec", + "unicode-segmentation", +] + +[[package]] +name = "egui-wgpu" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e4d209971c84b2352a06174abdba701af1e552ce56b144d96f2bd50a3c91236" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "epaint", + "log", + "profiling", + "thiserror 2.0.21", + "type-map", + "web-time", + "wgpu", + "winit", +] + +[[package]] +name = "egui-winit" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec6687e5bb551702f4ad10ac428bab12acf9d53047ebb1082d4a0ed8c6251a29" +dependencies = [ + "accesskit_winit", + "arboard", + "bytemuck", + "egui", + "log", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-ui-kit", + "profiling", + "raw-window-handle", + "smithay-clipboard", + "web-time", + "webbrowser", + "winit", +] + +[[package]] +name = "egui_glow" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6420863ea1d90e750f75075231a260030ad8a9f30a7cef82cdc966492dc4c4eb" +dependencies = [ + "bytemuck", + "egui", + "glow", + "log", + "memoffset", + "profiling", + "wasm-bindgen", + "web-sys", + "winit", +] + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "emath" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "491bdf728bf25ddd9ad60d4cf1c48588fa82c013a2440b91aa7fc43e34a07c32" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "epaint" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "009d0dd3c2163823a0abdb899451ecbc78798dec545ee91b43aff1fa790bab62" +dependencies = [ + "ab_glyph", + "ahash", + "bytemuck", + "ecolor", + "emath", + "epaint_default_fonts", + "log", + "nohash-hasher", + "parking_lot", + "profiling", +] + +[[package]] +name = "epaint_default_fonts" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c4fbe202b6578d3d56428fa185cdf114a05e49da05f477b3c7f0fbb221f1862" + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "flate2" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "flume" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da0e4dd2a88388a1f4ccc7c9ce104604dab68d9f408dc34cd45823d5a9069095" +dependencies = [ + "futures-core", + "futures-sink", + "nanorand", + "spin", +] + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared 0.1.1", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared 0.3.1", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.6", + "windows-link 0.2.1", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if 1.0.5", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if 1.0.5", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if 1.0.5", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "gl_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" +dependencies = [ + "khronos_api", + "log", + "xml-rs", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "glow" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "glutin" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325" +dependencies = [ + "bitflags 2.13.2", + "cfg_aliases", + "cgl", + "dispatch2", + "glutin_egl_sys", + "glutin_glx_sys", + "glutin_wgl_sys", + "libloading 0.8.9", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "once_cell", + "raw-window-handle", + "wayland-sys", + "windows-sys 0.52.0", + "x11-dl", +] + +[[package]] +name = "glutin-winit" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f" +dependencies = [ + "cfg_aliases", + "glutin", + "raw-window-handle", + "winit", +] + +[[package]] +name = "glutin_egl_sys" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2" +dependencies = [ + "gl_generator", + "windows-sys 0.52.0", +] + +[[package]] +name = "glutin_glx_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185" +dependencies = [ + "gl_generator", + "x11-dl", +] + +[[package]] +name = "glutin_wgl_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e" +dependencies = [ + "gl_generator", +] + +[[package]] +name = "gpu-alloc" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45cf04b2726f02df5508c6de726acdc90cdf97ac771a9a0ffd8ba10a6e696bf9" +dependencies = [ + "bitflags 2.13.2", + "gpu-alloc-types", +] + +[[package]] +name = "gpu-alloc-types" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2bbed164dd10ed526c2e4fe3e721ca4a71c61730e5aafac6844b417b3227058" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "gpu-allocator" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd" +dependencies = [ + "log", + "presser", + "thiserror 1.0.69", + "windows 0.58.0", +] + +[[package]] +name = "gpu-descriptor" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca" +dependencies = [ + "bitflags 2.13.2", + "gpu-descriptor-types", + "hashbrown 0.15.5", +] + +[[package]] +name = "gpu-descriptor-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if 1.0.5", + "crunchy", + "num-traits", + "zerocopy", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hexf-parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" + +[[package]] +name = "hmac-sha256" +version = "1.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad320b3b96fb2a455a0726d16efe0a5afdbd34b71dea5bc53b05ea057714d4e" + +[[package]] +name = "home" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys 0.8.7", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" + +[[package]] +name = "icu_properties" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" + +[[package]] +name = "icu_provider" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png", + "tiff", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if 1.0.5", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link 0.2.1", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if 1.0.5", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "khronos-egl" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76" +dependencies = [ + "libc", + "libloading 0.8.9", + "pkg-config", +] + +[[package]] +name = "khronos_api" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" + +[[package]] +name = "lazy_static" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" + +[[package]] +name = "lazycell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if 1.0.5", + "windows-link 0.2.1", +] + +[[package]] +name = "libloading" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60" +dependencies = [ + "cfg-if 1.0.5", + "windows-link 0.2.1", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "bitflags 2.13.2", + "libc", + "plain", + "redox_syscall 0.9.5", +] + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "litrs" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" + +[[package]] +name = "lzma-rust2" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e20f57f9918e5bd7bc58c22cdd70a6afc7375d4dd9683af5f2b34bd3d2bba619" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "matrixmultiply" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7" +dependencies = [ + "autocfg", + "rawpointer", +] + +[[package]] +name = "maybe-owned" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memmap2" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "metal" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e198a0ee42bdbe9ef2c09d0b9426f3b2b47d90d93a4a9b0395c4cea605e92dc0" +dependencies = [ + "bitflags 1.3.2", + "block", + "cocoa", + "core-graphics 0.19.2", + "foreign-types 0.3.2", + "log", + "objc", +] + +[[package]] +name = "metal" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605" +dependencies = [ + "bitflags 2.13.2", + "block", + "core-graphics-types 0.2.0", + "foreign-types 0.5.0", + "log", + "objc", + "paste", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "mozjpeg" +version = "0.10.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7891b80aaa86097d38d276eb98b3805d6280708c4e0a1e6f6aed9380c51fec9" +dependencies = [ + "arrayvec", + "bytemuck", + "libc", + "mozjpeg-sys", + "rgb", +] + +[[package]] +name = "mozjpeg-sys" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f0dc668bf9bf888c88e2fb1ab16a406d2c380f1d082b20d51dd540ab2aa70c1" +dependencies = [ + "cc", + "dunce", + "libc", + "nasm-rs", +] + +[[package]] +name = "naga" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "066cf25f0e8b11ee0df221219010f213ad429855f57c494f995590c861a9a7d8" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if 1.0.5", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.16.1", + "hexf-parse", + "indexmap", + "libm", + "log", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + +[[package]] +name = "nanorand" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "nasm-rs" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "706bf8a5e8c8ddb99128c3291d31bd21f4bcde17f0f4c20ec678d85c74faa149" +dependencies = [ + "jobserver", + "log", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "ndarray" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d" +dependencies = [ + "matrixmultiply", + "num-complex", + "num-integer", + "num-traits", + "portable-atomic", + "portable-atomic-util", + "rawpointer", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "nokhwa" +version = "0.10.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d63f10b450319a0ace7aa8e0e25477d1fdb345313a97e220e886175539a1dbb" +dependencies = [ + "flume", + "image", + "nokhwa-bindings-linux", + "nokhwa-bindings-macos", + "nokhwa-bindings-windows", + "nokhwa-core", + "paste", + "thiserror 2.0.21", +] + +[[package]] +name = "nokhwa-bindings-linux" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb67e22201a53322291740ca064b20eaaade7222ef0349f312d9b37b004e1984" +dependencies = [ + "libc", + "nokhwa-core", + "v4l", +] + +[[package]] +name = "nokhwa-bindings-macos" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f70d3908ea68324e44a6b3a0f885aa59e433fb1f6678839d09e0df7d226fb42d" +dependencies = [ + "block", + "cocoa-foundation", + "core-foundation 0.10.1", + "core-media-sys", + "core-video-sys", + "flume", + "nokhwa-core", + "objc", + "once_cell", +] + +[[package]] +name = "nokhwa-bindings-windows" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be28886bad8abcec3655c1f24b965b4cb596a72b23164c910c54439ce55d2a4" +dependencies = [ + "nokhwa-core", + "once_cell", + "windows 0.62.2", +] + +[[package]] +name = "nokhwa-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1cba20bebd3bd9ae22f9273ade5bbe49da3e047c8512b53fbaf8b4b9c80d496" +dependencies = [ + "bytes", + "image", + "mozjpeg", + "thiserror 2.0.21", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-integer" +version = "0.1.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", + "objc_exception", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "libc", + "objc2 0.5.3", + "objc2-core-data", + "objc2-core-image", + "objc2-foundation 0.2.2", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-contacts", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "dispatch", + "libc", + "objc2 0.5.3", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-image", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc_exception" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" +dependencies = [ + "cc", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "openssl" +version = "0.10.82" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4de8111e94a56adca7ebfe6c365b6d42f99deb69b74b6becacd4204e2f193aa2" +dependencies = [ + "bitflags 2.13.2", + "cfg-if 1.0.5", + "foreign-types 0.3.2", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "openssl-probe" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" + +[[package]] +name = "openssl-sys" +version = "0.9.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19c413d6ec9ebaf5e1c829d355cb3e9f783778d700f135be0921d52fce3c60ae" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "orbclient" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "5.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f59006ce1e204c30956638535b74d317bca99477b9356dfaec54c37f6f600ab" +dependencies = [ + "num-traits", +] + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "ort" +version = "2.0.0-rc.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37c87aa7a90b7ff3e0fe36cccd475df8d67f15f07f4d6c370c4b38464232813c" +dependencies = [ + "libloading 0.9.0", + "ndarray", + "ort-sys", + "smallvec", + "tracing", + "ureq 3.5.1", +] + +[[package]] +name = "ort-sys" +version = "2.0.0-rc.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d22b0417f1838db5a3ac0b3f98dfe39f6fb73624aa0a27c6bbb5040b9c7db2b" +dependencies = [ + "hmac-sha256", + "lzma-rust2", + "ureq 3.5.1", +] + +[[package]] +name = "owned_ttf_parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b" +dependencies = [ + "ttf-parser", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if 1.0.5", + "libc", + "redox_syscall 0.5.18", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pdfium-render" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "296b1146652b486ea6eea0d316e85ab6837ff69e8d2b1568e6fa7bc38bd4c00e" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "bytes", + "chrono", + "console_error_panic_hook", + "console_log", + "image", + "itertools", + "js-sys", + "libloading 0.9.0", + "log", + "maybe-owned", + "once_cell", + "utf16string", + "vecmath", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "peeking_take_while" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" + +[[package]] +name = "pem-rfc7468" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6305423e0e7738146434843d1694d621cce767262b2a86910beab705e4493d9" +dependencies = [ + "base64ct", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "piston-float" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad78bf43dcf80e8f950c92b84f938a0fc7590b7f6866fbcbeca781609c115590" + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if 1.0.5", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[package]] +name = "pollster" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "presser" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.119", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "range-alloc" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "rawpointer" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_syscall" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "580c875845b41ecb1564ad1ae4703044cef774145e3d7a94dc2b3fa7c97868fd" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "rfd" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed" +dependencies = [ + "ashpd", + "block2 0.6.2", + "dispatch2", + "js-sys", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "pollster", + "raw-window-handle", + "urlencoding", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows-sys 0.59.0", +] + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if 1.0.5", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.12.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sctk-adwaita" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec" +dependencies = [ + "ab_glyph", + "log", + "memmap2", + "smithay-client-toolkit 0.19.2", + "tiny-skia", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "core-foundation-sys 0.8.7", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys 0.8.7", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" + +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.13.0", + "calloop-wayland-source 0.3.0", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 0.38.44", + "thiserror 1.0.69", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-client-toolkit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.14.5", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.6", + "thiserror 2.0.21", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-experimental", + "wayland-protocols-misc", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-clipboard" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226" +dependencies = [ + "libc", + "smithay-client-toolkit 0.20.0", + "wayland-backend", +] + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "spin" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spirv" +version = "0.3.0+sdk-1.3.268.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + +[[package]] +name = "tiny-skia" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if 1.0.5", + "log", + "tiny-skia-path", +] + +[[package]] +name = "tiny-skia-path" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "pin-project-lite", +] + +[[package]] +name = "toml_datetime" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.19+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "ttf-parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" + +[[package]] +name = "type-map" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90" +dependencies = [ + "rustc-hash 2.1.3", +] + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "ureq" +version = "2.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d" +dependencies = [ + "base64 0.22.1", + "flate2", + "log", + "once_cell", + "rustls", + "rustls-pki-types", + "serde", + "serde_json", + "url", + "webpki-roots 0.26.11", +] + +[[package]] +name = "ureq" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7be76686bdf7198002062423ca0d8cf9b75a27c8e1de804513b97e97b555d9d" +dependencies = [ + "base64 0.23.1", + "der", + "log", + "native-tls", + "percent-encoding", + "rustls-pki-types", + "ureq-proto", + "utf8-zero", + "webpki-root-certs", +] + +[[package]] +name = "ureq-proto" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622dce33c252115466d83f63e9744a18f12b4406aae51a01c15ad8fcf1185eb3" +dependencies = [ + "base64 0.23.1", + "http", + "httparse", + "log", +] + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + +[[package]] +name = "utf16string" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b62a1e85e12d5d712bf47a85f426b73d303e2d00a90de5f3004df3596e9d216" +dependencies = [ + "byteorder", +] + +[[package]] +name = "utf8-zero" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8c0a043c9540bae7c578c88f91dda8bd82e59ae27c21baca69c8b191aaf5a6e" + +[[package]] +name = "utf8_iter" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + +[[package]] +name = "uuid" +version = "1.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "v4l" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8fbfea44a46799d62c55323f3c55d06df722fbe577851d848d328a1041c3403" +dependencies = [ + "bitflags 1.3.2", + "libc", + "v4l2-sys-mit", +] + +[[package]] +name = "v4l2-sys-mit" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6779878362b9bacadc7893eac76abe69612e8837ef746573c4a5239daf11990b" +dependencies = [ + "bindgen", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "vecmath" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "956ae1e0d85bca567dee1dcf87fb1ca2e792792f66f87dced8381f99cd91156a" +dependencies = [ + "piston-float", +] + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if 1.0.5", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.10", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wayland-backend" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.6", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" +dependencies = [ + "bitflags 2.13.2", + "rustix 1.1.6", + "wayland-backend", + "wayland-scanner", +] + +[[package]] +name = "wayland-csd-frame" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" +dependencies = [ + "bitflags 2.13.2", + "cursor-icon", + "wayland-backend", +] + +[[package]] +name = "wayland-cursor" +version = "0.31.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d" +dependencies = [ + "rustix 1.1.6", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-experimental" +version = "20250721.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-misc" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" +dependencies = [ + "proc-macro2", + "quick-xml", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" +dependencies = [ + "dlib", + "log", + "once_cell", + "pkg-config", +] + +[[package]] +name = "web-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webbrowser" +version = "1.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe8d20d0214027baf11b8b0cc307c1da7657d8f4db9aa956f7de27a6fb1acbd5" +dependencies = [ + "jni", + "log", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "url", + "web-sys", +] + +[[package]] +name = "webpki-root-certs" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webpki-roots" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" +dependencies = [ + "webpki-roots 1.0.11", +] + +[[package]] +name = "webpki-roots" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5f280bbb2b287bc8e7de7e3852945a0ff50d1bbcb5ed42b6c7a568c546df171" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "wgpu" +version = "27.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfe68bac7cde125de7a731c3400723cadaaf1703795ad3f4805f187459cd7a77" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "cfg-if 1.0.5", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "js-sys", + "log", + "naga", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27a75de515543b1897b26119f93731b385a19aea165a1ec5f0e3acecc229cae7" +dependencies = [ + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "indexmap", + "log", + "naga", + "once_cell", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.21", + "wgpu-core-deps-apple", + "wgpu-core-deps-emscripten", + "wgpu-core-deps-windows-linux-android", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core-deps-apple" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0772ae958e9be0c729561d5e3fd9a19679bcdfb945b8b1a1969d9bfe8056d233" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-emscripten" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b06ac3444a95b0813ecfd81ddb2774b66220b264b3e2031152a4a29fda4da6b5" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-windows-linux-android" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71197027d61a71748e4120f05a9242b2ad142e3c01f8c1b47707945a879a03c3" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-hal" +version = "27.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b21cb61c57ee198bc4aff71aeadff4cbb80b927beb912506af9c780d64313ce" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block", + "bytemuck", + "cfg-if 1.0.5", + "cfg_aliases", + "core-graphics-types 0.2.0", + "glow", + "glutin_wgl_sys", + "gpu-alloc", + "gpu-allocator", + "gpu-descriptor", + "hashbrown 0.16.1", + "js-sys", + "khronos-egl", + "libc", + "libloading 0.8.9", + "log", + "metal 0.32.0", + "naga", + "ndk-sys", + "objc", + "once_cell", + "ordered-float", + "parking_lot", + "portable-atomic", + "portable-atomic-util", + "profiling", + "range-alloc", + "raw-window-handle", + "renderdoc-sys", + "smallvec", + "thiserror 2.0.21", + "wasm-bindgen", + "web-sys", + "wgpu-types", + "windows 0.58.0", + "windows-core 0.58.0", +] + +[[package]] +name = "wgpu-types" +version = "27.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afdcf84c395990db737f2dd91628706cb31e86d72e53482320d368e52b5da5eb" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "js-sys", + "log", + "thiserror 2.0.21", + "web-sys", +] + +[[package]] +name = "which" +version = "4.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" +dependencies = [ + "either", + "home", + "once_cell", + "rustix 0.38.44", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core 0.58.0", + "windows-targets", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections 0.2.0", + "windows-core 0.61.2", + "windows-future 0.2.1", + "windows-link 0.1.3", + "windows-numerics 0.2.0", +] + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections 0.3.2", + "windows-core 0.62.2", + "windows-future 0.3.2", + "windows-numerics 0.3.1", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core 0.62.2", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading 0.1.0", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core 0.62.2", + "windows-link 0.2.1", + "windows-threading 0.2.1", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core 0.62.2", + "windows-link 0.2.1", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winit" +version = "0.30.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +dependencies = [ + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.13.2", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation 0.9.4", + "core-graphics 0.23.2", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "objc2-ui-kit", + "orbclient", + "percent-encoding", + "pin-project", + "raw-window-handle", + "redox_syscall 0.4.1", + "rustix 0.38.44", + "sctk-adwaita", + "smithay-client-toolkit 0.19.2", + "smol_str", + "tracing", + "unicode-segmentation", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-plasma", + "web-sys", + "web-time", + "windows-sys 0.52.0", + "x11-dl", + "x11rb", + "xkbcommon-dl", +] + +[[package]] +name = "winnow" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "as-raw-xcb-connection", + "gethostname", + "libc", + "libloading 0.8.9", + "once_cell", + "rustix 1.1.6", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "xcursor" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" + +[[package]] +name = "xkbcommon-dl" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" +dependencies = [ + "bitflags 2.13.2", + "dlib", + "log", + "once_cell", + "xkeysym", +] + +[[package]] +name = "xkeysym" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" + +[[package]] +name = "xml-rs" +version = "0.8.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" + +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix 1.1.6", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus-lockstep" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6998de05217a084b7578728a9443d04ea4cd80f2a0839b8d78770b76ccd45863" +dependencies = [ + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus-lockstep-macros" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10da05367f3a7b7553c8cdf8fa91aee6b64afebe32b51c95177957efc47ca3a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "zbus-lockstep", + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.10", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow", + "zvariant", +] + +[[package]] +name = "zbus_xml" +version = "5.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a" +dependencies = [ + "serde", + "winnow", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920" +dependencies = [ + "serde", +] + +[[package]] +name = "zerocopy" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "zip" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dcb24d0152526ae49b9b96c1dcf71850ca1e0b882e4e28ed898a93c41334744" +dependencies = [ + "arbitrary", + "crc32fast", + "crossbeam-utils", + "flate2", + "indexmap", + "memchr", + "zopfli", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zopfli" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11" +dependencies = [ + "bumpalo", + "crc32fast", + "log", + "simd-adler32", +] + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "url", + "winnow", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.10", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.10", + "winnow", +] diff --git a/eat-rs/Cargo.toml b/eat-rs/Cargo.toml new file mode 100644 index 0000000..0eef28e --- /dev/null +++ b/eat-rs/Cargo.toml @@ -0,0 +1,20 @@ +[workspace] +resolver = "2" +members = ["crates/eat-core", "crates/eat-pdf", "crates/eat-ocr", "crates/eat-app", "crates/eat-cli", "crates/eat-gui"] + +[workspace.package] +version = "0.1.0" +edition = "2021" +license = "MIT" + +[workspace.dependencies] +serde = { version = "1", features = ["derive"] } +serde_json = "1" +ureq = { version = "2", features = ["json"] } +clap = { version = "4", features = ["derive"] } +ort = "2.0.0-rc.15" +image = { version = "0.25", default-features = false, features = ["png", "jpeg"] } + +[profile.release] +lto = false +strip = true diff --git a/eat-rs/crates/eat-app/Cargo.toml b/eat-rs/crates/eat-app/Cargo.toml new file mode 100644 index 0000000..1ca33c3 --- /dev/null +++ b/eat-rs/crates/eat-app/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "eat-app" +version.workspace = true +edition.workspace = true +license.workspace = true + +[dependencies] +eat-core = { path = "../eat-core" } +eat-pdf = { path = "../eat-pdf" } +eat-ocr = { path = "../eat-ocr" } +serde_json = { workspace = true } +zip = { version = "2", default-features = false, features = ["deflate"] } +serde = { workspace = true } +ureq = { workspace = true } + +[dev-dependencies] +serde = { workspace = true } +ureq = { workspace = true } diff --git a/eat-rs/crates/eat-app/examples/batch.rs b/eat-rs/crates/eat-app/examples/batch.rs new file mode 100644 index 0000000..ab85993 --- /dev/null +++ b/eat-rs/crates/eat-app/examples/batch.rs @@ -0,0 +1,27 @@ +//! Verify the GUI's batch core: folder of PDFs → annotated outputs → ZIP. +fn main() { + let dir = std::env::args().nth(1).expect("usage: batch "); + let zip = std::env::args().nth(2).expect("usage: batch "); + let reader = std::env::args().nth(3).unwrap_or_else(|| "ppocr".into()); + let score = std::env::args().nth(4).map(|v| v != "no").unwrap_or(true); + let rubric = std::fs::read_to_string( + std::env::var("HOME").unwrap_or_default() + "/eat-rubric.json", + ) + .ok() + .and_then(|t| serde_json::from_str(&t).ok()) + .unwrap_or_default(); + let opts = eat_app::PipelineOpts { + save_intermediate: true, + no_spell_correct: true, + reader, + vlm_model: "qwen2.5vl:7b".into(), + score, + rubric, + ..Default::default() + }; + let (zip, results) = eat_app::run_batch(&dir, &zip, &opts); + println!("ZIP: {}", zip); + for (name, n, status) in results { + println!(" {} — {} errors — {}", name, n, status); + } +} diff --git a/eat-rs/crates/eat-app/examples/rubric_batch.rs b/eat-rs/crates/eat-app/examples/rubric_batch.rs new file mode 100644 index 0000000..6791515 --- /dev/null +++ b/eat-rs/crates/eat-app/examples/rubric_batch.rs @@ -0,0 +1,19 @@ +fn main() { + let dir = "/tmp/rubric-test"; + let zip = "/tmp/rubric-test/out.zip"; + let rubric: eat_app::report::RubricCfg = serde_json::from_str( + &std::fs::read_to_string(std::env::var("HOME").unwrap() + "/eat-rubric.json").unwrap(), + ).unwrap(); + println!("滿分 = {}", rubric.total_max()); + let opts = eat_app::PipelineOpts { + save_intermediate: true, + no_spell_correct: true, + reader: "vlm".into(), + vlm_model: "qwen2.5vl:7b".into(), + score: true, + rubric, + ..Default::default() + }; + let (_z, r) = eat_app::run_batch(dir, zip, &opts); + for (n, e, s) in r { println!("{} — {} errors — {}", n, e, s); } +} diff --git a/eat-rs/crates/eat-app/examples/rubric_dump.rs b/eat-rs/crates/eat-app/examples/rubric_dump.rs new file mode 100644 index 0000000..03f5dd3 --- /dev/null +++ b/eat-rs/crates/eat-app/examples/rubric_dump.rs @@ -0,0 +1,8 @@ +fn main() { + let r = eat_app::report::RubricCfg::default(); + println!("整體要求: {}", r.criteria); + for d in &r.dims { + println!("[{}] {:.0} 分 — {}", d.name, d.max, d.desc); + } + println!("總滿分: {:.0}", r.total_max()); +} diff --git a/eat-rs/crates/eat-app/examples/score.rs b/eat-rs/crates/eat-app/examples/score.rs new file mode 100644 index 0000000..4509a24 --- /dev/null +++ b/eat-rs/crates/eat-app/examples/score.rs @@ -0,0 +1,146 @@ +//! 依 Standard 1/2 評分規準為作文打分(重新審閱)。 +//! 用法:score ... +//! 讀取每份 *_ocr.json(前次批改保留的 OCR 文字)+對應 *_errors.json, +//! 以規準 prompt 評分,輸出 CSV 總表。 + +use std::time::Instant; + +const RUBRIC: &str = r#"You are grading an in-class English paragraph writing exam (English Composition III Midterm, PART 4) using the official grading rubric below. Grade ONLY the student's handwritten paragraph; ignore exam-form furniture in the OCR text (instructions, prompts, rubric wording, point values, page numbers). + +GRADING RUBRIC (30 points total): +- Topic Sentence (6 pts): clear topic + controlling idea. +- Supporting Sentences & Unity (8 pts): 5-6+ detailed sentences with specific details/facts/examples; strictly on topic; no fragments; correct count/non-count nouns; clear pronouns; formal tone. +- Grammar & Academic Diction (10 pts): grammar correctness, spelling, academic word choice. +- Concluding Sentence (6 pts): logical conclusion/restatement using an appropriate transition signal (e.g., Overall, In conclusion, Therefore). + +WRITING REQUIREMENTS: paragraph of at least 8 sentences (approx. 100-150 words). + +OUTPUT: ONLY a JSON object, no other text: +{"topic_sentence": <0-6>, "supporting_unity": <0-8>, "grammar_diction": <0-10>, "concluding": <0-6>, "total": <0-30>, "comment": "<繁體中文 40-60 字短評:優點與最大改進方向>"} +"#; + +#[derive(serde::Deserialize, Debug, Clone)] +struct Word { + text: String, +} + +#[derive(serde::Deserialize, Debug, Clone)] +struct ErrItem { + original: String, + suggestion: String, +} + +#[derive(serde::Deserialize, Debug, Clone, Default)] +struct Score { + #[serde(default)] + topic_sentence: f32, + #[serde(default)] + supporting_unity: f32, + #[serde(default)] + grammar_diction: f32, + #[serde(default)] + concluding: f32, + #[serde(default)] + total: f32, + #[serde(default)] + comment: String, +} + +fn main() { + let args: Vec = std::env::args().skip(1).collect(); + let out_csv = args.last().expect("usage: score ... ").clone(); + let dirs = &args[..args.len() - 1]; + assert!(!dirs.is_empty(), "at least one dir required"); + + let mut rows: Vec<(String, Score, usize)> = Vec::new(); + for dir in dirs { + let mut files: Vec = std::fs::read_dir(dir) + .unwrap() + .filter_map(|e| e.ok().map(|e| e.path())) + .filter(|p| { + p.file_name() + .map(|n| n.to_string_lossy().ends_with("_ocr.json")) + .unwrap_or(false) + }) + .collect(); + files.sort(); + for f in files { + let stem = f.file_stem().unwrap().to_string_lossy(); + let stem = stem.strip_suffix("_ocr").unwrap_or(&stem).to_string(); + let ocr: Vec> = serde_json::from_str(&std::fs::read_to_string(&f).unwrap()) + .unwrap_or_default(); + let text: String = ocr + .iter() + .flat_map(|p| p.iter()) + .map(|w| w.text.as_str()) + .collect::>() + .join(" "); + let err_path = f.with_file_name(format!("{}_errors.json", stem)); + let err_count = std::fs::read_to_string(&err_path) + .ok() + .and_then(|s| serde_json::from_str::>(&s).ok()) + .map(|v| v.len()) + .unwrap_or(0); + if text.trim().is_empty() { + continue; + } + let t0 = Instant::now(); + let score = grade(&text, err_count); + eprintln!( + "{} {} total={:.0} [{}] {:.0}s", + stem, + if score.total > 0.0 { "OK " } else { "???" }, + score.total, + score.comment, + t0.elapsed().as_secs() + ); + rows.push((stem, score, err_count)); + } + } + + let mut csv = String::from("essay,topic_6,support_8,grammar_10,concl_6,total_30,errors,comment\n"); + for (stem, s, e) in &rows { + csv.push_str(&format!( + "{},{},{},{},{},{},{},\"{}\"\n", + stem, s.topic_sentence, s.supporting_unity, s.grammar_diction, s.concluding, s.total, e, + s.comment.replace('"', "'") + )); + } + std::fs::write(&out_csv, &csv).unwrap(); + println!("\n{}", csv); + println!("報表 → {}", out_csv); +} + +fn grade(text: &str, err_count: usize) -> Score { + let model = eat_core::nlp::default_model_name(); + let url = eat_core::nlp::default_ollama_url(); + let agent = ureq::AgentBuilder::new() + .timeout_read(std::time::Duration::from_secs(300)) + .build(); + let prompt = format!( + "Detected language errors in this essay ({} items): see below the essay.\n\nESSAY OCR TEXT:\n{}\n\n(An automatic checker additionally found {} spelling/grammar issues in this essay.)", + 0, text, err_count + ); + let payload = serde_json::json!({ + "model": model, + "prompt": prompt, + "system": RUBRIC, + "stream": false, + "options": {"temperature": 0, "num_predict": 512} + }); + for _ in 0..2 { + if let Ok(resp) = agent.post(&url).timeout(std::time::Duration::from_secs(300)).send_json(payload.clone()) { + if let Ok(v) = resp.into_json::() { + let raw = v.get("response").and_then(|r| r.as_str()).unwrap_or(""); + if let Some(s) = raw.find('{') { + if let Some(e) = raw.rfind('}') { + if let Ok(sc) = serde_json::from_str::(&raw[s..=e]) { + return sc; + } + } + } + } + } + } + Score::default() +} diff --git a/eat-rs/crates/eat-app/src/lib.rs b/eat-rs/crates/eat-app/src/lib.rs new file mode 100644 index 0000000..984f960 --- /dev/null +++ b/eat-rs/crates/eat-app/src/lib.rs @@ -0,0 +1,577 @@ +//! Shared pipeline orchestration — Rust port of main.py, used by both the +//! CLI binary and the GUI. Also provides the folder→ZIP batch flow that +//! mirrors gui.py's processing loop. + +use std::path::{Path, PathBuf}; +use std::time::Instant; + +use eat_core::logging; +use eat_core::nlp::{default_language, default_model_name, default_ollama_url, EatError, NlpEngine}; +use eat_core::words::Word; +use eat_ocr::imgops::Img; +use eat_ocr::RapidOcr; +use eat_pdf::{Annotator, EatPdf}; +use std::sync::{Mutex, OnceLock}; + +/// pdfium's dynamic binding initializes exactly once per process; every +/// pipeline call shares this instance (serialized behind a Mutex). +static PDF_ENGINE: OnceLock> = OnceLock::new(); +/// PP-OCR sessions are expensive to load (~30 MB of weights); share them too. +static OCR_ENGINE: OnceLock>> = OnceLock::new(); + +pub mod report; + +pub fn shared_pdf() -> Result<&'static EatPdf, PipelineError> { + PDF_ENGINE + .get_or_init(|| EatPdf::bind().ok()) + .as_ref() + .ok_or_else(|| PipelineError("pdfium bind failed on first init".into())) +} + +pub fn shared_ocr() -> Result<&'static Mutex, PipelineError> { + if let Some(o) = OCR_ENGINE.get() { + return o.as_ref().ok_or_else(|| PipelineError("PP-OCR models failed to load on first init".into())); + } + let loaded = RapidOcr::load().ok().map(|m| Mutex::new(m)); + let stored = OCR_ENGINE.get_or_init(|| loaded); + stored.as_ref().ok_or_else(|| PipelineError("PP-OCR models failed to load (EAT_PPROCR_DIR / models/ beside executable / vendor/ppocr)".into())) +} + +#[derive(Debug, Clone, Default)] +pub struct PipelineOpts { + pub input_pdf: Option, + pub output: Option, + pub model: Option, + pub api_url: Option, + /// Bearer token(OpenAI-compatible 端點用;本地 Ollama 免填) + pub api_key: Option, + pub ollama_url: Option, + pub language: Option, + pub save_intermediate: bool, + pub no_spell_correct: bool, + pub no_gpu: bool, + /// 掃描頁讀取引擎:"ppocr"(本機 CRNN,快)或 "vlm"(Ollama 視覺模型 + /// 逐行精讀,手寫準確度大幅提升)。det(行框)一律用本機 PP-OCR。 + pub reader: String, + pub vlm_model: String, + /// 評分並產出批改報表 CSV。 + pub score: bool, + /// 批改標準(文字+各維度佔比)。預設=Standard 1/2 的 30 分制。 + pub rubric: report::RubricCfg, +} + +fn vlm_model_name(opts: &PipelineOpts) -> String { + if opts.vlm_model.is_empty() { "qwen2.5vl:7b".into() } else { opts.vlm_model.clone() } +} + +#[derive(Debug)] +pub struct PipelineError(pub String); + +impl std::fmt::Display for PipelineError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.0) + } +} + +/// Port of main.py _sanitize_output_path: keep the output inside the input +/// file's directory. +fn sanitize_output_path(output: &str, input_dir: &Path) -> Result { + let out = Path::new(output); + // join, then make absolute against the CWD like Python's Path.resolve() + let joined = if out.is_absolute() { + out.to_path_buf() + } else { + let j = input_dir.join(out); + if j.is_absolute() { + j + } else { + std::env::current_dir() + .unwrap_or_default() + .join(j) + } + }; + // lexical normalize (no fs access; output may not exist yet) + let resolved = joined + .components() + .fold(PathBuf::new(), |mut acc, c| { + match c { + std::path::Component::ParentDir => { + acc.pop(); + } + std::path::Component::CurDir => {} + other => acc.push(other.as_os_str()), + } + acc + }); + // resolve symlinks via the (existing) parent, like Python's Path.resolve() + let resolved = if let (Some(parent), Some(name)) = (resolved.parent(), resolved.file_name()) { + let cp = parent.canonicalize().unwrap_or_else(|_| parent.to_path_buf()); + cp.join(name) + } else { + resolved + }; + let input_resolved = input_dir.canonicalize().unwrap_or_else(|_| { + std::env::current_dir() + .unwrap_or_default() + .join(input_dir) + }); + if resolved != input_resolved && !resolved.starts_with(&input_resolved) { + return Err(PipelineError(format!( + "Output path escapes input directory: {:?} not under {:?}", + resolved, input_resolved + ))); + } + Ok(resolved) +} + +pub fn run_pipeline(args: &PipelineOpts) -> Result { + let t0 = Instant::now(); + let input = args + .input_pdf + .as_deref() + .ok_or_else(|| PipelineError("No input PDF given. Usage: eat essay.pdf".into()))?; + let inp = PathBuf::from(input); + if !inp.exists() { + return Err(PipelineError(format!("File not found: {}", inp.display()))); + } + + let stem = inp.file_stem().and_then(|s| s.to_str()).unwrap_or("essay"); + let default_out = format!("{}_annotated.pdf", stem); + let out_pdf = sanitize_output_path( + args.output.as_deref().unwrap_or(&default_out), + inp.parent().unwrap_or(Path::new(".")), + )?; + + // ── Step 1/3 — extraction ────────────────────────────────────────────── + logging::info("━━━ Step 1/3 — OCR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"); + logging::info(" Digital PDF → pdfium | Scanned/Handwritten → PP-OCR (Rust)"); + let pdf = shared_pdf()?; + let t1 = Instant::now(); + let extracts = pdf + .extract_pdf(&inp.to_string_lossy()) + .map_err(|e| PipelineError(e.to_string()))?; + let mut pages: Vec> = Vec::new(); + const SCAN_DPI: f32 = 300.0; + const CONFIDENCE_THRESHOLD: f32 = 0.4; + for (i, ex) in extracts.iter().enumerate() { + if ex.scanned { + let t = Instant::now(); + let ocr_lock = shared_ocr()?; + let mut engine = ocr_lock.lock().unwrap(); + let (w, h, rgb) = pdf + .render_page_rgb(&inp.to_string_lossy(), i as i32, SCAN_DPI) + .map_err(|e| PipelineError(e.to_string()))?; + let img = Img::from_rgb(w as usize, h as usize, &rgb); + let lines = if args.reader == "vlm" { + let url = args + .api_url + .as_deref() + .or(args.ollama_url.as_deref()) + .unwrap_or(&default_ollama_url()) + .to_string(); + let vlm = eat_ocr::VlmReader::with_key(&vlm_model_name(args), &url, args.api_key.as_deref()); + logging::info(&format!(" Page {}: VLM 行讀取({})…", i + 1, vlm_model_name(args))); + engine.run_with_reader(&img, &vlm).map_err(|e| PipelineError(e.to_string()))? + } else { + engine.run(&img).map_err(|e| PipelineError(e.to_string()))? + }; + // px → PDF points (300 dpi render): pt = px * 72 / dpi + let scale = 72.0 / SCAN_DPI as f64; + let mut words = Vec::new(); + for l in lines { + if l.text.trim().is_empty() || l.score < CONFIDENCE_THRESHOLD { + continue; + } + words.push(Word { + text: l.text.clone(), + box_: [ + [l.box_[0].0 * scale, l.box_[0].1 * scale], + [l.box_[1].0 * scale, l.box_[1].1 * scale], + [l.box_[2].0 * scale, l.box_[2].1 * scale], + [l.box_[3].0 * scale, l.box_[3].1 * scale], + ], + }); + } + logging::info(&format!( + " Page {}: SCAN/HANDWRITTEN ({} words via PP-OCR @ {} DPI, {:.1}s)", + i + 1, + words.len(), + SCAN_DPI, + t.elapsed().as_secs_f32() + )); + pages.push(words); + } else { + logging::info(&format!( + " Page {}: DIGITAL ({} words via pdfium)", + i + 1, + ex.words.len() + )); + pages.push(ex.words.clone()); + } + } + let total_words: usize = pages.iter().map(|p| p.len()).sum(); + logging::info(&format!( + "OCR done: {} words | {} page(s) [{:.1}s]", + total_words, + pages.len(), + t1.elapsed().as_secs_f32() + )); + if total_words == 0 { + return Err(PipelineError( + "OCR found 0 words. Check that the PDF is readable and not corrupted.".into(), + )); + } + + // ── Step 2/3 — NLP ───────────────────────────────────────────────────── + logging::info("━━━ Step 2/3 — Grammar Analysis (LLM) ━━━━━━━━━━━━━━━━━━━━━━"); + let nlp = NlpEngine::with_key( + args.model.as_deref().unwrap_or(&default_model_name()), + args.api_url.as_deref().or(args.ollama_url.as_deref()).unwrap_or(&default_ollama_url()), + args.api_key.as_deref(), + args.language.as_deref().unwrap_or(&default_language()), + ); + let t2 = Instant::now(); + let errors = nlp + .analyse_pages(&pages) + .map_err(|e| PipelineError(e.to_string()))?; + logging::info(&format!( + "Analysis done: {} error(s) [{:.1}s]", + errors.len(), + t2.elapsed().as_secs_f32() + )); + + if errors.is_empty() { + logging::warn( + "No errors returned by the model. Possible causes:\n \ + • Ollama not running → run: ollama serve\n \ + • Model not pulled → run: ollama pull qwen2.5:7b\n \ + • OCR text garbled → check _ocr.json with --save-intermediate\n \ + Annotated PDF will still be saved with legend only.", + ); + } else { + for (i, e) in errors.iter().enumerate() { + logging::info(&format!( + " {:3}. [{:8}] {:?} → {:?}", + i + 1, + e.kind, + e.original, + e.suggestion + )); + } + } + + // OCR lines carry multi-word text; split into proportional word boxes so + // the annotator's span matcher can place tags on scanned essays. + let pages = eat_pdf::split_line_words(&pages); + + // ── Step 3/3 — annotate ──────────────────────────────────────────────── + logging::info("━━━ Step 3/3 — Annotating PDF ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"); + let ann = Annotator::new(args.language.as_deref().unwrap_or(&default_language())); + let result = ann + .annotate_pdf( + pdf.pdfium(), + &inp.to_string_lossy(), + &pages, + &errors, + &out_pdf.to_string_lossy(), + ) + .map_err(|e| PipelineError(e.to_string()))?; + let _ = result; + logging::info(&format!( + "Annotated PDF saved → {} [{:.1}s]", + out_pdf.display(), + t0.elapsed().as_secs_f32() + )); + + // ── Optional: intermediate files ─────────────────────────────────────── + if args.save_intermediate { + let ocr_path = inp.with_file_name(format!("{}_ocr.json", stem)); + let err_path = inp.with_file_name(format!("{}_errors.json", stem)); + let ocr_json = serde_json::to_string_pretty(&pages) + .map_err(|e| PipelineError(e.to_string()))?; + let err_json = serde_json::to_string_pretty(&errors) + .map_err(|e| PipelineError(e.to_string()))?; + std::fs::write(&ocr_path, ocr_json) + .map_err(|e| PipelineError(format!("write {}: {}", ocr_path.display(), e)))?; + std::fs::write(&err_path, err_json) + .map_err(|e| PipelineError(format!("write {}: {}", err_path.display(), e)))?; + logging::info(&format!("OCR data → {}", ocr_path.display())); + logging::info(&format!("Error list → {}", err_path.display())); + } + + logging::info(&format!( + "━━━ Pipeline complete in {:.1}s ━━━━━━━━━━━━━━━━━━━", + t0.elapsed().as_secs_f32() + )); + Ok(out_pdf.to_string_lossy().into_owned()) +} + + +/// Process every PDF in `input_dir` and pack the annotated outputs into a +/// single ZIP (port of gui.py's batch loop). Returns (zip_path, per-file +/// (name, error_count, status_string)) pairs for the results table. +pub fn run_batch( + input_dir: &str, + zip_path: &str, + opts: &PipelineOpts, +) -> (String, Vec<(String, usize, String)>) { + let mut results: Vec<(String, usize, String)> = Vec::new(); + #[derive(Clone)] + struct DetailRow { + essay: String, + total: f32, + sentence: String, + kind: String, + original: String, + suggestion: String, + } + let mut detail_rows: Vec = Vec::new(); + #[derive(Clone, Default)] + struct ScoredEssay { + scores: Vec, + comment: String, + total: f32, + } + let mut score_rows: Vec<(String, ScoredEssay)> = Vec::new(); + let mut pdfs: Vec = std::fs::read_dir(input_dir) + .map(|rd| { + rd.filter_map(|e| e.ok()) + .map(|e| e.path()) + .filter(|p| p.extension().map(|x| x.eq_ignore_ascii_case("pdf")).unwrap_or(false)) + // never re-process our own annotated outputs + .filter(|p| { + !p.file_stem() + .map(|s| { + let s = s.to_string_lossy(); + s.ends_with("_annotated") || s.ends_with(".annotated") + }) + .unwrap_or(false) + }) + .collect() + }) + .unwrap_or_default(); + pdfs.sort(); + if pdfs.is_empty() { + logging::error(&format!("No PDFs found in {}", input_dir)); + return (zip_path.to_string(), results); + } + logging::info(&format!("Processing {} PDF(s) from {}", pdfs.len(), input_dir)); + + let mut out_files: Vec = Vec::new(); + for (i, pdf) in pdfs.iter().enumerate() { + let name = pdf.file_name().map(|n| n.to_string_lossy().into_owned()).unwrap_or_default(); + logging::info(&format!("File {}/{} — {}", i + 1, pdfs.len(), name)); + let out = pdf.with_extension("annotated.pdf"); + let mut o = opts.clone(); + o.input_pdf = Some(pdf.to_string_lossy().into_owned()); + o.output = Some(out.to_string_lossy().into_owned()); + match run_pipeline(&o) { + Ok(saved) => { + let stem = pdf.file_stem().unwrap().to_string_lossy().to_string(); + let err_list: Vec = std::fs::read_to_string( + pdf.with_file_name(format!("{}_errors.json", stem)), + ) + .ok() + .and_then(|t| serde_json::from_str::>(&t).ok()) + .unwrap_or_default() + .into_iter() + .filter(|e| !is_form_noise(&e.original)) + .collect(); + let pages: eat_core::words::Pages = std::fs::read_to_string( + pdf.with_file_name(format!("{}_ocr.json", stem)), + ) + .ok() + .and_then(|t| serde_json::from_str(&t).ok()) + .unwrap_or_default(); + let language = o.language.clone().unwrap_or_else(|| "en".into()); + let grade = if opts.score && !opts.rubric.dims.is_empty() { + let text = pages + .iter() + .map(|w| eat_core::words::words_to_text(w, &language)) + .collect::>() + .join(" "); + let (scores, comment) = report::grade_with( + &opts.rubric, + &text, + err_list.len(), + &o.model.clone().unwrap_or_else(default_model_name), + &o.ollama_url.clone().unwrap_or_else(default_ollama_url), + ); + let total: f32 = scores + .iter() + .zip(opts.rubric.dims.iter()) + .map(|(s, d)| s.min(d.max)) + .sum(); + ScoredEssay { scores, comment, total } + } else { + ScoredEssay::default() + }; + for (sent, hits) in report::sentence_errors(&pages, &err_list, &language) { + for e in hits { + detail_rows.push(DetailRow { + essay: name.clone(), + total: grade.total, + sentence: sent.clone(), + kind: e.kind.clone(), + original: e.original.clone(), + suggestion: e.suggestion.clone(), + }); + } + } + results.push((name.clone(), err_list.len(), format!("done {:.0}分", grade.total))); + score_rows.push((name.clone(), grade)); + out_files.push(PathBuf::from(&saved)); + continue; + } + + Err(e) => { + logging::error(&format!("{} — {}", name, e)); + results.push((name.clone(), 0, format!("error: {}", e.0))); + } + } + } + + // 批改報表(評分總表+句級錯誤明細),與標註 PDF 一起進 ZIP + if opts.score && !score_rows.is_empty() { + let esc = |t: &str| t.replace('"', "'"); + let dim_header: Vec = opts + .rubric + .dims + .iter() + .map(|d| format!("{}{}", d.name, d.max)) + .collect(); + let total_max = opts.rubric.total_max(); + let mut csv = format!("essay,{},總分{},錯誤數,短評\n", dim_header.join(","), total_max); + for (name, g) in &score_rows { + let errs = detail_rows.iter().filter(|d| d.essay == *name).count(); + let mut row = name.clone(); + for sc in &g.scores { + row.push_str(&format!(",{}", sc)); + } + csv.push_str(&format!( + "{},{},{},\"{}\"\n", + row, + g.total, + errs, + esc(&g.comment) + )); + } + std::fs::write(std::path::Path::new(input_dir).join(REPORT_SUMMARY), &csv).ok(); + + // 每份作文一個明細檔(使用者要求:一個文檔一個錯誤明細) + for (name, g) in &score_rows { + let stem = name.trim_end_matches(".pdf"); + let mut dcsv = String::from("總分,問題句子,類型,錯字或錯處,建議\n"); + for d in detail_rows.iter().filter(|d| d.essay == *name) { + let kind = match d.kind.as_str() { + "spelling" => "拼字", + "grammar" => "文法", + _ => "語意", + }; + dcsv.push_str(&format!( + "{},\"{}\",{},\"{}\",\"{}\"\n", + d.total, + esc(&d.sentence), + kind, + esc(&d.original), + esc(&d.suggestion) + )); + } + let _ = g; // 分數已顯示於總表;明細行內含總分欄 + std::fs::write( + std::path::Path::new(input_dir).join(format!("{}_錯誤明細.csv", stem)), + &dcsv, + ) + .ok(); + } + logging::info(&format!( + "批改報表 → {}(總表+每份作文一個明細 CSV)", + std::path::Path::new(input_dir).join(REPORT_SUMMARY).display() + )); + } + + // pack outputs into the ZIP + let zf = std::fs::File::create(zip_path); + match zf { + Ok(f) => { + let mut zip = zip::ZipWriter::new(f); + let mut ok = true; + for out in &out_files { + let name = out.file_name().map(|n| n.to_string_lossy().into_owned()).unwrap_or_default(); + match std::fs::read(out) { + Ok(bytes) => { + if zip.start_file(name.as_str(), zip::write::SimpleFileOptions::default()).is_err() + || std::io::Write::write_all(&mut zip, &bytes).is_err() + { + ok = false; + } + } + Err(_) => ok = false, + } + } + // 批改報表 CSV 一併打包(總表+每份作文的明細檔) + if let Ok(rd) = std::fs::read_dir(input_dir) { + let mut names: Vec = rd + .filter_map(|e| e.ok()) + .map(|e| e.file_name().to_string_lossy().into_owned()) + .filter(|n| n == REPORT_SUMMARY || n.ends_with("_錯誤明細.csv")) + .collect(); + names.sort(); + for report_name in names { + if let Ok(bytes) = std::fs::read(std::path::Path::new(input_dir).join(&report_name)) { + if zip.start_file(report_name.as_str(), zip::write::SimpleFileOptions::default()).is_ok() { + let _ = std::io::Write::write_all(&mut zip, &bytes); + } + } + } + } + if zip.finish().is_err() { + ok = false; + } + if ok { + logging::info(&format!("Output ZIP → {} ({} file(s))", zip_path, out_files.len())); + } else { + logging::error("Failed writing output ZIP"); + } + } + Err(e) => logging::error(&format!("Cannot create {}: {}", zip_path, e)), + } + (zip_path.to_string(), results) +} + +const REPORT_SUMMARY: &str = "批改總表.csv"; + + +/// 試卷表單雜訊判定:頁碼(Page 5 of 7、第3頁、純數字)、點數標示 +/// (/20、/10、30 Points)、被數字與標點主導的片段(>60% 字元非字母 +/// 且非 CJK)——這些不是學生的寫作錯誤,不該進報表或標註。 +pub fn is_form_noise(text: &str) -> bool { + let t = text.trim(); + if t.is_empty() { + return true; + } + let lower = t.to_lowercase(); + if lower.starts_with("page ") || lower.contains(" page ") || lower.starts_with("第") && lower.ends_with("頁") { + return true; + } + if t.chars().all(|c| c.is_ascii_digit()) { + return true; + } + let letters = t.chars().filter(|c| c.is_alphabetic()).count(); + let total = t.chars().filter(|c| !c.is_whitespace()).count(); + if total == 0 { + return true; + } + // 數字/標點主導(如 "/20"、"Concluding Sentence /10" 的斜線數字段) + if (letters as f64 / total as f64) < 0.4 { + return true; + } + // 結尾是 "/數字" 的點數標示 + if let Some(pos) = t.rfind('/') { + let tail = &t[pos + 1..]; + if !tail.is_empty() && tail.chars().all(|c| c.is_ascii_digit()) { + return true; + } + } + false +} diff --git a/eat-rs/crates/eat-app/src/report.rs b/eat-rs/crates/eat-app/src/report.rs new file mode 100644 index 0000000..f2cc6e1 --- /dev/null +++ b/eat-rs/crates/eat-app/src/report.rs @@ -0,0 +1,211 @@ +//! 批改報表:句級錯誤對應(哪一句有問題、拼錯字在哪)+規準評分整合。 + +use eat_core::nlp::EatError; +use eat_core::words::{words_to_text, Pages}; + +/// 把錯誤對應到包含它的句子。回傳 (句子, 屬於該句的錯誤)。 +/// 對不上的錯誤(OCR 差異)附在最後一條「未定位」。 +pub fn sentence_errors<'a>(pages: &Pages, errors: &'a [EatError], language: &str) -> Vec<(String, Vec<&'a EatError>)> { + let text = pages + .iter() + .map(|w| words_to_text(w, language)) + .collect::>() + .join(" "); + let sentences = eat_core::nlp::split_sentences(&text); + let mut out: Vec<(String, Vec<&EatError>)> = Vec::new(); + let mut placed = vec![false; errors.len()]; + for sent in &sentences { + let lower = sent.to_lowercase(); + // 句子層表單過濾:頁碼條、規準文字、點數標示不是學生寫作 + if is_form_sentence(&lower) { + continue; + } + let mut hits: Vec<&EatError> = Vec::new(); + for (i, e) in errors.iter().enumerate() { + if lower.contains(&e.original.to_lowercase()) { + hits.push(e); + placed[i] = true; + } + } + if !hits.is_empty() { + out.push((sent.clone(), hits)); + } + } + let unplaced: Vec<&EatError> = errors + .iter() + .enumerate() + .filter(|(i, _)| !placed[*i]) + .map(|(_, e)| e) + .collect(); + if !unplaced.is_empty() { + out.push(("(未定位)".to_string(), unplaced)); + } + out +} + +/// 單一評分維度:名稱+說明(老師自己的標準,如 Standard 1/2 考卷原文)+滿分。 +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)] +pub struct Dim { + pub name: String, + /// 給 AI 的維度標準說明(可留空,留空則只用名稱評分) + #[serde(default)] + pub desc: String, + pub max: f32, +} + +/// 可設定批改規準:整體寫作要求+各維度(說明+佔比)。 +/// 預設=Standard 1/2 試卷規準原文(30 分制)。 +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)] +pub struct RubricCfg { + /// 整體寫作要求(所有維度共用) + pub criteria: String, + pub dims: Vec, +} + +pub const DEFAULT_CRITERIA: &str = "Paragraph MUST be at least 8 sentences in length (approx. 100-150 words). Follow all Unit 1 & Unit 2 writing guidelines. Grade ONLY the student's handwritten paragraph; ignore exam-form furniture (instructions, prompts, point values, page numbers)."; + +impl Default for RubricCfg { + fn default() -> Self { + RubricCfg { + criteria: DEFAULT_CRITERIA.to_string(), + dims: vec![ + Dim { + name: "主題句".into(), + desc: "Include a clear Topic Sentence containing both a Topic and a Controlling Idea.".into(), + max: 6.0, + }, + Dim { + name: "支持句".into(), + desc: "Provide at least 5-6 Supporting Sentences with specific details, facts, or examples. Maintain strict Unity (no off-topic sentences). No fragments.".into(), + max: 8.0, + }, + Dim { + name: "文法".into(), + desc: "Grammar & Academic Diction: correct count/non-count nouns; clear pronouns; formal tone; correct grammar, spelling and academic word choice.".into(), + max: 10.0, + }, + Dim { + name: "結論句".into(), + desc: "Include a strong Concluding Sentence starting with an appropriate transition word (e.g., Overall, In conclusion, Therefore). Logical conclusion/restatement.".into(), + max: 6.0, + }, + ], + } + } +} + +impl RubricCfg { + pub fn total_max(&self) -> f32 { + self.dims.iter().map(|d| d.max).sum() + } +} + +/// 依規準評分。回傳各維度得分(順序同 dims)+短評。 +pub fn grade_with(rubric: &RubricCfg, text: &str, err_count: usize, model: &str, url: &str) -> (Vec, String) { + let n = rubric.dims.len(); + let dim_lines: Vec = rubric + .dims + .iter() + .enumerate() + .map(|(i, d)| { + if d.desc.trim().is_empty() { + format!("- d{} \"{}\": 0-{} points", i, d.name, d.max) + } else { + format!("- d{} \"{}\" (0-{} pts): {}", i, d.name, d.max, d.desc) + } + }) + .collect(); + let keys: Vec = (0..n).map(|i| format!("\"d{}\": <0-max>", i)).collect(); + let system = format!( + "You are grading a student essay paragraph using the teacher's rubric below.\n\nOVERALL REQUIREMENTS:\n{}\n\nSCORING DIMENSIONS:\n{}\n\nOUTPUT: ONLY a JSON object, no other text:\n{{{}, \"comment\": \"<繁體中文 40-60 字短評:優點與最大改進方向>\"}}\nScore each dimension honestly; do not inflate.", + rubric.criteria, + dim_lines.join("\n"), + keys.join(", ") + ); + let payload = serde_json::json!({ + "model": model, + "prompt": format!("ESSAY OCR TEXT:\n{}\n\n(An automatic checker found {} spelling/grammar issues.)", text, err_count), + "system": system, + "stream": false, + "options": {"temperature": 0, "num_predict": 512} + }); + let agent = ureq::AgentBuilder::new() + .timeout_read(std::time::Duration::from_secs(300)) + .build(); + for _ in 0..2 { + if let Ok(resp) = agent + .post(url) + .timeout(std::time::Duration::from_secs(300)) + .send_json(payload.clone()) + { + if let Ok(v) = resp.into_json::() { + let raw = v.get("response").and_then(|r| r.as_str()).unwrap_or(""); + if let (Some(a), Some(b)) = (raw.find('{'), raw.rfind('}')) { + if let Ok(g) = serde_json::from_str::(&raw[a..=b]) { + let mut scores = Vec::with_capacity(n); + for i in 0..n { + let key = format!("d{}", i); + let val = g.get(&key).and_then(|x| x.as_f64()).or_else(|| { + g.get("scores").and_then(|s| s.get(&key)).and_then(|x| x.as_f64()) + }); + scores.push(val.unwrap_or(0.0) as f32); + } + let comment = g + .get("comment") + .and_then(|c| c.as_str()) + .unwrap_or("") + .to_string(); + return (scores, comment); + } + } + } + } + } + (vec![0.0; n], String::new()) +} + +// ── 舊介面相容(沿用 default 規準)──────────────────────────────────────── + +#[derive(serde::Deserialize, Debug, Clone, Default)] +pub struct Grade { + #[serde(default)] + pub topic_sentence: f32, + #[serde(default)] + pub supporting_unity: f32, + #[serde(default)] + pub grammar_diction: f32, + #[serde(default)] + pub concluding: f32, + #[serde(default)] + pub total: f32, + #[serde(default)] + pub comment: String, +} + +/// 句子是否為試卷表單文字(頁碼條 / 規準描述 / 點數)。 +fn is_form_sentence(lower: &str) -> bool { + // "page 5 of 7" 頁碼條 + if lower.contains("page ") && lower.contains(" of ") { + let words: Vec<&str> = lower.split_whitespace().collect(); + for w in words { + if w == "page" { + continue; + } + } + return lower.matches("page").count() >= 1 + && lower.split_whitespace().any(|w| w.parse::().is_ok()); + } + // 規準文字特徵 + for marker in [ + "logical conclusion/restatement", + "transition signal", + "detailed sentences; specific examples", + "grading rubric", + "controlling idea", + ] { + if lower.contains(marker) { + return true; + } + } + false +} diff --git a/eat-rs/crates/eat-cli/Cargo.toml b/eat-rs/crates/eat-cli/Cargo.toml new file mode 100644 index 0000000..67fb4fd --- /dev/null +++ b/eat-rs/crates/eat-cli/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "eat-cli" +version.workspace = true +edition.workspace = true +license.workspace = true + +[[bin]] +name = "eat" +path = "src/main.rs" + +[dependencies] +eat-core = { path = "../eat-core" } +eat-pdf = { path = "../eat-pdf" } +eat-ocr = { path = "../eat-ocr" } +eat-app = { path = "../eat-app" } +serde_json = { workspace = true } +clap = { workspace = true } diff --git a/eat-rs/crates/eat-cli/src/main.rs b/eat-rs/crates/eat-cli/src/main.rs new file mode 100644 index 0000000..29f242e --- /dev/null +++ b/eat-rs/crates/eat-cli/src/main.rs @@ -0,0 +1,98 @@ +//! eat — CLI wrapper; the pipeline itself lives in eat-app (shared with GUI). +//! +//! Usage: +//! eat essay.pdf +//! eat essay.pdf -o corrected.pdf --save-intermediate +//! eat essay.pdf --model qwen2.5:7b --language zh-Hant + +use clap::Parser; + +use eat_app::PipelineOpts; +#[derive(Parser, Debug)] +#[command( + name = "eat", + about = "AI Essay Corrector — hybrid OCR + local-LLM grammar analysis with per-language grading rubrics", + version +)] +struct Args { + /// Path to the essay PDF (digital or scanned/handwritten) + input_pdf: Option, + + /// Output annotated PDF (default: _annotated.pdf) + #[arg(short, long)] + output: Option, + + /// Ollama model name (default: qwen2.5:7b, override with env OLLAMA_MODEL) + #[arg(long)] + model: Option, + + /// Inference API endpoint. Ollama (…/api/generate) by default; any + /// OpenAI-compatible URL also works (needs --api-key). + #[arg(long)] + api_url: Option, + + /// Bearer token for OpenAI-compatible endpoints (not needed for Ollama) + #[arg(long)] + api_key: Option, + + /// Legacy alias for --api-url + #[arg(long, hide = true)] + ollama_url: Option, + + /// Essay language / grading rubric (override with env EAT_LANGUAGE) + #[arg(short, long)] + language: Option, + + /// Also save _ocr.json and _errors.json alongside output + #[arg(long)] + save_intermediate: bool, + + /// Keep raw OCR words (no auto spell-correction; the Rust port never + /// spell-corrects — the LLM sees genuine misspellings by design). + #[arg(long)] + no_spell_correct: bool, + + /// Accepted for Python-CLI compatibility; pdfium needs no GPU flag. + #[arg(long)] + no_gpu: bool, + + /// Scanned-page reading engine: "ppocr" (local CRNN, fast, default) or + /// "vlm" (Ollama vision model reads each detected line — far better on + /// handwriting). + #[arg(long, default_value = "ppocr")] + reader: String, + + /// Vision model for --reader vlm (default: qwen2.5vl:7b, needs + /// `ollama pull qwen2.5vl:7b`). + #[arg(long, default_value = "qwen2.5vl:7b")] + vlm_model: String, + + /// 依 Standard 1/2 規則評分(滿分 30)。批次模式另產出批改總表+ + /// 錯誤明細 CSV。 + #[arg(long, default_value_t = true, action = clap::ArgAction::Set)] + score: bool, +} + +fn main() { + let args = Args::parse(); + let opts = PipelineOpts { + input_pdf: args.input_pdf, + output: args.output, + model: args.model, + api_url: args.api_url, + api_key: args.api_key, + ollama_url: args.ollama_url, + language: args.language, + save_intermediate: args.save_intermediate, + no_spell_correct: args.no_spell_correct, + no_gpu: args.no_gpu, + reader: args.reader, + vlm_model: args.vlm_model, + score: args.score, + rubric: eat_app::report::RubricCfg::default(), + }; + if let Err(e) = eat_app::run_pipeline(&opts) { + eat_core::logging::error(&e.0); + std::process::exit(1); + } +} diff --git a/eat-rs/crates/eat-core/Cargo.toml b/eat-rs/crates/eat-core/Cargo.toml new file mode 100644 index 0000000..c5395bc --- /dev/null +++ b/eat-rs/crates/eat-core/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "eat-core" +version.workspace = true +edition.workspace = true +license.workspace = true + +[dependencies] +serde = { workspace = true } +serde_json = { workspace = true } +ureq = { workspace = true } diff --git a/eat-rs/crates/eat-core/examples/check.rs b/eat-rs/crates/eat-core/examples/check.rs new file mode 100644 index 0000000..e73a239 --- /dev/null +++ b/eat-rs/crates/eat-core/examples/check.rs @@ -0,0 +1,11 @@ +fn main() { + // 1) 本地 Ollama + let (ok, models, tag) = eat_core::NlpEngine::check_endpoint("http://localhost:11434/api/generate", None); + println!("local ollama: ok={} via={} models={:?}", ok, tag, &models[..models.len().min(3)]); + // 2) 無效 OpenAI key + let (ok, _, msg) = eat_core::NlpEngine::check_endpoint("https://api.openai.com/v1/chat/completions", Some("sk-invalid-xxx")); + println!("openai bad key: ok={} msg={}", ok, msg); + // 3) 無 key + let (ok, _, msg) = eat_core::NlpEngine::check_endpoint("https://api.openai.com/v1/chat/completions", None); + println!("openai no key: ok={} msg={}", ok, msg); +} diff --git a/eat-rs/crates/eat-core/src/languages.rs b/eat-rs/crates/eat-core/src/languages.rs new file mode 100644 index 0000000..8ef55b2 --- /dev/null +++ b/eat-rs/crates/eat-core/src/languages.rs @@ -0,0 +1,236 @@ +//! Per-language proofreading criteria (評判標準) — port of language_prompts.py. +//! +//! The three canonical error-type keys — spelling / grammar / semantic — are +//! preserved across ALL languages; only what each type *means* is adapted. +//! Meta-instructions stay in English (small local LLMs follow English +//! directives most reliably) while few-shot examples are in-language. + +/// Supported language codes in canonical order (mirrors Python's OrderedDict). +pub const LANGUAGES: &[(&str, &str)] = &[ + ("en", "English"), + ("zh-Hant", "繁體中文"), + ("zh-Hans", "简体中文"), + ("ja", "日本語"), + ("ko", "한국어"), + ("es", "Español"), + ("fr", "Français"), + ("de", "Deutsch"), +]; + +pub const DEFAULT_LANGUAGE: &str = "en"; + +/// Chinese/Japanese/Korean — wide (≈1 em) glyphs; affects tag-width truncation. +const CJK_LANGUAGES: &[&str] = &["zh-Hant", "zh-Hans", "ja", "ko"]; +/// Scripts without spaces between words — need char-based chunking / caps. +/// Korean IS space-delimited, so it is deliberately excluded (as in Python). +const NO_SPACE_LANGUAGES: &[&str] = &["zh-Hant", "zh-Hans", "ja"]; + +pub fn normalize(language: &str) -> &'static str { + if LANGUAGES.iter().any(|(code, _)| *code == language) { + // SAFETY-free: find again to return the 'static literal + LANGUAGES + .iter() + .find(|(code, _)| *code == language) + .map(|(code, _)| *code) + .unwrap_or(DEFAULT_LANGUAGE) + } else { + DEFAULT_LANGUAGE + } +} + +pub fn is_cjk(language: &str) -> bool { + CJK_LANGUAGES.contains(&normalize(language)) +} + +pub fn is_no_space(language: &str) -> bool { + NO_SPACE_LANGUAGES.contains(&normalize(language)) +} + +pub fn get_system_prompt(language: &str) -> &'static str { + match normalize(language) { + "zh-Hant" => ZH_HANT, + "zh-Hans" => ZH_HANS, + "ja" => JA, + "ko" => KO, + "es" => ES, + "fr" => FR, + "de" => DE, + _ => EN, + } +} + +// ── grading rubrics — byte-for-byte ports of the Python originals ────────── + +const EN: &str = r#"You are an English essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"recieved","type":"spelling","suggestion":"received"}, +{"original":"she go","type":"grammar","suggestion":"she goes"}, +{"original":"more better","type":"grammar","suggestion":"better"}, +{"original":"the future is bright and colorful","type":"semantic","suggestion":"the future is bright"} +] + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-4 words. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const ZH_HANT: &str = r#"You are a Traditional Chinese (繁體中文) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"在見","type":"spelling","suggestion":"再見"}, +{"original":"渡假","type":"spelling","suggestion":"度假"}, +{"original":"完成了了","type":"grammar","suggestion":"完成了"}, +{"original":"加強水平","type":"semantic","suggestion":"提高水平"} +] + +TYPES: +- "spelling" = 錯別字:同音或形近而寫錯的字(例:再/在、的/得/地、渡/度)。 +- "grammar" = 語法:詞序、量詞、虛詞、成分殘缺或重複、標點誤用。 +- "semantic" = 語意/詞語搭配:搭配不當、用詞不準、語意不通。 + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-8 characters. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const ZH_HANS: &str = r#"You are a Simplified Chinese (简体中文) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"在见","type":"spelling","suggestion":"再见"}, +{"original":"渡假","type":"spelling","suggestion":"度假"}, +{"original":"完成了了","type":"grammar","suggestion":"完成了"}, +{"original":"加强水平","type":"semantic","suggestion":"提高水平"} +] + +TYPES: +- "spelling" = 错别字:同音或形近而写错的字(例:再/在、的/得/地、渡/度)。 +- "grammar" = 语法:词序、量词、虚词、成分残缺或重复、标点误用。 +- "semantic" = 语意/词语搭配:搭配不当、用词不准、语意不通。 + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-8 characters. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const JA: &str = r#"You are a Japanese (日本語) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"それ意外","type":"spelling","suggestion":"それ以外"}, +{"original":"水に飲む","type":"grammar","suggestion":"水を飲む"}, +{"original":"薬を食べる","type":"semantic","suggestion":"薬を飲む"} +] + +TYPES: +- "spelling" = 表記・誤字:漢字変換ミス、送り仮名、誤字(例:以外/意外、送り仮名の誤り)。 +- "grammar" = 文法:助詞の誤り、活用、時制、語順。 +- "semantic" = 語彙・コロケーション:不自然な語の組み合わせ、語の選択ミス。 + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-8 characters. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const KO: &str = r#"You are a Korean (한국어) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"먹지 안아요","type":"spelling","suggestion":"먹지 않아요"}, +{"original":"학교를 가요","type":"grammar","suggestion":"학교에 가요"}, +{"original":"음식을 마시다","type":"semantic","suggestion":"음식을 먹다"} +] + +TYPES: +- "spelling" = 맞춤법:받침, 되/돼, 안/않 등 표기 오류. +- "grammar" = 문법:조사, 어미, 시제, 띄어쓰기. +- "semantic" = 어휘·연어:부자연스러운 어울림, 잘못된 단어 선택. + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-4 words. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const ES: &str = r#"You are a Spanish (Español) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"corazon","type":"spelling","suggestion":"corazón"}, +{"original":"la problema","type":"grammar","suggestion":"el problema"}, +{"original":"pienso de ti","type":"semantic","suggestion":"pienso en ti"} +] + +TYPES: +- "spelling" = ortografía: tildes/acentos, b/v, h muda, g/j. +- "grammar" = gramática: concordancia de género y número, conjugación, ser/estar. +- "semantic" = semántica: colocaciones, preposición incorrecta, calcos. + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-4 words. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const FR: &str = r#"You are a French (Français) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"a la maison","type":"spelling","suggestion":"à la maison"}, +{"original":"les enfant","type":"grammar","suggestion":"les enfants"}, +{"original":"dépendre sur","type":"semantic","suggestion":"dépendre de"} +] + +TYPES: +- "spelling" = orthographe: accents, consonnes doubles, homophones (a/à, et/est, ou/où). +- "grammar" = grammaire: accord en genre et nombre, conjugaison, participes. +- "semantic" = sémantique: collocations, préposition incorrecte, calques. + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-4 words. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; + +const DE: &str = r#"You are a German (Deutsch) essay proofreader. Output a JSON array of errors only. + +OUTPUT FORMAT — one object per error, exactly like this: +[ +{"original":"das haus","type":"spelling","suggestion":"das Haus"}, +{"original":"er gehen","type":"grammar","suggestion":"er geht"}, +{"original":"warten für dich","type":"semantic","suggestion":"warten auf dich"} +] + +TYPES: +- "spelling" = Rechtschreibung: ß/ss, Umlaute, Groß-/Kleinschreibung. +- "grammar" = Grammatik: Kasus, Artikel, Verbkonjugation, Wortstellung. +- "semantic" = Semantik: Kollokationen, falsche Präposition, Anglizismen. + +RULES: +- Output ONLY the JSON array. No words before or after it. +- "original" MUST be the exact text as written in the essay. Scan the essay carefully. +- NEVER output errors that are not actually present in the essay text. +- Each error is 1-4 words. Never full sentences. +- type = "spelling", "grammar", or "semantic". +- If no errors exist, output exactly: []"#; diff --git a/eat-rs/crates/eat-core/src/lib.rs b/eat-rs/crates/eat-core/src/lib.rs new file mode 100644 index 0000000..8cd0cd8 --- /dev/null +++ b/eat-rs/crates/eat-core/src/lib.rs @@ -0,0 +1,10 @@ +//! eat-core — language rubrics, word model, and the Ollama-backed NLP engine. +//! Rust port of language_prompts.py + nlp_engine.py from Project-EAT. + +pub mod languages; +pub mod logging; +pub mod nlp; +pub mod words; + +pub use nlp::{EatError, NlpEngine}; +pub use words::{Pages, Word}; diff --git a/eat-rs/crates/eat-core/src/logging.rs b/eat-rs/crates/eat-core/src/logging.rs new file mode 100644 index 0000000..125b399 --- /dev/null +++ b/eat-rs/crates/eat-core/src/logging.rs @@ -0,0 +1,57 @@ +//! Minimal stderr logger with HH:MM:SS timestamps plus an optional +//! subscriber hook (installed by the GUI to mirror log lines into its panel). + +use std::sync::atomic::{AtomicU8, Ordering}; +use std::sync::Mutex; +use std::time::{SystemTime, UNIX_EPOCH}; + +static LEVEL: AtomicU8 = AtomicU8::new(1); // 0=debug 1=info + +type Sink = Box; +static SINK: Mutex> = Mutex::new(None); + +pub fn set_debug(debug: bool) { + LEVEL.store(if debug { 0 } else { 1 }, Ordering::Relaxed); +} + +/// Install a log subscriber (e.g. the GUI log panel). Pass None to remove. +pub fn subscribe(sink: Option) { + *SINK.lock().unwrap() = sink; +} + +fn emit(level: &str, msg: &str) { + let line = format!("{} {:<7} eat {}", timestamp(), level, msg); + eprintln!("{}", line); + if let Ok(guard) = SINK.lock() { + if let Some(f) = guard.as_ref() { + f(&line); + } + } +} + +fn timestamp() -> String { + let secs = SystemTime::now() + .duration_since(UNIX_EPOCH) + .map(|d| d.as_secs()) + .unwrap_or(0); + let day = secs % 86_400; + format!("{:02}:{:02}:{:02}", day / 3600, (day % 3600) / 60, day % 60) +} + +pub fn debug(msg: &str) { + if LEVEL.load(Ordering::Relaxed) == 0 { + emit("DEBUG", msg); + } +} + +pub fn info(msg: &str) { + emit("INFO", msg); +} + +pub fn warn(msg: &str) { + emit("WARNING", msg); +} + +pub fn error(msg: &str) { + emit("ERROR", msg); +} diff --git a/eat-rs/crates/eat-core/src/nlp.rs b/eat-rs/crates/eat-core/src/nlp.rs new file mode 100644 index 0000000..2905235 --- /dev/null +++ b/eat-rs/crates/eat-core/src/nlp.rs @@ -0,0 +1,964 @@ +//! NLP analysis module — port of nlp_engine.py. +//! +//! Sends essay text to a local LLM via Ollama for proofreading, with: +//! • chunked processing for long essays (avoids context overflow) +//! • 4-tier fault-tolerant JSON parser (wrapped / embedded / line-by-line) +//! • validation + deduplication + hallucination filtering + +use std::collections::HashSet; +use std::time::Duration; + +use serde::{Deserialize, Serialize}; +use serde_json::{json, Value}; + +use crate::languages::{self, get_system_prompt, is_no_space, normalize}; +use crate::logging; +use crate::words::{words_to_text, Pages}; + +// ── Ollama config (env-overridable, mirroring nlp_engine.py) ─────────────── +pub const TEMPERATURE: f64 = 0.0; +pub const MAX_TOKENS: u64 = 4096; +pub const CHUNK_WORDS: usize = 200; // space-delimited essays +pub const CHUNK_CHARS: usize = 350; // non-space scripts (zh/ja) + +pub fn default_ollama_url() -> String { + std::env::var("OLLAMA_URL") + .unwrap_or_else(|_| "http://localhost:11434/api/generate".to_string()) +} +pub fn default_model_name() -> String { + std::env::var("OLLAMA_MODEL").unwrap_or_else(|_| "qwen2.5:7b".to_string()) +} +pub fn default_language() -> String { + std::env::var("EAT_LANGUAGE") + .unwrap_or_else(|_| languages::DEFAULT_LANGUAGE.to_string()) +} + +/// One detected error. JSON shape is identical to the Python pipeline's +/// `_errors.json` (field "type" holds spelling|grammar|semantic). +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +pub struct EatError { + pub original: String, + #[serde(rename = "type")] + pub kind: String, + pub suggestion: String, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub page: Option, +} + +#[derive(Debug)] +pub enum NlpError { + OllamaUnreachable(String), + ModelNotFound(String), + Http(String), +} + +impl std::fmt::Display for NlpError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + NlpError::OllamaUnreachable(m) => write!(f, "{}", m), + NlpError::ModelNotFound(m) => write!(f, "{}", m), + NlpError::Http(m) => write!(f, "{}", m), + } + } +} + +pub struct NlpEngine { + pub model: String, + pub ollama_url: String, + pub api_key: Option, + pub language: String, + system_prompt: &'static str, + agent: ureq::Agent, +} + +impl NlpEngine { + pub fn new(model: &str, ollama_url: &str, language: &str) -> Self { + Self::with_key(model, ollama_url, None, language) + } + + pub fn with_key(model: &str, ollama_url: &str, api_key: Option<&str>, language: &str) -> Self { + let language = normalize(language).to_string(); + NlpEngine { + model: model.to_string(), + ollama_url: ollama_url.to_string(), + api_key: api_key.map(|s| s.to_string()), + system_prompt: get_system_prompt(&language), + agent: ureq::AgentBuilder::new() + .timeout_connect(Duration::from_secs(30)) + .timeout_read(Duration::from_secs(600)) + .build(), + language, + } + } + + /// 偵測 API 類型:URL 含 /api/generate → Ollama;否則視為 + /// OpenAI-compatible(/v1/chat/completions)。 + fn is_ollama(&self) -> bool { + self.ollama_url.contains("/api/generate") + } + + /// 組請求(Ollama 或 OpenAI 格式) + fn build_request(&self, text: &str) -> serde_json::Value { + if self.is_ollama() { + serde_json::json!({ + "model": self.model, + "prompt": text, + "system": self.system_prompt, + "stream": true, + "options": { "temperature": TEMPERATURE, "num_predict": MAX_TOKENS } + }) + } else { + // OpenAI-compatible chat format + let url = self.openai_chat_url(); + serde_json::json!({ + "model": self.model, + "messages": [ + {"role": "system", "content": self.system_prompt}, + {"role": "user", "content": text} + ], + "temperature": TEMPERATURE, + "max_tokens": MAX_TOKENS as u32, + "stream": true + }) + } + } + + fn openai_chat_url(&self) -> String { + let base = self.ollama_url + .trim_end_matches('/') + .trim_end_matches("/chat/completions") + .trim_end_matches("/v1"); + format!("{}/v1/chat/completions", base) + } + + /// 通用端點健康檢查:嘗試列出模型。回傳 (可達, 模型列表, 錯誤訊息)。 + /// Ollama → /api/tags;OpenAI-compatible → /v1/models(帶 Bearer)。 + pub fn check_endpoint(url: &str, api_key: Option<&str>) -> (bool, Vec, String) { + let agent = ureq::AgentBuilder::new() + .timeout_connect(Duration::from_secs(5)) + .timeout_read(Duration::from_secs(10)) + .build(); + + // 嘗試 Ollama + if url.contains("/api/generate") || url.contains("11434") { + let tags_url = url.replace("/api/generate", "/api/tags"); + if let Ok(resp) = agent.get(&tags_url).call() { + if let Ok(v) = resp.into_json::() { + let models: Vec = v + .get("models") + .and_then(|m| m.as_array()) + .map(|arr| { + arr.iter() + .filter_map(|m| m.get("name").and_then(|n| n.as_str()).map(|s| s.to_string())) + .collect() + }) + .unwrap_or_default(); + return (true, models, "Ollama".into()); + } + } + return (false, vec![], format!("Ollama 端點無回應:{}", tags_url)); + } + + // 嘗試 OpenAI-compatible + let base = url + .trim_end_matches('/') + .trim_end_matches("/chat/completions") + .trim_end_matches("/generate") + .trim_end_matches("/v1"); + let models_url = format!("{}/v1/models", base); + let mut req = agent.get(&models_url); + if let Some(key) = api_key { + req = req.set("Authorization", &format!("Bearer {}", key)); + } + match req.call() { + Ok(resp) => { + if resp.status() == 401 { + return (false, vec![], "API key 無效或過期(401 Unauthorized)".into()); + } + if let Ok(v) = resp.into_json::() { + let models: Vec = v + .get("data") + .and_then(|d| d.as_array()) + .map(|arr| { + arr.iter() + .filter_map(|m| m.get("id").and_then(|n| n.as_str()).map(|s| s.to_string())) + .take(50) + .collect() + }) + .unwrap_or_default(); + return (true, models, "OpenAI-compatible".into()); + } + (true, vec![], "已連線(無法解析模型列表)".into()) + } + Err(ureq::Error::Status(code, _)) => { + let msg = match code { + 401 => "API key 無效或過期", + 403 => "API key 權限不足", + 404 => "端點不存在(404)", + _ => &format!("HTTP {}", code), + }; + (false, vec![], msg.to_string()) + } + Err(_) => (false, vec![], format!("無法連線:{}", models_url)), + } + } + + // ── chunking ────────────────────────────────────────────────────────────── + + /// Split text into overlapping sentence-boundary chunks. + /// Port of `NLPEngine._chunk_text` (Python regex lookbehind replaced by a + /// manual scanner: split after `.!?` + whitespace, or after `。!?`). + pub fn chunk_text(text: &str, language: &str) -> Vec { + let no_space = is_no_space(language); + let max_units = if no_space { CHUNK_CHARS } else { CHUNK_WORDS }; + let sep = if no_space { "" } else { " " }; + let size = |s: &str| { + if no_space { + s.chars().count() + } else { + s.split_whitespace().count() + } + }; + + let sentences = split_sentences(text); + let mut chunks: Vec = Vec::new(); + let mut current: Vec<&str> = Vec::new(); + let mut current_units = 0usize; + + for sent in &sentences { + let u = size(sent); + if current_units + u > max_units && !current.is_empty() { + chunks.push(current.join(sep)); + // keep last sentence as overlap context + let last = *current.last().unwrap(); + current = vec![last, sent.as_str()]; + current_units = current.iter().map(|s| size(s)).sum(); + } else { + current.push(sent.as_str()); + current_units += u; + } + } + if !current.is_empty() { + chunks.push(current.join(sep)); + } + if chunks.is_empty() { + vec![text.to_string()] + } else { + chunks + } + } + + // ── Ollama call ─────────────────────────────────────────────────────────── + + /// POST to Ollama with streaming + loop detection, returning the full + /// accumulated response text. Retries once on transient failures. + fn call_ollama(&self, text: &str, chunk_index: usize, total_chunks: usize) -> Result { + let word_count = text.split_whitespace().count(); + logging::info(&format!( + " Calling Ollama chunk {}/{} ({} words, model={}) …", + chunk_index, total_chunks, word_count, self.model + )); + let payload = self.build_request(text); + let request_url = if self.is_ollama() { + self.ollama_url.clone() + } else { + self.openai_chat_url() + }; + + let mut last_err: Option = None; + for attempt in 1..=2 { + let mut req = self + .agent + .post(&request_url) + .timeout(Duration::from_secs(600)); + if let Some(key) = &self.api_key { + req = req.set("Authorization", &format!("Bearer {}", key)); + } + match req + .send_json(serde_json::to_value(&payload).unwrap()) + { + Ok(resp) => { + let status = resp.status(); + if status >= 400 { + if status == 404 { + return Err(NlpError::ModelNotFound(format!( + "Ollama model '{}' not found. Pull it first: ollama pull {}", + self.model, self.model + ))); + } + if status >= 500 && attempt == 1 { + logging::warn(&format!(" Ollama server error {} — retrying in 2s …", status)); + std::thread::sleep(Duration::from_secs(2)); + continue; + } + return Err(NlpError::Http(format!("Ollama HTTP {}", status))); + } + return Ok(self.read_stream(resp, word_count)); + } + Err(ureq::Error::Status(code, _)) => { + if code == 404 { + return Err(NlpError::ModelNotFound(format!( + "Ollama model '{}' not found. Pull it first: ollama pull {}", + self.model, self.model + ))); + } + if code >= 500 && attempt == 1 { + logging::warn(&format!(" Ollama server error {} — retrying in 2s …", code)); + std::thread::sleep(Duration::from_secs(2)); + continue; + } + return Err(NlpError::Http(format!("Ollama HTTP {}", code))); + } + Err(ureq::Error::Transport(t)) => { + let msg = format!("Cannot reach Ollama. Start it first: ollama serve\nThen pull the model: ollama pull {}", self.model); + let is_connection = matches!( + t.kind(), + ureq::ErrorKind::ConnectionFailed | ureq::ErrorKind::Dns + ); + if attempt == 1 && is_connection { + logging::warn(" Ollama connection dropped — retrying in 2s …"); + last_err = Some(msg); + std::thread::sleep(Duration::from_secs(2)); + continue; + } + return Err(NlpError::OllamaUnreachable(msg)); + } + } + } + Err(NlpError::OllamaUnreachable( + last_err.unwrap_or_else(|| "Ollama request failed after retry".to_string()), + )) + } + + /// Read a streaming Ollama response, accumulating `response` chunks. + /// Small local models occasionally loop on noisy OCR text, repeating the + /// same error objects indefinitely (observed: >10 min per chunk). We cut + /// the stream as soon as an `original` value appears a 3rd time or the + /// object count becomes implausible; the tier-3 line parser then + /// recovers every complete object from the accumulated prefix. + fn read_stream(&self, resp: ureq::Response, word_count: usize) -> String { + use std::collections::HashMap; + use std::io::BufRead; + + let max_objects = (word_count / 2).max(40) as u32; + let mut reader = std::io::BufReader::new(resp.into_reader()); + let mut raw = String::new(); + let mut seen: HashMap = HashMap::new(); + let mut line = String::new(); + let mut lines_since_check = 0u32; + + loop { + line.clear(); + match reader.read_line(&mut line) { + Ok(0) => break, // EOF — model finished + Ok(_) => {} + Err(_) => break, + } + let trimmed = line.trim(); + if trimmed.is_empty() { + continue; + } + let chunk: Value = match serde_json::from_str(trimmed) { + Ok(v) => v, + Err(_) => continue, + }; + if let Some(t) = chunk.get("response").and_then(|v| v.as_str()) { + raw.push_str(t); + } + if chunk.get("done").and_then(|v| v.as_bool()).unwrap_or(false) { + break; + } + + // loop detection over complete "original":"…" spans. Counts are + // rebuilt from scratch each check so every occurrence is counted + // exactly once (an incremental map double-counts as raw grows). + lines_since_check += 1; + if lines_since_check >= 8 { + lines_since_check = 0; + seen.clear(); + let mut count = 0u32; + let mut looping = false; + let mut rest = raw.as_str(); + while let Some(pos) = rest.find("\"original\"") { + let after = &rest[pos + 10..]; + let val_start = after.find('"').map(|i| i + 1); + if let Some(vs) = val_start { + if let Some(vend) = after[vs..].find('"') { + count += 1; + let val = &after[vs..vs + vend]; + let e = seen.entry(val.to_string()).or_insert(0); + *e += 1; + if *e >= 3 { + looping = true; + } + rest = &after[vs + vend + 1..]; + continue; + } + } + break; // incomplete trailing span — wait for more tokens + } + if looping || count > max_objects { + logging::warn(&format!( + " Model response is looping — cutting stream, parsing prefix (count={} max={})", + count, max_objects + )); + break; + } + } + } + logging::info(&format!(" Ollama responded ({} chars)", raw.chars().count())); + raw + } + + // ── fault-tolerant JSON parser (4 tiers) ───────────────────────────────── + + /// Extract a JSON array from the model response. Port of `NLPEngine._parse`. + pub fn parse(raw: &str) -> Vec { + let raw = raw.trim(); + if raw.is_empty() { + return Vec::new(); + } + + // Tier 1: direct parse + if let Ok(v) = serde_json::from_str::(raw) { + match v { + Value::Array(a) => return a, + Value::Object(map) => { + for key in ["errors", "results", "corrections", "issues", "data"] { + if let Some(Value::Array(a)) = map.get(key) { + return a.clone(); + } + } + if map.contains_key("original") { + return vec![Value::Object(map)]; + } + // flatten all list values + return map + .into_values() + .filter_map(|v| match v { + Value::Array(a) => Some(a), + _ => None, + }) + .flatten() + .collect(); + } + _ => {} // scalar: fall through to Tier 2 (same as Python) + } + } + + // Tier 2: extract outermost [...] block (greedy: first '[' to last ']') + if let (Some(s), Some(e)) = (raw.find('['), raw.rfind(']')) { + if e > s { + if let Ok(Value::Array(a)) = serde_json::from_str(&raw[s..=e]) { + return a; + } + } + } + + // Tier 3: line-by-line objects + let mut items = Vec::new(); + for line in raw.lines() { + let line = line.trim().trim_end_matches(','); + if line.starts_with('{') && line.ends_with('}') { + if let Ok(Value::Object(map)) = serde_json::from_str(line) { + if map.contains_key("original") { + items.push(Value::Object(map)); + } + } + } + } + if !items.is_empty() { + return items; + } + + // Tier 4: collapsed object with list-as-string values. + // (Unreachable for valid-JSON objects since Tier 1 returns first; + // ported verbatim for parity with nlp_engine.py.) + if let Ok(Value::Object(collapsed)) = serde_json::from_str::(raw) { + let to_list = |val: &Value| -> Vec { + match val { + Value::Array(a) => a + .iter() + .map(|v| v.to_string().trim().to_string()) + .collect(), + other => extract_quoted_spans(&other.to_string()), + } + }; + let originals = to_list(collapsed.get("original").unwrap_or(&Value::Null)); + let types = to_list(collapsed.get("type").unwrap_or(&Value::Null)); + let suggestions = to_list(collapsed.get("suggestion").unwrap_or(&Value::Null)); + if !originals.is_empty() { + return originals + .into_iter() + .enumerate() + .map(|(idx, orig)| { + let kind = types.get(idx).cloned().unwrap_or_else(|| "grammar".to_string()); + let sugg = suggestions.get(idx).cloned().unwrap_or_default(); + json!({ + "original": orig, + "type": kind, + "suggestion": sugg, + }) + }) + .collect(); + } + } + + logging::warn("Could not parse model response — skipping chunk."); + logging::debug(&format!(" Raw: {}", &raw[..raw.len().min(400)])); + Vec::new() + } + + // ── validation / filtering ──────────────────────────────────────────────── + + /// Normalise and deduplicate error entries. Port of `NLPEngine._validate`. + pub fn validate(errors: Vec, language: &str) -> Vec { + let no_space = is_no_space(language); + let mut seen: HashSet = HashSet::new(); + let mut out = Vec::new(); + + // Expand top-level nested lists into a flat sequence + let mut flat: Vec = Vec::new(); + for item in errors { + match &item { + Value::Array(inner) => { + if matches!(inner.first(), Some(Value::Object(_))) { + flat.extend(inner.iter().cloned()); + } else { + flat.push(item); + } + } + _ => flat.push(item), + } + } + + for item in flat { + // coerce list -> dict + let item = match item { + Value::Array(elements) => { + let strings: Vec = elements + .into_iter() + .filter_map(|el| match el { + Value::String(s) => Some(s.trim().to_string()), + Value::Number(n) => Some(n.to_string()), + Value::Bool(b) => Some(b.to_string()), + _ => None, // Python keeps str(None-ish); scalars cover real cases + }) + .collect(); + match strings.len() { + n if n >= 3 => Value::Object( + [ + ("original".to_string(), Value::String(strings[0].clone())), + ("type".to_string(), Value::String(strings[1].clone())), + ("suggestion".to_string(), Value::String(strings[2].clone())), + ] + .into_iter() + .collect(), + ), + 2 => Value::Object( + [ + ("original".to_string(), Value::String(strings[0].clone())), + ("type".to_string(), Value::String("grammar".to_string())), + ("suggestion".to_string(), Value::String(strings[1].clone())), + ] + .into_iter() + .collect(), + ), + _ => continue, + } + } + other => other, + }; + + let map = match item { + Value::Object(m) => m, + _ => continue, + }; + + let original = string_field(&map, "original"); + let mut kind = string_field(&map, "type").to_lowercase(); + let suggestion = string_field(&map, "suggestion"); + + if original.is_empty() { + continue; + } + // Reject sentences masquerading as errors (model hallucination). + let too_long = if no_space { + original.chars().count() > 12 + } else { + original.split_whitespace().count() > 6 + }; + if too_long { + logging::debug(&format!(" Skipping over-long error: {:?}", original)); + continue; + } + if kind != "spelling" && kind != "grammar" && kind != "semantic" { + kind = "grammar".to_string(); + } + if !seen.insert(original.clone()) { + continue; + } + + out.push(EatError { + original, + kind, + suggestion, + page: None, + }); + } + out + } + + /// Remove errors where suggestion is identical to original (no-op). + /// Port of `NLPEngine._filter_useless`. + pub fn filter_useless(errors: Vec) -> Vec { + let mut kept = Vec::new(); + for e in errors { + if e.original.to_lowercase() == e.suggestion.to_lowercase() { + logging::debug(&format!(" Filtered no-op: {:?} -> {:?}", e.original, e.suggestion)); + continue; + } + kept.push(e); + } + kept + } + + /// Remove errors whose 'original' is not verbatim in the essay text. + /// Port of `NLPEngine._filter_hallucinations`. + pub fn filter_hallucinations(errors: Vec, text: &str, language: &str) -> Vec { + if errors.is_empty() { + return Vec::new(); + } + let no_space = is_no_space(language); + let norm = |s: &str| -> String { + let lower = s.to_lowercase(); + if no_space { + lower.chars().filter(|c| !c.is_whitespace()).collect() + } else { + lower + } + }; + let text_cmp = norm(text); + errors + .into_iter() + .filter(|e| { + let ok = !e.original.is_empty() && text_cmp.contains(&norm(&e.original)); + if !ok { + logging::debug(&format!( + " Filtered hallucination: {:?} not in essay text", + e.original + )); + } + ok + }) + .collect() + } + + // ── public API ──────────────────────────────────────────────────────────── + + /// Proofread a plain text string (chunked, merged, deduplicated). + pub fn analyse_text(&self, text: &str) -> Result, NlpError> { + let text = text.trim(); + if text.is_empty() { + return Ok(Vec::new()); + } + let chunks = Self::chunk_text(text, &self.language); + let mut all_err: Vec = Vec::new(); + + for (i, chunk) in chunks.iter().enumerate() { + logging::info(&format!( + " Analysing chunk {}/{} ({} words) …", + i + 1, + chunks.len(), + chunk.split_whitespace().count() + )); + let raw = self.call_ollama(chunk, i + 1, chunks.len())?; + let errors = Self::parse(&raw); + logging::info(&format!(" Chunk {}/{}: {} error(s)", i + 1, chunks.len(), errors.len())); + all_err.extend(errors); + } + + let final_ = Self::validate(all_err, &self.language); + let final_ = Self::filter_hallucinations(final_, text, &self.language); + let final_ = Self::filter_useless(final_); + logging::info(&format!("Analysis complete: {} error(s)", final_.len())); + Ok(final_) + } + + /// Proofread from OCR output. Each page is analysed separately and every + /// error is tagged with its page number. + pub fn analyse_pages(&self, pages: &Pages) -> Result, NlpError> { + let page_texts: Vec = pages + .iter() + .map(|words| words_to_text(words, &self.language).trim().to_string()) + .collect(); + if page_texts.iter().all(|t| t.is_empty()) { + logging::warn("Empty OCR text — nothing to analyse."); + return Ok(Vec::new()); + } + + let mut all_errors = Vec::new(); + for (pg, page_text) in page_texts.iter().enumerate() { + if page_text.is_empty() { + continue; + } + logging::info(&format!( + "Analysing page {} ({} words) …", + pg + 1, + page_text.split_whitespace().count() + )); + let errors = self.analyse_text(page_text)?; + for mut e in errors { + e.page = Some(pg as u32); + all_errors.push(e); + } + } + Ok(all_errors) + } +} + +// ── helpers ────────────────────────────────────────────────────────────────── + +/// Python `re.split(r'(?<=[.!?])\s+|(?<=[。!?])\s*', text)` — split after +/// `.!?` when followed by whitespace (whitespace consumed), or after `。!?` +/// with any following whitespace consumed. +pub fn split_sentences(text: &str) -> Vec { + let chars: Vec<(usize, char)> = text.char_indices().collect(); + let mut sentences = Vec::new(); + let mut start = 0usize; + + let mut i = 0usize; + while i < chars.len() { + let (byte_pos, c) = chars[i]; + match c { + '.' | '!' | '?' => { + // split only if followed by whitespace (which is consumed) + if let Some(&(_, next)) = chars.get(i + 1) { + if next.is_whitespace() { + let end = byte_pos + c.len_utf8(); + sentences.push(&text[start..end]); + // consume whitespace run + let mut j = i + 1; + while let Some(&(_, nc)) = chars.get(j) { + if nc.is_whitespace() { + j += 1; + } else { + break; + } + } + if j < chars.len() { + start = chars[j].0; + } else { + start = text.len(); + } + i = j; + continue; + } + } + } + '。' | '!' | '?' => { + let end = byte_pos + c.len_utf8(); + sentences.push(&text[start..end]); + let mut j = i + 1; + while let Some(&(_, nc)) = chars.get(j) { + if nc.is_whitespace() { + j += 1; + } else { + break; + } + } + if j < chars.len() { + start = chars[j].0; + } else { + start = text.len(); + } + i = j; + continue; + } + _ => {} + } + i += 1; + } + if start < text.len() { + sentences.push(&text[start..]); + } + sentences + .into_iter() + .filter(|s| !s.trim().is_empty()) + .map(|s| s.to_string()) + .collect() +} + +/// str() of a JSON object field: String as-is, numbers/bools stringified, +/// missing/null → "". (Python `str(item.get(k, "") or "")`.) +fn string_field(map: &serde_json::Map, key: &str) -> String { + match map.get(key) { + Some(Value::String(s)) => s.trim().to_string(), + Some(Value::Number(n)) => n.to_string(), + Some(Value::Bool(b)) => b.to_string(), + _ => String::new(), + } +} + +/// Extract all '...' and "..." spans from a string (Python `re.findall(r"[\'\"](.*?)[\'\"]", s)`). +fn extract_quoted_spans(s: &str) -> Vec { + let mut out = Vec::new(); + let mut chars = s.chars().peekable(); + while let Some(c) = chars.next() { + if c == '\'' || c == '"' { + let mut span = String::new(); + let mut closed = false; + for nc in chars.by_ref() { + if nc == c { + closed = true; + break; + } + span.push(nc); + } + if closed { + out.push(span); + } + } + } + out +} + +// ── tests ──────────────────────────────────────────────────────────────────── + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn split_sentences_english() { + let s = split_sentences("She go to school. He likes cats! Do you? Yes."); + assert_eq!(s, vec!["She go to school.", "He likes cats!", "Do you?", "Yes."]); + } + + #[test] + fn split_sentences_keeps_decimals() { + let s = split_sentences("Pi is 3.14 ok. Next sentence."); + assert_eq!(s, vec!["Pi is 3.14 ok.", "Next sentence."]); + } + + #[test] + fn split_sentences_cjk() { + let s = split_sentences("她去學校。他很喜歡貓!真的嗎?"); + assert_eq!(s, vec!["她去學校。", "他很喜歡貓!", "真的嗎?"]); + } + + #[test] + fn chunk_text_respects_word_budget() { + let text = "One two three four. ".repeat(60); // 240 words > CHUNK_WORDS + let chunks = NlpEngine::chunk_text(&text, "en"); + assert!(chunks.len() > 1, "expected multiple chunks, got {}", chunks.len()); + for c in &chunks { + assert!(c.split_whitespace().count() <= CHUNK_WORDS + 20); + } + } + + #[test] + fn chunk_text_cjk_joins_without_space() { + let text = "這是一個句子。".repeat(100); + let chunks = NlpEngine::chunk_text(&text, "zh-Hant"); + assert!(!chunks.is_empty()); + // no-space scripts join without separators + assert!(!chunks[0].contains(' ')); + // sentences keep their trailing 。 punctuation + assert!(chunks[0].contains('。')); + } + + #[test] + fn parse_tier1_array() { + let raw = r#"[{"original":"intresting","type":"spelling","suggestion":"interesting"}]"#; + let v = NlpEngine::parse(raw); + assert_eq!(v.len(), 1); + } + + #[test] + fn parse_tier1_dict_wrapper() { + let raw = r#"{"errors": [{"original":"a","type":"spelling","suggestion":"b"}]}"#; + assert_eq!(NlpEngine::parse(raw).len(), 1); + } + + #[test] + fn parse_tier2_embedded() { + let raw = "Sure! Here you go:\n[{\"original\":\"a\",\"type\":\"grammar\",\"suggestion\":\"b\"}]\nDone."; + assert_eq!(NlpEngine::parse(raw).len(), 1); + } + + #[test] + fn parse_tier3_line_by_line() { + let raw = "{\"original\":\"a\",\"type\":\"spelling\",\"suggestion\":\"b\"},\n{\"original\":\"c\",\"type\":\"grammar\",\"suggestion\":\"d\"},"; + let v = NlpEngine::parse(raw); + assert_eq!(v.len(), 2); + } + + #[test] + fn validate_coerces_list_shapes() { + let raw = r#"[ + ["intresting", "spelling", "interesting"], + ["she go", "she goes"], + {"original":"x y","type":"semantic","suggestion":"y x"} + ]"#; + let out = NlpEngine::validate(NlpEngine::parse(raw), "en"); + assert_eq!(out.len(), 3); + assert_eq!(out[0].kind, "spelling"); + assert_eq!(out[1].kind, "grammar"); // inferred for 2-element shape + } + + #[test] + fn validate_dedupes_and_caps_length() { + let raw = r#"[ + {"original":"recieved","type":"spelling","suggestion":"received"}, + {"original":"recieved","type":"spelling","suggestion":"received"}, + {"original":"this sentence is way way too long here","type":"grammar","suggestion":"x"} + ]"#; + let out = NlpEngine::validate(NlpEngine::parse(raw), "en"); + assert_eq!(out.len(), 1); + } + + #[test] + fn validate_caps_cjk_by_chars() { + let long = "錯".repeat(13); + let raw = format!(r#"[{{"original":"{}","type":"spelling","suggestion":"x"}}]"#, long); + assert!(NlpEngine::validate(NlpEngine::parse(&raw), "zh-Hant").is_empty()); + } + + #[test] + fn filter_hallucinations_no_space_matching() { + let text = "我 去 學 校 上 課 。"; // OCR token-joining introduces gaps + let err = EatError { + original: "去學校".to_string(), + kind: "grammar".to_string(), + suggestion: "去上学".to_string(), + page: None, + }; + let kept = NlpEngine::filter_hallucinations(vec![err], text, "zh-Hant"); + assert_eq!(kept.len(), 1); + } + + #[test] + fn filter_useless_removes_noops() { + let err = EatError { + original: "Word".to_string(), + kind: "grammar".to_string(), + suggestion: "word".to_string(), + page: None, + }; + assert!(NlpEngine::filter_useless(vec![err]).is_empty()); + } + + #[test] + fn words_to_text_joins_by_language() { + use crate::words::Word; + let mk = |t: &str| Word { + text: t.to_string(), + box_: [[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]], + }; + let ws = vec![mk("她去"), mk("學校")]; + assert_eq!(words_to_text(&ws, "zh-Hant"), "她去學校"); + let ws = vec![mk("she"), mk("goes")]; + assert_eq!(words_to_text(&ws, "en"), "she goes"); + } +} diff --git a/eat-rs/crates/eat-core/src/words.rs b/eat-rs/crates/eat-core/src/words.rs new file mode 100644 index 0000000..eecfd3c --- /dev/null +++ b/eat-rs/crates/eat-core/src/words.rs @@ -0,0 +1,46 @@ +//! Shared OCR word model — identical schema to the Python pipeline's JSON: +//! `{"text": "word", "box": [[x1,y1],[x2,y1],[x2,y2],[x1,y2]]}` +//! All coordinates are in PDF point-space, origin = top-left. + +use serde::{Deserialize, Serialize}; + +pub type PageIndex = u32; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Word { + pub text: String, + #[serde(rename = "box")] + pub box_: Box4, +} + +/// Four-corner polygon, top-left origin (matches RapidOCR/PyMuPDF output). +pub type Box4 = [[f64; 2]; 4]; + +impl Word { + /// Axis-aligned bounding rect (top-left origin): (x0, y0, x1, y1). + pub fn rect(&self) -> (f64, f64, f64, f64) { + let xs = [self.box_[0][0], self.box_[1][0], self.box_[2][0], self.box_[3][0]]; + let ys = [self.box_[0][1], self.box_[1][1], self.box_[2][1], self.box_[3][1]]; + ( + xs.iter().cloned().fold(f64::INFINITY, f64::min), + ys.iter().cloned().fold(f64::INFINITY, f64::min), + xs.iter().cloned().fold(f64::NEG_INFINITY, f64::max), + ys.iter().cloned().fold(f64::NEG_INFINITY, f64::max), + ) + } +} + +/// Page → words, preserving page order. Keys are page indices. +pub type Pages = Vec>; + +/// Flatten pages into a single line of text using the script-appropriate +/// separator (no separator for zh/ja — port of `NLPEngine._words_to_text`). +pub fn words_to_text(words: &[Word], language: &str) -> String { + let sep = if crate::languages::is_no_space(language) { "" } else { " " }; + words + .iter() + .filter(|w| !w.text.trim().is_empty()) + .map(|w| w.text.as_str()) + .collect::>() + .join(sep) +} diff --git a/eat-rs/crates/eat-gui/Cargo.toml b/eat-rs/crates/eat-gui/Cargo.toml new file mode 100644 index 0000000..7099db2 --- /dev/null +++ b/eat-rs/crates/eat-gui/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "eat-gui" +version.workspace = true +edition.workspace = true +license.workspace = true + +[[bin]] +name = "eat-gui" +path = "src/main.rs" + +[dependencies] +eat-app = { path = "../eat-app" } +eat-core = { path = "../eat-core" } +eframe = "0.33" +eat-ocr = { path = "../eat-ocr" } +eat-pdf = { path = "../eat-pdf" } +image = { workspace = true } +serde_json = { workspace = true } +rfd = "0.15" +nokhwa = { version = "0.10", features = ["input-native"] } diff --git a/eat-rs/crates/eat-gui/src/main.rs b/eat-rs/crates/eat-gui/src/main.rs new file mode 100644 index 0000000..f3dac1e --- /dev/null +++ b/eat-rs/crates/eat-gui/src/main.rs @@ -0,0 +1,1242 @@ +//! eat-gui — teacher-facing desktop app (Rust port of gui.py's batch flow). +//! +//! Folder of essay PDFs → every file corrected (OCR + Ollama + annotated PDF) +//! → all outputs packed into one ZIP. Includes a first-run check that +//! verifies Ollama is reachable and offers to pull the default model. + +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::{Arc, Mutex}; + +use eframe::egui; + +use eat_app::PipelineOpts; +use eat_core::languages::LANGUAGES; +use eat_core::nlp::{default_language, default_model_name, default_ollama_url}; + +// ── shared state between the GUI thread and worker threads ────────────────── + +#[derive(Default)] +struct BatchState { + running: bool, + log: Vec, + results: Vec<(String, usize, String)>, + zip_path: Option, +} + +static GUI_WANTS_LOG: AtomicBool = AtomicBool::new(false); + +fn install_log_sink(state: Arc>) { + eat_core::logging::subscribe(Some(Box::new(move |line: &str| { + // only mirror into the GUI buffer while the GUI wants logs + if GUI_WANTS_LOG.load(Ordering::Relaxed) { + if let Ok(mut s) = state.lock() { + s.log.push(line.to_string()); + if s.log.len() > 500 { + s.log.drain(..100); + } + } + } + }))); +} + +#[derive(Clone)] +enum OllamaStatus { + Checking, + Reachable(Vec), // model tags + Unreachable, +} + +/// First-run Ollama auto-install pipeline (macOS). +#[derive(Clone, Debug)] +enum InstallState { + Idle, + Downloading { done: u64, total: u64 }, + Installing, + Failed(String), +} + +struct EatGui { + input_folder: String, + zip_out: String, + model: String, + api_url: String, + api_key: String, + language: String, + save_intermediate: bool, + reader: String, // "ppocr" | "vlm" + vlm_model: String, + rubric_criteria: String, + rubric_dims: Vec, + state: Arc>, + ollama: Arc>>, + pull_running: Arc, + install: Arc>, + live: LiveState, + browse_mode: bool, + browse: BrowseState, +} + +/// 即時模式(live camera)狀態:worker 執行緒 ⇄ UI 的通道。 +struct LiveState { + running: Arc, + preview_rx: std::sync::mpsc::Receiver, + result_rx: std::sync::mpsc::Receiver, + texture: Option, + last_words: usize, +} + +struct LivePreview { + w: usize, + h: usize, + rgb: Vec, +} + +impl LiveState { + fn new() -> Self { + let (_ptx, preview_rx) = std::sync::mpsc::channel(); + let (_rtx, result_rx) = std::sync::mpsc::channel(); + LiveState { running: Arc::new(AtomicBool::new(false)), preview_rx, result_rx, texture: None, last_words: 0 } + } +} + +impl EatGui { + fn new(cc: &eframe::CreationContext) -> Self { + install_cjk_font(&cc.egui_ctx); + let state = Arc::new(Mutex::new(BatchState::default())); + install_log_sink(state.clone()); + let mut gui = EatGui { + input_folder: String::new(), + zip_out: String::new(), + model: default_model_name(), + api_url: default_ollama_url(), + api_key: String::new(), + language: default_language(), + save_intermediate: false, + reader: "vlm".into(), + vlm_model: "qwen2.5vl:7b".into(), + rubric_criteria: default_rubric().criteria.clone(), + rubric_dims: default_rubric().dims.clone(), + state, + ollama: Arc::new(Mutex::new(Some(OllamaStatus::Checking))), + pull_running: Arc::new(AtomicBool::new(false)), + install: Arc::new(Mutex::new(InstallState::Idle)), + live: LiveState::new(), + browse_mode: false, + browse: BrowseState::default(), + }; + gui.spawn_ollama_check(); + // 開發/展示用:~/eat-browse-folder.txt 存在 → 直接進瀏覽模式 + if let Ok(folder) = std::fs::read_to_string( + std::env::var("HOME").unwrap_or_default() + "/eat-browse-folder.txt", + ) { + let folder = folder.trim().to_string(); + if !folder.is_empty() { + gui.browse_mode = true; + gui.browse.load_folder(&folder); + } + } + gui + } +} + +/// egui 預設只附 Ubuntu-Light(無 CJK 字形),介面中文會變成方框。 +/// 這裡把隨附的 Noto Sans CJK 註冊進 egui 字型表(常規+等寬家族)。 +fn install_cjk_font(ctx: &egui::Context) { + let candidates: Vec = { + let mut v = Vec::new(); + if let Ok(p) = std::env::var("EAT_CJK_FONT") { + v.push(p.into()); + } + if let Ok(exe) = std::env::current_exe() { + if let Some(dir) = exe.parent() { + v.push(dir.join("fonts").join(CJK_FONT_FILE)); + v.push(dir.join(CJK_FONT_FILE)); + } + } + if let Ok(manifest) = std::env::var("CARGO_MANIFEST_DIR") { + v.push(std::path::Path::new(&manifest) + .join("../../vendor/fonts") + .join(CJK_FONT_FILE)); + } + v + }; + let path = match candidates.iter().find(|p| p.exists()) { + Some(p) => p.clone(), + None => { + eprintln!("eat-gui: CJK font not found — UI Chinese text will render as boxes"); + return; + } + }; + let bytes = match std::fs::read(&path) { + Ok(b) => b, + Err(e) => { + eprintln!("eat-gui: cannot read {}: {}", path.display(), e); + return; + } + }; + let mut fonts = egui::FontDefinitions::default(); + fonts.font_data.insert( + "noto_cjk".into(), + std::sync::Arc::new(egui::FontData::from_owned(bytes)), + ); + // prepend so CJK takes priority over the default Latin face for matching glyphs + for family in [egui::FontFamily::Proportional, egui::FontFamily::Monospace] { + if let Some(list) = fonts.families.get_mut(&family) { + list.insert(0, "noto_cjk".into()); + } + } + ctx.set_fonts(fonts); +} + +const CJK_FONT_FILE: &str = "NotoSansCJKtc-Regular.otf"; + +impl EatGui { + fn spawn_ollama_check(&self) { + let url = self.api_url.clone(); + let key = if self.api_key.trim().is_empty() { None } else { Some(self.api_key.trim().to_string()) }; + let ollama = self.ollama.clone(); + std::thread::spawn(move || { + let (ok, models, msg) = eat_core::NlpEngine::check_endpoint(&url, key.as_deref()); + let status = if ok { + OllamaStatus::Reachable(models) + } else { + let _ = msg; + OllamaStatus::Unreachable + }; + *ollama.lock().unwrap() = Some(status); + }); + } + + fn spawn_pull(&self) { + if self.pull_running.load(Ordering::Relaxed) { + return; + } + self.pull_running.store(true, Ordering::Relaxed); + eat_core::logging::info("啟動模型下載:ollama pull qwen2.5:7b(背景執行)"); + let pull = self.pull_running.clone(); + std::thread::spawn(move || { + use std::process::{Command, Stdio}; + let ok = Command::new("ollama") + .args(["pull", "qwen2.5:7b"]) + .stdout(Stdio::null()) + .stderr(Stdio::null()) + .status() + .map(|s| s.success()) + .unwrap_or(false); + if ok { + eat_core::logging::info("模型下載完成(qwen2.5:7b)"); + } else { + eat_core::logging::error("模型下載失敗 — 請確認已安裝 Ollama,並手動執行:ollama pull qwen2.5:7b"); + } + pull.store(false, Ordering::Relaxed); + }); + } + + /// One-click Ollama install (macOS): download the official zip, extract + /// Ollama.app, copy it to /Applications (falling back to ~/Applications), + /// launch it, then poll the API until the server answers. + fn spawn_install(&self) { + { + let mut st = self.install.lock().unwrap(); + if matches!(*st, InstallState::Downloading { .. } | InstallState::Installing) { + return; + } + *st = InstallState::Downloading { done: 0, total: 0 }; + } + eat_core::logging::info("開始下載 Ollama 安裝包(Ollama-darwin.zip,約 229 MB)…"); + let install = self.install.clone(); + let ollama = self.ollama.clone(); + let url = self.api_url.clone(); + std::thread::spawn(move || { + let set = |st: InstallState| *install.lock().unwrap() = st; + let zip = std::env::temp_dir().join("Ollama-darwin.zip"); + + // total size via HEAD (follows redirects to the CDN) + let total: u64 = std::process::Command::new("curl") + .args(["-sIL", "--max-time", "15", "https://ollama.com/download/Ollama-darwin.zip"]) + .output() + .ok() + .and_then(|o| { + let head = String::from_utf8_lossy(&o.stdout).into_owned(); + head.lines() + .rev() + .find(|l| l.to_ascii_lowercase().starts_with("content-length:")) + .and_then(|l| l.split(':').nth(1).and_then(|v| v.trim().parse().ok())) + }) + .unwrap_or(229_245_253); + + // background download; poll the file size for progress + let mut dl = std::process::Command::new("curl") + .args(["-sL", "--max-time", "1800", "-o"]) + .arg(&zip) + .arg("https://ollama.com/download/Ollama-darwin.zip") + .stdout(std::process::Stdio::null()) + .stderr(std::process::Stdio::null()) + .spawn() + .expect("curl"); + loop { + if matches!(install.lock().unwrap().clone(), InstallState::Failed(_)) { + let _ = dl.kill(); + return; + } + match dl.try_wait() { + Ok(Some(_)) => break, + Ok(None) => {} + Err(_) => break, + } + let done = std::fs::metadata(&zip).map(|m| m.len()).unwrap_or(0); + *install.lock().unwrap() = InstallState::Downloading { done, total }; + std::thread::sleep(std::time::Duration::from_millis(600)); + } + let done = std::fs::metadata(&zip).map(|m| m.len()).unwrap_or(0); + if done < 1_000_000 { + set(InstallState::Failed(format!("下載不完整({} bytes)", done))); + eat_core::logging::error("Ollama 下載失敗"); + return; + } + set(InstallState::Installing); + eat_core::logging::info("下載完成,解壓並安裝 Ollama.app …"); + + // extract (ditto handles zip + resource forks correctly) + let work = std::env::temp_dir().join("OllamaInstall"); + let _ = std::fs::remove_dir_all(&work); + let _ = std::fs::create_dir_all(&work); + let ok = std::process::Command::new("ditto") + .args(["-x", "-k"]) + .arg(&zip) + .arg(&work) + .status() + .map(|s| s.success()) + .unwrap_or(false); + let app = work.join("Ollama.app"); + if !ok || !app.exists() { + set(InstallState::Failed("解壓失敗".into())); + eat_core::logging::error("Ollama 安裝包解壓失敗"); + return; + } + + // install: /Applications first, ~/Applications as user fallback + let mut dest = std::path::PathBuf::from("/Applications/Ollama.app"); + let cp = |dst: &std::path::Path| { + std::process::Command::new("cp") + .args(["-R"]) + .arg(&app) + .arg(dst) + .status() + .map(|s| s.success()) + .unwrap_or(false) + }; + if !cp(&dest) { + let home_apps = std::env::var("HOME") + .map(|h| std::path::PathBuf::from(h).join("Applications/Ollama.app")) + .unwrap_or_else(|_| dest.clone()); + if !cp(&home_apps) { + set(InstallState::Failed("無法複製到 /Applications 或 ~/Applications".into())); + eat_core::logging::error("Ollama 安裝失敗:無法複製 App(請手動安裝)"); + return; + } + dest = home_apps; + } + eat_core::logging::info(&format!("已安裝 → {}", dest.display())); + + // launch the menu-bar app (starts `ollama serve` automatically) + if !std::process::Command::new("open") + .arg(&dest) + .status() + .map(|s| s.success()) + .unwrap_or(false) + { + set(InstallState::Failed("啟動 Ollama 失敗".into())); + return; + } + + // poll the API until the server answers (menu-bar app startup) + let tags_url = url.replace("/api/generate", "/api/tags"); + for _ in 0..40 { + std::thread::sleep(std::time::Duration::from_secs(3)); + if let Ok(body) = ureq_local::get(&tags_url) { + let models = serde_json_parse_models(&body); + *ollama.lock().unwrap() = Some(OllamaStatus::Reachable(models)); + set(InstallState::Idle); + eat_core::logging::info("Ollama 已安裝並啟動 ✔ 接下來請下載模型 qwen2.5:7b"); + return; + } + } + set(InstallState::Failed("已安裝但伺服器未在 2 分鐘內回應".into())); + }); + } + + /// 即時模式 worker:開相機 → 預覽串流 → 節流 OCR → 文字有變才跑 LLM + /// (移植 live_camera/live_mode.py:conf ≥ 0.35、<3 字跳過、文字未變 + /// 跳過昂貴的 NLP 呼叫)。 + fn spawn_live(&mut self, camera_index: usize) { + if self.live.running.load(Ordering::Relaxed) { + return; + } + self.live.running.store(true, Ordering::Relaxed); + eat_core::logging::info(&format!("即時模式啟動(相機 {})…", camera_index)); + + let running = self.live.running.clone(); + let (ptx, preview_rx) = std::sync::mpsc::channel(); + let (rtx, result_rx) = std::sync::mpsc::channel(); + self.live.preview_rx = preview_rx; + self.live.result_rx = result_rx; + let language = self.language.clone(); + let model = self.model.clone(); + let url = self.api_url.clone(); + + std::thread::spawn(move || { + use nokhwa::Camera; + use nokhwa::pixel_format::RgbFormat; + use nokhwa::utils::{CameraIndex, RequestedFormat, RequestedFormatType}; + + let mut camera = match Camera::new( + CameraIndex::Index(camera_index as u32), + RequestedFormat::new::(RequestedFormatType::None), + ) { + Ok(c) => c, + Err(e) => { + eat_core::logging::error(&format!("無法開啟相機:{:?}", e)); + running.store(false, Ordering::Relaxed); + return; + } + }; + if let Err(e) = camera.open_stream() { + eat_core::logging::error(&format!("相機串流開啟失敗:{:?}", e)); + running.store(false, Ordering::Relaxed); + return; + } + + let ocr_lock = match eat_app::shared_ocr() { + Ok(o) => o, + Err(e) => { + eat_core::logging::error(&e.0); + running.store(false, Ordering::Relaxed); + return; + } + }; + let mut ocr = ocr_lock.lock().unwrap(); + let nlp = eat_core::NlpEngine::new(&model, &url, &language); + + let mut last_text = String::new(); + let mut last_ocr = std::time::Instant::now(); + while running.load(Ordering::Relaxed) { + let frame = match camera.frame() { + Ok(f) => f, + Err(_) => break, + }; + let img = match frame.decode_image::() { + Ok(i) => i, + Err(_) => continue, + }; + let (w, h) = (img.width() as usize, img.height() as usize); + let rgb = img.into_raw(); + let _ = ptx.send(LivePreview { w, h, rgb: rgb.clone() }); + + // 節流 OCR(~每 2.5 秒;Python 版每 3 幀+文字比對) + if last_ocr.elapsed() < std::time::Duration::from_millis(2500) { + continue; + } + last_ocr = std::time::Instant::now(); + let eat_img = eat_ocr::imgops::Img::from_rgb(w, h, &rgb); + let lines = match ocr.run(&eat_img) { + Ok(l) => l, + Err(_) => continue, + }; + let lines: Vec<_> = lines + .into_iter() + .filter(|l| l.score >= 0.35 && !l.text.trim().is_empty()) + .collect(); + if lines.len() < 3 { + continue; // 文件不在畫面中 + } + let frame_text = lines.iter().map(|l| l.text.as_str()).collect::>().join(" "); + if frame_text == last_text { + continue; // 同一頁 — 跳過 LLM + } + last_text = frame_text.clone(); + eat_core::logging::info(&format!( + "即時畫面:{} 行文字,分析中 …", + lines.len() + )); + let pages: eat_core::words::Pages = vec![lines + .iter() + .map(|l| eat_core::words::Word { + text: l.text.clone(), + box_: [ + [l.box_[0].0, l.box_[0].1], + [l.box_[1].0, l.box_[1].1], + [l.box_[2].0, l.box_[2].1], + [l.box_[3].0, l.box_[3].1], + ], + }) + .collect()]; + match nlp.analyse_pages(&pages) { + Ok(errors) => { + let msg = if errors.is_empty() { + "✔ 未發現錯誤".to_string() + } else { + errors + .iter() + .map(|e| format!("[{}] {} → {}", e.kind, e.original, e.suggestion)) + .collect::>() + .join("\n ") + }; + let _ = rtx.send(format!("即時分析({} 個錯誤):\n {}", errors.len(), msg)); + } + Err(e) => eat_core::logging::error(&e.to_string()), + } + } + let _ = camera.stop_stream(); + eat_core::logging::info("即時模式結束"); + }); + } + + fn spawn_batch(&self) { + save_rubric(&self.rubric_criteria, &self.rubric_dims); + let opts = PipelineOpts { + input_pdf: None, + output: None, + reader: self.reader.clone(), + vlm_model: self.vlm_model.clone(), + score: true, + rubric: eat_app::report::RubricCfg { + criteria: self.rubric_criteria.clone(), + dims: self.rubric_dims.clone(), + }, + model: Some(self.model.clone()), + api_url: Some(self.api_url.clone()), + api_key: if self.api_key.trim().is_empty() { None } else { Some(self.api_key.trim().to_string()) }, + ollama_url: None, + language: Some(self.language.clone()), + save_intermediate: true, // error counts for the results table + no_spell_correct: true, + no_gpu: false, + }; + let dir = self.input_folder.clone(); + let zip = self.zip_out.clone(); + let state = self.state.clone(); + { + let mut s = state.lock().unwrap(); + s.running = true; + s.results.clear(); + s.log.clear(); + } + std::thread::spawn(move || { + GUI_WANTS_LOG.store(true, Ordering::Relaxed); + let (_zip, results) = eat_app::run_batch(&dir, &zip, &opts); + GUI_WANTS_LOG.store(false, Ordering::Relaxed); + let mut s = state.lock().unwrap(); + s.running = false; + s.results = results; + s.zip_path = Some(zip); + }); + } +} + +// tiny local HTTP helpers (avoid a workspace-wide ureq dep in the gui crate) +mod ureq_local { + pub fn get(url: &str) -> Result { + let resp = std::thread::spawn({ + let url = url.to_string(); + move || { + // blocking read with a 3 s budget via std only is not possible; + // shell out to curl which is present on macOS out of the box + std::process::Command::new("curl") + .args(["-s", "--max-time", "3", &url]) + .output() + } + }) + .join() + .map_err(|_| "thread panic".to_string())? + .map_err(|e| format!("curl failed: {}", e))?; + if resp.status.success() { + Ok(String::from_utf8_lossy(&resp.stdout).into_owned()) + } else { + Err(format!("curl exit {}", resp.status)) + } + } +} + +fn serde_json_parse_models(body: &str) -> Vec { + // {"models":[{"name":"qwen2.5:7b:latest", ...}, ...]} + let mut out = Vec::new(); + let mut rest = body; + while let Some(p) = rest.find("\"name\"") { + let after = &rest[p + 6..]; + if let Some(q1) = after.find('"') { + if let Some(q2) = after[q1 + 1..].find('"') { + out.push(after[q1 + 1..q1 + 1 + q2].to_string()); + } + } + rest = &after[6.min(after.len())..]; + if out.len() > 50 { + break; + } + } + out +} + + +impl EatGui { + fn browse_view(&mut self, ui: &mut egui::Ui, ctx: &egui::Context) { + // 鍵盤:←→ 切換(文字輸入框聚焦時不攔) + if !ctx.wants_keyboard_input() { + let left = ctx.input(|i| i.key_pressed(egui::Key::ArrowLeft)); + let right = ctx.input(|i| i.key_pressed(egui::Key::ArrowRight)); + let up = ctx.input(|i| i.key_pressed(egui::Key::ArrowUp)); + let down = ctx.input(|i| i.key_pressed(egui::Key::ArrowDown)); + if right && self.browse.index + 1 < self.browse.entries.len() { + self.browse.index += 1; + self.browse.reload_current(); + } + if left && self.browse.index > 0 { + self.browse.index -= 1; + self.browse.reload_current(); + } + if up { + self.browse.rotation = (self.browse.rotation + 1) % 4; // 順時針 90° + } + if down { + self.browse.rotation = (self.browse.rotation + 3) % 4; // 逆時針 90° + } + } + + // 頂列:資料夾+導覽 + ui.horizontal(|ui| { + ui.label("結果資料夾"); + ui.add( + egui::TextEdit::singleline(&mut self.browse.folder).desired_width(ui.available_width() - 260.0), + ); + if ui.button("瀏覽…").clicked() { + if let Some(p) = rfd::FileDialog::new().pick_folder() { + self.browse.load_folder(&p.to_string_lossy()); + } + } + if ui.button("↻ 重新載入").clicked() { + let f = self.browse.folder.clone(); + if !f.is_empty() { + self.browse.load_folder(&f); + } + } + }); + if self.browse.entries.is_empty() { + if !self.browse.folder.is_empty() { + ui.label(format!("{}:沒找到標註 PDF(*.annotated.pdf / *_annotated.pdf)", self.browse.folder)); + } + return; + } + + ui.horizontal(|ui| { + ui.strong(format!("{}/{}", self.browse.index + 1, self.browse.entries.len())); + ui.label(&self.browse.entries[self.browse.index].stem); + ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { + ui.weak("← 上一篇|下一篇 →"); + if ui.button("▶").clicked() && self.browse.index + 1 < self.browse.entries.len() { + self.browse.index += 1; + self.browse.reload_current(); + } + if ui.button("◀").clicked() && self.browse.index > 0 { + self.browse.index -= 1; + self.browse.reload_current(); + } + if self.browse.rotation != 0 { + let deg = self.browse.rotation * 90; + if ui.button(format!("↺ {}°", deg)).clicked() { + self.browse.rotation = 0; + } + } + }); + }); + ui.separator(); + + // 右側:錯誤條列(依序) + egui::SidePanel::right("err-list") + .resizable(true) + .default_width(320.0) + .show_inside(ui, |ui| { + ui.strong(format!("錯誤({})", self.browse.err_list.len())); + egui::ScrollArea::vertical().show(ui, |ui| { + for (i, e) in self.browse.err_list.iter().enumerate() { + let (label, color) = match e.kind.as_str() { + "spelling" => ("拼字", egui::Color32::from_rgb(0xC6, 0x28, 0x28)), + "grammar" => ("文法", egui::Color32::from_rgb(0xEF, 0x6C, 0x00)), + _ => ("語意", egui::Color32::from_rgb(0x15, 0x65, 0xC0)), + }; + ui.group(|ui| { + ui.set_width(ui.available_width()); + ui.horizontal(|ui| { + ui.colored_label(color, format!("{}.", i + 1)); + ui.colored_label(color, label); + }); + ui.label(format!("✗ {}", e.original)); + ui.label(format!("→ {}", e.suggestion)); + }); + } + if self.browse.err_list.is_empty() { + ui.label("(沒有偵測到錯誤,或找不到對應 _errors.json)"); + } + }); + }); + + // 左側:標註原稿 + self.browse.render_page(ui); + } +} + +impl eframe::App for EatGui { + fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { + egui::TopBottomPanel::top("top").show(ctx, |ui| { + ui.add_space(6.0); + ui.horizontal(|ui| { + ui.heading("AI 作文批改"); + ui.separator(); + if ui.selectable_label(!self.browse_mode, "批次批改").clicked() { + self.browse_mode = false; + } + if ui.selectable_label(self.browse_mode, "瀏覽批改").clicked() { + self.browse_mode = true; + } + }); + if !self.browse_mode { + ui.label("選一個資料夾(內含學生作文 PDF)→ 批次批改 → 打包成 ZIP"); + } else { + ui.label("選批次輸出的資料夾:左=標註原稿、右=錯誤條列;←→ 切換上一篇/下一篇"); + } + ui.add_space(4.0); + }); + + egui::TopBottomPanel::bottom("bottom").show(ctx, |ui| { + ui.horizontal(|ui| { + // clone(不可 take()):take 會把狀態消費掉,之後每幀都 + // 顯示「正在檢查」——實測卡死的原因 + let status = self.ollama.lock().unwrap().clone(); + match &status { + Some(OllamaStatus::Reachable(models)) => { + let is_local = self.api_url.contains("11434") || self.api_url.contains("localhost"); + let label = if is_local { "● 本地 Ollama 已連線" } else { "● API 已連線" }; + ui.colored_label(egui::Color32::from_rgb(0x2e, 0x7d, 0x32), label); + if models.is_empty() { + ui.colored_label(egui::Color32::from_rgb(0xb2, 0x6a, 0x00), "— 尚未下載模型"); + if ui.button("下載預設模型 qwen2.5:7b(4.7 GB)").clicked() { + self.spawn_pull(); + } + } else if !models.iter().any(|m| m.starts_with("qwen2.5:7b")) { + ui.label(format!("已安裝模型:{}", models.join(", "))); + } + } + Some(OllamaStatus::Unreachable) => { + ui.colored_label(egui::Color32::from_rgb(0xc6, 0x28, 0x28), "● 找不到 Ollama"); + let inst = self.install.lock().unwrap().clone(); + match inst { + InstallState::Downloading { done, total } => { + let pct = if total > 0 { (done as f32 / total as f32 * 100.0).min(100.0) } else { 0.0 }; + ui.spinner(); + ui.label(format!("下載 Ollama 中 … {:.0}%({:.0}/{} MB)", pct, done as f64 / 1e6, total / 1_000_000)); + } + InstallState::Installing => { + ui.spinner(); + ui.label("安裝中 …"); + } + InstallState::Failed(e) => { + ui.colored_label(egui::Color32::from_rgb(0xc6, 0x28, 0x28), format!("安裝失敗:{}", e)); + if ui.button("重試安裝").clicked() { + self.spawn_install(); + } + } + InstallState::Idle => { + if ui.button("⤓ 一鍵安裝 Ollama(229 MB,自動下載・安裝・啟動)").clicked() { + self.spawn_install(); + } + } + } + if ui.button("重試連線").clicked() { + *self.ollama.lock().unwrap() = Some(OllamaStatus::Checking); + self.spawn_ollama_check(); + } + } + _ => { ui.label("○ 正在檢查 Ollama …"); } + } + if self.pull_running.load(Ordering::Relaxed) { + ui.spinner(); + ui.label("模型下載中 … 完成後按「重試連線」"); + } + }); + }); + + egui::CentralPanel::default().show(ctx, |ui| { + if self.browse_mode { + self.browse_view(ui, ctx); + return; + } + ui.group(|ui| { + ui.set_width(ui.available_width()); + ui.horizontal(|ui| { + ui.label("輸入資料夾"); + ui.text_edit_singleline(&mut self.input_folder); + if ui.button("瀏覽…").clicked() { + if let Some(p) = rfd::FileDialog::new().pick_folder() { + self.input_folder = p.to_string_lossy().into_owned(); + if self.zip_out.is_empty() { + self.zip_out = format!("{}/annotated.zip", self.input_folder); + } + } + } + }); + ui.horizontal(|ui| { + ui.label("輸出 ZIP "); + ui.text_edit_singleline(&mut self.zip_out); + }); + }); + + ui.add_space(6.0); + ui.group(|ui| { + ui.set_width(ui.available_width()); + ui.horizontal(|ui| { + ui.label("模型"); + ui.text_edit_singleline(&mut self.model); + ui.label("語言"); + egui::ComboBox::from_id_salt("lang") + .selected_text(self.language.clone()) + .show_ui(ui, |ui| { + for (code, name) in LANGUAGES { + ui.selectable_value(&mut self.language, code.to_string(), format!("{} ({})", name, code)); + } + }); + ui.checkbox(&mut self.save_intermediate, "ZIP 內含中間 JSON"); + }); + ui.horizontal(|ui| { + ui.label("Ollama URL"); + ui.text_edit_singleline(&mut self.api_url); + }); + ui.horizontal(|ui| { + ui.label("掃描讀取引擎"); + egui::ComboBox::from_id_salt("reader") + .selected_text(if self.reader == "vlm" { "VLM 手寫精讀(準,每頁約 30 分鐘)".to_string() } else { "PP-OCR 本機(快)".to_string() }) + .show_ui(ui, |ui| { + ui.selectable_value(&mut self.reader, "vlm".into(), "VLM 手寫精讀(準,每頁約 30 分鐘)"); + ui.selectable_value(&mut self.reader, "ppocr".into(), "PP-OCR 本機(快)"); + }); + if self.reader == "vlm" { + ui.label("視覺模型"); + ui.text_edit_singleline(&mut self.vlm_model); + if !models_available(&self.ollama).contains(&self.vlm_model) { + ui.colored_label(egui::Color32::from_rgb(0xb2, 0x6a, 0x00), format!("需先 ollama pull {}", self.vlm_model)); + } + } + }); + }); + + ui.add_space(6.0); + ui.group(|ui| { + ui.set_width(ui.available_width()); + ui.horizontal(|ui| { + ui.strong("批改標準"); + if ui.button("重設預設").clicked() { + self.rubric_criteria = eat_app::report::RubricCfg::default().criteria; + self.rubric_dims = eat_app::report::RubricCfg::default().dims; + } + }); + egui::CollapsingHeader::new("評分說明(給 AI 的批改標準)") + .default_open(false) + .show(ui, |ui| { + ui.add( + egui::TextEdit::multiline(&mut self.rubric_criteria) + .desired_rows(6) + .desired_width(ui.available_width()), + ); + }); + ui.label("評分佔比(點開每格寫自己的標準):"); + let n_dims = self.rubric_dims.len(); + for i in 0..n_dims { + let d = self.rubric_dims[i].clone(); + let header = format!("{} — {:.0} 分", d.name, d.max); + egui::CollapsingHeader::new(header) + .default_open(false) + .id_salt(format!("dim{}", i)) + .show(ui, |ui| { + ui.horizontal(|ui| { + ui.label("名稱"); + let mut name = d.name.clone(); + ui.add(egui::TextEdit::singleline(&mut name).desired_width(90.0)); + ui.label("滿分"); + let mut max = d.max.to_string(); + ui.add(egui::TextEdit::singleline(&mut max).desired_width(60.0)); + if name != d.name || max != d.max.to_string() { + self.rubric_dims[i].name = name; + self.rubric_dims[i].max = max.trim().parse::().unwrap_or(d.max); + } + }); + ui.label("此項標準(會直接餵給 AI):"); + let mut desc = d.desc.clone(); + ui.add( + egui::TextEdit::multiline(&mut desc) + .desired_rows(3) + .desired_width(ui.available_width()), + ); + if desc != d.desc { + self.rubric_dims[i].desc = desc; + } + if ui.button("✕ 刪除此維度").clicked() { + self.rubric_dims.remove(i); + } + }); + } + ui.horizontal(|ui| { + if ui.button("+ 新增維度").clicked() { + self.rubric_dims.push(eat_app::report::Dim { + name: "新維度".into(), + desc: String::new(), + max: 5.0, + }); + } + let total: f32 = self.rubric_dims.iter().map(|d| d.max).sum(); + ui.strong(format!("滿分 {:.0}", total)); + }); + }); + + ui.add_space(8.0); + let can_run = !self.input_folder.is_empty() + && !self.zip_out.is_empty() + && !self.state.lock().unwrap().running; + ui.add_enabled_ui(can_run, |ui| { + let btn = egui::Button::new("▶ 開始批改"); + if ui.add_sized([160.0, 32.0], btn).clicked() { + self.spawn_batch(); + } + }); + if self.state.lock().unwrap().running { + ui.add(egui::Spinner::new()); + ui.label("批次處理中 … 詳見下方記錄"); + ctx.request_repaint_after(std::time::Duration::from_millis(250)); + } + + // results table + { + let s = self.state.lock().unwrap(); + if !s.results.is_empty() { + ui.add_space(8.0); + ui.separator(); + ui.heading("結果"); + egui::ScrollArea::vertical().max_height(140.0).show(ui, |ui| { + egui::Grid::new("results").striped(true).show(ui, |ui| { + ui.strong("檔案"); + ui.strong("錯誤數"); + ui.strong("狀態"); + ui.end_row(); + for (name, n, status) in &s.results { + ui.label(name); + ui.label(if *n > 0 { n.to_string() } else { "—".into() }); + ui.label(status); + ui.end_row(); + } + }); + }); + if let Some(zip) = &s.zip_path { + if ui.button("📂 開啟輸出 ZIP 所在資料夾").clicked() { + let _ = std::process::Command::new("open") + .arg("-R") + .arg(zip) + .spawn(); + } + } + } + } + + // 即時模式(live camera) + ui.add_space(8.0); + ui.separator(); + ui.heading("即時模式(攝影機對準作文)"); + ui.horizontal(|ui| { + let running = self.live.running.load(Ordering::Relaxed); + if !running { + if ui.button("● 開啟相機").clicked() { + self.spawn_live(0); + } + } else { + if ui.button("■ 關閉相機").clicked() { + self.live.running.store(false, Ordering::Relaxed); + } + ui.spinner(); + ui.label("預覽與分析中 …"); + } + ui.ctx().request_repaint_after(std::time::Duration::from_millis(120)); + }); + // drain preview frames → texture + loop { + match self.live.preview_rx.try_recv() { + Ok(p) => { + let size = [p.w as usize, p.h as usize]; + let color_image = egui::ColorImage::from_rgba_unmultiplied( + size, + &rgba_from_rgb(&p.rgb), + ); + if let Some(tex) = self.live.texture.as_mut() { + tex.set(color_image, egui::TextureOptions::LINEAR); + } else { + self.live.texture = Some(ui.ctx().load_texture( + "live-preview", + color_image, + egui::TextureOptions::LINEAR, + )); + } + } + Err(_) => break, + } + } + if let Some(tex) = &self.live.texture { + let avail = ui.available_width(); + ui.image((tex.id(), egui::vec2(avail.min(640.0), avail.min(640.0) * 0.5625))); + } + // drain analysis results into the log + loop { + match self.live.result_rx.try_recv() { + Ok(msg) => eat_core::logging::info(&msg), + Err(_) => break, + } + } + + // log panel + ui.add_space(8.0); + ui.separator(); + ui.heading("記錄"); + egui::ScrollArea::vertical() + .max_height(ui.available_height() - 4.0) + .stick_to_bottom(true) + .show(ui, |ui| { + let s = self.state.lock().unwrap(); + for line in &s.log { + ui.monospace(line); + } + }); + }); + } +} + +fn default_rubric() -> eat_app::report::RubricCfg { + match std::fs::read_to_string(rubric_path()) { + Ok(txt) => serde_json::from_str(&txt).unwrap_or_default(), + Err(_) => eat_app::report::RubricCfg::default(), + } +} + +fn rubric_path() -> std::path::PathBuf { + std::env::var("HOME") + .map(|h| std::path::PathBuf::from(h).join("eat-rubric.json")) + .unwrap_or_else(|_| std::path::PathBuf::from("eat-rubric.json")) +} + +fn save_rubric(criteria: &str, dims: &[eat_app::report::Dim]) { + let cfg = eat_app::report::RubricCfg { + criteria: criteria.to_string(), + dims: dims.to_vec(), + }; + if let Ok(json) = serde_json::to_string_pretty(&cfg) { + let _ = std::fs::write(rubric_path(), json); + } +} + +fn models_available(ollama: &Arc>>) -> Vec { + match &*ollama.lock().unwrap() { + Some(OllamaStatus::Reachable(m)) => m.clone(), + _ => Vec::new(), + } +} + +// ── 瀏覽批改模式 ───────────────────────────────────────────────────────────── + +#[derive(Clone)] +struct BrowseEntry { + /// 顯示名(去掉 .annotated.pdf/_annotated.pdf) + stem: String, + pdf: std::path::PathBuf, + errors: Option, +} + +struct BrowseState { + folder: String, + entries: Vec, + index: usize, + texture: Option, + texture_key: String, + err_list: Vec, + /// 原稿旋轉(0-3,每次=順時針 90°;↑=+90、↓=-90) + rotation: u32, +} + +impl Default for BrowseState { + fn default() -> Self { + BrowseState { + folder: String::new(), + entries: Vec::new(), + index: 0, + texture: None, + texture_key: String::new(), + err_list: Vec::new(), + rotation: 0, + } + } +} + +impl BrowseState { + /// 掃資料夾組配(標註 PDF ↔ 錯誤 JSON)。兩種命名都支援: + /// X.annotated.pdf / X_annotated.pdf ↔ X_errors.json + fn load_folder(&mut self, folder: &str) { + self.folder = folder.to_string(); + self.entries.clear(); + self.index = 0; + self.texture = None; + self.texture_key.clear(); + self.err_list.clear(); + let mut pairs: Vec = Vec::new(); + if let Ok(rd) = std::fs::read_dir(folder) { + let mut pdfs: Vec = rd + .filter_map(|e| e.ok().map(|e| e.path())) + .filter(|p| { + let n = p.file_name().map(|n| n.to_string_lossy().into_owned()).unwrap_or_default(); + n.ends_with(".annotated.pdf") || n.ends_with("_annotated.pdf") + }) + .collect(); + pdfs.sort(); + for pdf in pdfs { + let fname = pdf.file_name().unwrap().to_string_lossy().into_owned(); + let stem = fname + .trim_end_matches(".annotated.pdf") + .trim_end_matches("_annotated.pdf") + .to_string(); + let dir = pdf.parent().unwrap(); + let mut errors = dir.join(format!("{}_errors.json", stem)); + if !errors.exists() { + errors = dir.join(format!("{}_annotated_errors.json", stem)); + } + let errors = if errors.exists() { Some(errors) } else { None }; + pairs.push(BrowseEntry { stem, pdf, errors }); + } + } + self.entries = pairs; + self.reload_current(); + } + + fn reload_current(&mut self) { + self.texture = None; + self.texture_key.clear(); + self.err_list.clear(); + if let Some(e) = self.entries.get(self.index) { + if let Some(p) = &e.errors { + if let Ok(txt) = std::fs::read_to_string(p) { + self.err_list = serde_json::from_str(&txt).unwrap_or_default(); + } + } + } + } + + fn render_page(&mut self, ui: &mut egui::Ui) { + let entry = match self.entries.get(self.index) { + Some(e) => e.clone(), + None => { + ui.centered_and_justified(|ui| ui.label("資料夾中沒有標註 PDF(先跑批次批改)")); + return; + } + }; + let key = format!("{}|rot{}", entry.pdf.to_string_lossy(), self.rotation % 4); + if self.texture_key != key { + let pdf_path = entry.pdf.to_string_lossy().into_owned(); + match eat_app::shared_pdf() { + Ok(pdf) => { + // 全部頁面垂直串接(作文多為一頁) + let count = 4usize; // 上限掃 4 頁 + let mut imgs: Vec<(u32, u32, Vec)> = Vec::new(); + for i in 0..count { + match pdf.render_page_rgb(&pdf_path, i as i32, 110.0) { + Ok((w, h, rgb)) => imgs.push((w, h, rgb)), + Err(_) => break, + } + } + if !imgs.is_empty() { + let total_w = imgs.iter().map(|(w, _, _)| *w).max().unwrap(); + let total_h: u32 = imgs.iter().map(|(_, h, _)| *h).sum::() + imgs.len() as u32 * 4; + let mut canvas = vec![255u8; (total_w * total_h * 3) as usize]; + let mut y: u32 = 0; + for (w, h, rgb) in &imgs { + for row in 0..*h { + let dst = ((y + row) * total_w) as usize * 3; + let src = (row * w) as usize * 3; + canvas[dst..dst + (*w as usize * 3)] + .copy_from_slice(&rgb[src..src + (*w as usize * 3)]); + } + y += h + 4; + } + let mut rgba = Vec::with_capacity((total_w * total_h * 4) as usize); + for px in canvas.chunks_exact(3) { + rgba.extend_from_slice(&[px[0], px[1], px[2], 255]); + } + let (rgba, total_w, total_h) = rotate_rgba_cw( + rgba, + total_w as usize, + total_h as usize, + self.rotation as usize % 4, + ); + let total_w = total_w as u32; + let total_h = total_h as u32; + let img = egui::ColorImage::from_rgba_unmultiplied( + [total_w as usize, total_h as usize], + &rgba, + ); + self.texture = Some(ui.ctx().load_texture("browse-page", img, egui::TextureOptions::LINEAR)); + self.texture_key = format!("{}|rot{}", key, self.rotation % 4); + } + } + Err(e) => { + ui.label(format!("pdfium 錯誤:{}", e.0)); + } + } + } + if let Some(tex) = &self.texture { + let avail = ui.available_width(); + let aspect = tex.size_vec2().y / tex.size_vec2().x.max(1.0); + egui::ScrollArea::vertical().show(ui, |ui| { + ui.image((tex.id(), egui::vec2(avail, avail * aspect))); + }); + } + } +} + +/// RGBA 緩衝順時針旋轉 n 次 90°(像素級,瀏覽原稿用)。 +fn rotate_rgba_cw(data: Vec, w: usize, h: usize, times: usize) -> (Vec, usize, usize) { + let mut out = data; + let (mut ow, mut oh) = (w, h); + for _ in 0..times { + let (nw, nh) = (oh, ow); + let mut next = vec![0u8; out.len()]; + for y in 0..oh { + for x in 0..ow { + let (nx, ny) = (oh - 1 - y, x); + let src = (y * ow + x) * 4; + let dst = (ny * nw + nx) * 4; + next[dst..dst + 4].copy_from_slice(&out[src..src + 4]); + } + } + out = next; + ow = nw; + oh = nh; + } + (out, ow, oh) +} + +fn rgba_from_rgb(rgb: &[u8]) -> Vec { + let mut out = Vec::with_capacity(rgb.len() / 3 * 4); + for px in rgb.chunks_exact(3) { + out.extend_from_slice(&[px[0], px[1], px[2], 255]); + } + out +} + +fn main() -> eframe::Result { + let native = eframe::NativeOptions { + viewport: egui::ViewportBuilder::default() + .with_inner_size([760.0, 640.0]) + .with_title("AI 作文批改 Project-EAT"), + ..Default::default() + }; + eframe::run_native("eat-gui", native, Box::new(|cc| Ok(Box::new(EatGui::new(cc))))) +} diff --git a/eat-rs/crates/eat-ocr/Cargo.toml b/eat-rs/crates/eat-ocr/Cargo.toml new file mode 100644 index 0000000..ea42b88 --- /dev/null +++ b/eat-rs/crates/eat-ocr/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "eat-ocr" +version.workspace = true +edition.workspace = true +license.workspace = true + +[dependencies] +eat-core = { path = "../eat-core" } +ort = { workspace = true } +image = { workspace = true } +base64 = "0.22" +ureq = { workspace = true } +serde_json = { workspace = true } + +[dev-dependencies] +serde = { workspace = true } + +# Windows (mingw cross-build): ort-sys has no windows-gnu prebuilts; load the +# bundled onnxruntime.dll at runtime instead (see scripts/make-app / dist). +[target.'cfg(target_os = "windows")'.dependencies] +ort = { version = "2.0.0-rc.15", features = ["load-dynamic"] } diff --git a/eat-rs/crates/eat-ocr/examples/dbpp.rs b/eat-rs/crates/eat-ocr/examples/dbpp.rs new file mode 100644 index 0000000..48195c8 --- /dev/null +++ b/eat-rs/crates/eat-ocr/examples/dbpp.rs @@ -0,0 +1,26 @@ +//! Debug: run the isolated DB post-process on a dumped .npy probmap. +//! usage: dbpp +fn main() { + let args: Vec = std::env::args().collect(); + let raw = std::fs::read(&args[1]).unwrap(); + // minimal .npy parse: magic(6) + ver(2) + header_len(2 LE) + header + data + let hlen = u16::from_le_bytes([raw[8], raw[9]]) as usize; + let data = &raw[10 + hlen..]; + let pred: Vec = data + .chunks_exact(4) + .map(|c| f32::from_le_bytes([c[0], c[1], c[2], c[3]])) + .collect(); + let (pw, ph, iw, ih): (usize, usize, usize, usize) = ( + args[2].parse().unwrap(), + args[3].parse().unwrap(), + args[4].parse().unwrap(), + args[5].parse().unwrap(), + ); + assert_eq!(pred.len(), pw * ph, "npy size mismatch"); + let boxes = eat_ocr::db_postprocess(&pred, pw, ph, iw, ih); + eprintln!("rust boxes: {}", boxes.len()); + for b in &boxes { + let pts: Vec = b.iter().map(|(x, y)| format!("{:.0},{:.0}", x, y)).collect(); + println!("{}", pts.join(" ")); + } +} diff --git a/eat-rs/crates/eat-ocr/examples/dump.rs b/eat-rs/crates/eat-ocr/examples/dump.rs new file mode 100644 index 0000000..db14b3f --- /dev/null +++ b/eat-rs/crates/eat-ocr/examples/dump.rs @@ -0,0 +1,17 @@ +//! Debug helper: run OCR on an image and print lines as JSON. +use eat_ocr::imgops::Img; +fn main() { + let path = std::env::args().nth(1).expect("usage: dump "); + let img = image::open(&path).unwrap().to_rgb8(); + let img = Img::from_rgb(img.width() as usize, img.height() as usize, &img); + let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../vendor/ppocr"); + std::env::set_var("EAT_PPROCR_DIR", std::fs::canonicalize(&dir).unwrap_or(dir)); + let mut ocr = eat_ocr::RapidOcr::load().unwrap(); + let t0 = std::time::Instant::now(); + let lines = ocr.run(&img).unwrap(); + eprintln!("{} lines in {:.1}s", lines.len(), t0.elapsed().as_secs_f32()); + for l in &lines { + let b: Vec = l.box_.iter().map(|(x, y)| format!("{:.0},{:.0}", x, y)).collect(); + println!("{}\t{}\t{}", format!("{:.2}", l.score), l.text, b.join(" ")); + } +} diff --git a/eat-rs/crates/eat-ocr/src/geom.rs b/eat-rs/crates/eat-ocr/src/geom.rs new file mode 100644 index 0000000..a56d1c9 --- /dev/null +++ b/eat-rs/crates/eat-ocr/src/geom.rs @@ -0,0 +1,243 @@ +//! Geometry helpers for the DB text-detection post-process — ports of the +//! cv2/pyclipper/shapely operations in rapidocr's DBPostProcess. + +/// 2-D point. +#[derive(Debug, Clone, Copy, PartialEq)] +pub struct Pt { + pub x: f64, + pub y: f64, +} + +impl Pt { + pub fn new(x: f64, y: f64) -> Self { + Pt { x, y } + } + pub fn sub(self, o: Pt) -> Pt { + Pt::new(self.x - o.x, self.y - o.y) + } + pub fn norm(self) -> f64 { + (self.x * self.x + self.y * self.y).sqrt() + } +} + +/// Andrew's monotone chain convex hull (input order independent). +pub fn convex_hull(points: &[Pt]) -> Vec { + let mut pts = points.to_vec(); + pts.sort_by(|a, b| a.x.partial_cmp(&b.x).unwrap().then(a.y.partial_cmp(&b.y).unwrap())); + pts.dedup_by(|a, b| a.x == b.x && a.y == b.y); + let n = pts.len(); + if n < 3 { + return pts; + } + let cross = |o: Pt, a: Pt, b: Pt| (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x); + let mut lower: Vec = Vec::new(); + for &p in &pts { + while lower.len() >= 2 && cross(lower[lower.len() - 2], lower[lower.len() - 1], p) <= 0.0 { + lower.pop(); + } + lower.push(p); + } + let mut upper: Vec = Vec::new(); + for &p in pts.iter().rev() { + while upper.len() >= 2 && cross(upper[upper.len() - 2], upper[upper.len() - 1], p) <= 0.0 { + upper.pop(); + } + upper.push(p); + } + lower.pop(); + upper.pop(); + lower.extend(upper); + lower +} + +/// Minimum-area enclosing rectangle via rotating calipers over the convex +/// hull. Returns the 4 corners and (width, height) of the rect. +pub fn min_area_rect(points: &[Pt]) -> (Vec, f64, f64) { + let hull = convex_hull(points); + if hull.len() < 2 { + let p = hull.first().copied().unwrap_or(Pt::new(0.0, 0.0)); + return (vec![p; 4], 0.0, 0.0); + } + let n = hull.len(); + let mut best = (f64::INFINITY, Vec::new(), 0.0, 0.0); // (area, corners, w, h) + for i in 0..n { + let p1 = hull[i]; + let p2 = hull[(i + 1) % n]; + let e = p2.sub(p1); + let len = e.norm(); + if len < 1e-9 { + continue; + } + let ux = Pt::new(e.x / len, e.y / len); // unit along edge + let uy = Pt::new(-ux.y, ux.x); // unit perpendicular + let mut min_a = f64::INFINITY; + let mut max_a = f64::NEG_INFINITY; + let mut min_b = f64::INFINITY; + let mut max_b = f64::NEG_INFINITY; + for &p in &hull { + let d = p.sub(p1); + let a = d.x * ux.x + d.y * ux.y; + let b = d.x * uy.x + d.y * uy.y; + min_a = min_a.min(a); + max_a = max_a.max(a); + min_b = min_b.min(b); + max_b = max_b.max(b); + } + let w = max_a - min_a; + let h = max_b - min_b; + let area = w * h; + if area < best.0 { + let c = |a: f64, b: f64| Pt::new(p1.x + ux.x * a + uy.x * b, p1.y + ux.y * a + uy.y * b); + let corners = vec![c(min_a, min_b), c(max_a, min_b), c(max_a, max_b), c(min_a, max_b)]; + best = (area, corners, w, h); + } + } + (best.1, best.2, best.3) +} + +/// Port of DBPostProcess.order_points_clockwise: tl, tr, br, bl. +pub fn order_points_clockwise(pts: [Pt; 4]) -> [Pt; 4] { + let mut sorted = pts; + sorted.sort_by(|a, b| a.x.partial_cmp(&b.x).unwrap().then(a.y.partial_cmp(&b.y).unwrap())); + let mut left = [sorted[0], sorted[1]]; + let mut right = [sorted[2], sorted[3]]; + left.sort_by(|a, b| a.y.partial_cmp(&b.y).unwrap()); + right.sort_by(|a, b| a.y.partial_cmp(&b.y).unwrap()); + let (tl, bl) = (left[0], left[1]); + let (tr, br) = (right[0], right[1]); + [tl, tr, br, bl] +} + +/// Port of DBPostProcess.get_mini_boxes: min-area rect corners reordered to a +/// stable rotation-aware starting point. Returns (4 points, min side length). +pub fn get_mini_boxes(points: &[Pt]) -> (Vec, f64) { + let (corners, w, h) = min_area_rect(points); + let mut pts: Vec = corners; + pts.sort_by(|a, b| a.x.partial_cmp(&b.x).unwrap()); + let (i1, i4) = if pts[1].y > pts[0].y { (0, 1) } else { (1, 0) }; + let (i2, i3) = if pts[3].y > pts[2].y { (2, 3) } else { (3, 2) }; + let ordered = vec![pts[i1], pts[i2], pts[i3], pts[i4]]; + (ordered, w.min(h)) +} + +/// Expand a 4-corner polygon outward by `dist` along its rect axes — port of +/// DBPostProcess.unclip (pyclipper offset approximated by axis growth; corner +/// rounding differs only at the corners). +pub fn unclip_rect(points: &[Pt], unclip_ratio: f64) -> Vec { + let area = polygon_area(points); + let length = polygon_perimeter(points); + if length < 1e-6 { + return points.to_vec(); + } + let dist = area * unclip_ratio / length; + // rect axes: u = p1-p0 (top edge), v = p3-p0 (left edge) + let (u, ul) = { + let e = points[1].sub(points[0]); + let l = e.norm(); + (Pt::new(e.x / l, e.y / l), l) + }; + let (v, vl) = { + let e = points[3].sub(points[0]); + let l = e.norm(); + (Pt::new(e.x / l, e.y / l), l) + }; + let au = ul / 2.0 + dist; + let av = vl / 2.0 + dist; + let cx = (points[0].x + points[2].x) / 2.0; + let cy = (points[0].y + points[2].y) / 2.0; + let corner = |su: f64, sv: f64| Pt::new(cx + u.x * au * su + v.x * av * sv, cy + u.y * au * su + v.y * av * sv); + vec![corner(-1.0, -1.0), corner(1.0, -1.0), corner(1.0, 1.0), corner(-1.0, 1.0)] +} + +pub fn polygon_area(p: &[Pt]) -> f64 { + let n = p.len(); + let mut a = 0.0; + for i in 0..n { + let j = (i + 1) % n; + a += p[i].x * p[j].y - p[j].x * p[i].y; + } + (a / 2.0).abs() +} + +pub fn polygon_perimeter(p: &[Pt]) -> f64 { + let n = p.len(); + let mut l = 0.0; + for i in 0..n { + l += p[(i + 1) % n].sub(p[i]).norm(); + } + l +} + +/// Even-odd point-in-polygon test (inclusive-ish; matches fillPoly closely +/// enough for a mean-score mask). +pub fn point_in_polygon(x: f64, y: f64, poly: &[Pt]) -> bool { + let n = poly.len(); + let mut inside = false; + let mut j = n - 1; + for i in 0..n { + let (xi, yi) = (poly[i].x, poly[i].y); + let (xj, yj) = (poly[j].x, poly[j].y); + if ((yi > y) != (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi) { + inside = !inside; + } + j = i; + } + inside +} + +/// Solve an 8×8 linear system by Gaussian elimination with partial pivoting +/// (used for the 4-point perspective transform). +pub fn solve_linear(a: &mut [[f64; 8]; 8], b: &mut [f64; 8]) -> Option<[f64; 8]> { + let n = 8; + for col in 0..n { + // pivot + let mut pivot = col; + for r in col + 1..n { + if a[r][col].abs() > a[pivot][col].abs() { + pivot = r; + } + } + if a[pivot][col].abs() < 1e-12 { + return None; + } + a.swap(col, pivot); + b.swap(col, pivot); + let div = a[col][col]; + for c in col..n { + a[col][c] /= div; + } + b[col] /= div; + for r in 0..n { + if r != col && a[r][col].abs() > 1e-15 { + let f = a[r][col]; + for c in col..n { + a[r][c] -= f * a[col][c]; + } + b[r] -= f * b[col]; + } + } + } + Some(*b) +} + +/// Homography mapping `from` → `to` (4 point pairs) as a 3×3 row-major matrix. +pub fn homography(from: [Pt; 4], to: [Pt; 4]) -> Option<[f64; 9]> { + let mut a = [[0.0; 8]; 8]; + let mut b = [0.0; 8]; + for i in 0..4 { + let (x, y) = (from[i].x, from[i].y); + let (u, v) = (to[i].x, to[i].y); + a[i * 2] = [x, y, 1.0, 0.0, 0.0, 0.0, -u * x, -u * y]; + b[i * 2] = u; + a[i * 2 + 1] = [0.0, 0.0, 0.0, x, y, 1.0, -v * x, -v * y]; + b[i * 2 + 1] = v; + } + let h = solve_linear(&mut a, &mut b)?; + Some([h[0], h[1], h[2], h[3], h[4], h[5], h[6], h[7], 1.0]) +} + +/// Apply a 3×3 homography to a point. +pub fn apply_h(h: &[f64; 9], x: f64, y: f64) -> (f64, f64) { + let d = h[6] * x + h[7] * y + h[8]; + ((h[0] * x + h[1] * y + h[2]) / d, (h[3] * x + h[4] * y + h[5]) / d) +} diff --git a/eat-rs/crates/eat-ocr/src/imgops.rs b/eat-rs/crates/eat-ocr/src/imgops.rs new file mode 100644 index 0000000..7dd8024 --- /dev/null +++ b/eat-rs/crates/eat-ocr/src/imgops.rs @@ -0,0 +1,171 @@ +//! Image operations for eat-ocr — ports of the cv2 operations used by +//! rapidocr's preprocessing (resize, dilate, perspective crop, rotations). + +use crate::geom::{apply_h, homography, Pt}; + +/// 8-bit BGR image buffer (PP-OCR models were trained on cv2/BGR inputs). +#[derive(Clone)] +pub struct Img { + pub w: usize, + pub h: usize, + pub data: Vec, // BGRBGR… +} + +impl Img { + pub fn from_bgr(w: usize, h: usize, data: Vec) -> Self { + debug_assert_eq!(data.len(), w * h * 3); + Img { w, h, data } + } + + pub fn from_rgb(w: usize, h: usize, rgb: &[u8]) -> Self { + let mut data = vec![0u8; w * h * 3]; + for i in 0..w * h { + data[i * 3] = rgb[i * 3 + 2]; + data[i * 3 + 1] = rgb[i * 3 + 1]; + data[i * 3 + 2] = rgb[i * 3]; + } + Img { w, h, data } + } + + #[inline] + pub fn px(&self, x: usize, y: usize) -> [u8; 3] { + let o = (y * self.w + x) * 3; + [self.data[o], self.data[o + 1], self.data[o + 2]] + } + + /// Bilinear sample with BORDER_REPLICATE. + fn sample_bilinear(&self, x: f32, y: f32) -> [f32; 3] { + let x = x.clamp(0.0, (self.w - 1) as f32); + let y = y.clamp(0.0, (self.h - 1) as f32); + let x0 = x.floor() as usize; + let y0 = y.floor() as usize; + let x1 = (x0 + 1).min(self.w - 1); + let y1 = (y0 + 1).min(self.h - 1); + let fx = x - x0 as f32; + let fy = y - y0 as f32; + let mut out = [0f32; 3]; + for c in 0..3 { + let p00 = self.data[(y0 * self.w + x0) * 3 + c] as f32; + let p10 = self.data[(y0 * self.w + x1) * 3 + c] as f32; + let p01 = self.data[(y1 * self.w + x0) * 3 + c] as f32; + let p11 = self.data[(y1 * self.w + x1) * 3 + c] as f32; + out[c] = p00 * (1.0 - fx) * (1.0 - fy) + + p10 * fx * (1.0 - fy) + + p01 * (1.0 - fx) * fy + + p11 * fx * fy; + } + out + } + + /// Bilinear resize to (w, h) (≈ cv2.INTER_LINEAR for down/up-sampling). + pub fn resize(&self, w: usize, h: usize) -> Img { + if w == self.w && h == self.h { + return self.clone(); + } + let mut data = vec![0u8; w * h * 3]; + let sx = self.w as f32 / w as f32; + let sy = self.h as f32 / h as f32; + for y in 0..h { + let src_y = (y as f32 + 0.5) * sy - 0.5; + for x in 0..w { + let src_x = (x as f32 + 0.5) * sx - 0.5; + let p = self.sample_bilinear(src_x, src_y); + let o = (y * w + x) * 3; + for c in 0..3 { + data[o + c] = p[c].round().clamp(0.0, 255.0) as u8; + } + } + } + Img { w, h, data } + } + + /// Rotate 180°. + pub fn rotate180(&self) -> Img { + let mut data = vec![0u8; self.data.len()]; + let n = self.w * self.h; + for i in 0..n { + let j = n - 1 - i; + for c in 0..3 { + data[i * 3 + c] = self.data[j * 3 + c]; + } + } + Img { w: self.w, h: self.h, data } + } + + /// Rotate 90° counter-clockwise (np.rot90). + pub fn rot90ccw(&self) -> Img { + let (w, h) = (self.w, self.h); + let (nw, nh) = (h, w); + let mut data = vec![0u8; self.data.len()]; + for y in 0..h { + for x in 0..w { + // new[r][c] = old[c][W-1-r] → for old(x,y): r = W-1-x, c = y + let r = w - 1 - x; + let c = y; + let dst = (r * nw + c) * 3; + let src = (y * w + x) * 3; + data[dst..dst + 3].copy_from_slice(&self.data[src..src + 3]); + } + } + Img { w: nw, h: nh, data } + } + + /// Perspective crop — port of rapidocr get_rotate_crop_image: map the + /// quadrilateral `points` (tl, tr, br, bl) onto an axis-aligned crop, + /// sampling with bilinear interpolation and BORDER_REPLICATE, then rotate + /// 90° ccw when the crop is taller than wide × 1.5. + pub fn perspective_crop(&self, points: [Pt; 4]) -> Img { + let crop_w = points[1].sub(points[0]).norm().max(points[2].sub(points[3]).norm()) as usize; + let crop_h = points[3].sub(points[0]).norm().max(points[2].sub(points[1]).norm()) as usize; + if crop_w == 0 || crop_h == 0 { + return Img { w: 1, h: 1, data: vec![0, 0, 0] }; + } + let dst_std = [ + Pt::new(0.0, 0.0), + Pt::new(crop_w as f64, 0.0), + Pt::new(crop_w as f64, crop_h as f64), + Pt::new(0.0, crop_h as f64), + ]; + // inverse mapping: dst → src (what warpPerspective effectively samples) + let h = homography(dst_std, points).unwrap_or([1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]); + let mut data = vec![0u8; crop_w * crop_h * 3]; + for y in 0..crop_h { + for x in 0..crop_w { + let (sx, sy) = apply_h(&h, x as f64 + 0.5, y as f64 + 0.5); + let p = self.sample_bilinear(sx as f32 - 0.5, sy as f32 - 0.5); + let o = (y * crop_w + x) * 3; + for c in 0..3 { + data[o + c] = p[c].round().clamp(0.0, 255.0) as u8; + } + } + } + let img = Img { w: crop_w, h: crop_h, data }; + if img.h as f64 / img.w as f64 >= 1.5 { + img.rot90ccw() + } else { + img + } + } +} + +/// 2×2 dilation matching cv2's even-kernel default anchor — a source pixel +/// lights itself and its right/down neighbours, so out(x,y) checks the +/// (x-1..=x, y-1..=y) neighbourhood (empirically verified against cv2). +pub fn dilate2x2(mask: &[u8], w: usize, h: usize) -> Vec { + let mut out = vec![0u8; mask.len()]; + for y in 0..h { + for x in 0..w { + let mut on = 0u8; + 'outer: for yy in y.saturating_sub(1)..=y { + for xx in x.saturating_sub(1)..=x { + if mask[yy * w + xx] != 0 { + on = 1; + break 'outer; + } + } + } + out[y * w + x] = on; + } + } + out +} diff --git a/eat-rs/crates/eat-ocr/src/lib.rs b/eat-rs/crates/eat-ocr/src/lib.rs new file mode 100644 index 0000000..3818f7b --- /dev/null +++ b/eat-rs/crates/eat-ocr/src/lib.rs @@ -0,0 +1,870 @@ +//! eat-ocr — scanned/handwritten page OCR (Rust port of the RapidOCR path in +//! ocr_engine.py). Runs the exact same PP-OCRv6 ONNX models shipped with the +//! Python `rapidocr` package, via the `ort` ONNX Runtime bindings. +//! +//! Pipeline (mirrors rapidocr main.py): +//! pre-resize (max side 2000) → det (DBNet) → sort boxes → perspective crop +//! → cls (180° fix) → rec (CRNN + CTC) → filter text_score ≥ 0.5 + +pub mod geom; +pub mod imgops; + +use geom::{get_mini_boxes, order_points_clockwise, point_in_polygon, Pt}; +use imgops::{dilate2x2, Img}; +use ort::session::{Session, SessionOutputs}; +use ort::value::Tensor; + +// ── tunables (rapidocr config.yaml defaults) ──────────────────────────────── +const MAX_SIDE_LEN: usize = 2000; +const DET_LIMIT_SIDE_LEN: usize = 736; // limit_type = min +const DET_MEAN_STD: f32 = 0.5; +const DET_THRESH: f32 = 0.3; +const BOX_THRESH: f32 = 0.5; +const MAX_CANDIDATES: usize = 1000; +const UNCLIP_RATIO: f64 = 1.6; +const USE_DILATION: bool = true; +const MIN_SIZE: f64 = 3.0; +const BOX_SORT_Y_THRESHOLD: f64 = 10.0; + +const TEXT_SCORE: f32 = 0.5; + +const REC_FLIP_RETRY_THRESHOLD: f32 = 0.60; + +const REC_IMAGE_H: usize = 48; +const REC_IMAGE_W: usize = 320; // base ratio; batch width grows dynamically +const REC_BATCH: usize = 6; + +/// One recognised text line. +#[derive(Debug, Clone)] +pub struct OcrLine { + /// 4 corner points in ORIGINAL image pixel coordinates (tl, tr, br, bl). + pub box_: [(f64, f64); 4], + pub text: String, + pub score: f32, +} + +#[derive(Debug)] +pub enum OcrError { + ModelsNotFound(String), + Ort(String), + Dict(String), +} + +impl std::fmt::Display for OcrError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + OcrError::ModelsNotFound(m) => write!(f, "PP-OCR models not found: {}", m), + OcrError::Ort(m) => write!(f, "onnxruntime error: {}", m), + OcrError::Dict(m) => write!(f, "rec dictionary error: {}", m), + } + } +} +impl std::error::Error for OcrError {} + +fn ort_err(e: impl std::error::Error) -> OcrError { + OcrError::Ort(e.to_string()) +} + +/// Python `round()` (banker's rounding) — rapidocr uses it for det resize. +fn py_round(x: f64) -> f64 { + let f = x.floor(); + let d = x - f; + if d > 0.5 { + f + 1.0 + } else if d < 0.5 { + f + } else if (f as i64) % 2 == 0 { + f + } else { + f + 1.0 + } +} + +/// VLM 行讀取器:det 找到的每一行裁切圖 → Ollama 視覺模型轉錄。 +/// 手寫辨識品質遠優於 CRNN(實測 fob→job、situatlon→situation、 +/// "m order"→"in order"),且復用既有 Ollama 基礎設施(零新依賴)。 +pub struct VlmReader { + agent: ureq::Agent, + url: String, + model: String, + api_key: Option, +} + +impl VlmReader { + pub fn new(model: &str, ollama_url: &str) -> Self { + Self::with_key(model, ollama_url, None) + } + + pub fn with_key(model: &str, url: &str, api_key: Option<&str>) -> Self { + VlmReader { + agent: ureq::AgentBuilder::new() + .timeout_connect(std::time::Duration::from_secs(30)) + .timeout_read(std::time::Duration::from_secs(300)) + .build(), + url: url.to_string(), + model: model.to_string(), + api_key: api_key.map(|s| s.to_string()), + } + } + + /// 讀取單行裁切圖(PNG bytes)→ 轉錄文字。回 None 表示該行丟棄: + /// 空 回應、「NO TEXT」(圖中無文字)、或聊天模板幻覺詞(model 對 + /// 空白裁切常吐 "system"/"user"/"assistant"——不能讓它進入管線, + /// 因為 VLM 模式沒有信心分數可過濾)。 + pub fn read_line(&self, png: &[u8]) -> Option { + use base64::Engine; + let b64 = base64::engine::general_purpose::STANDARD.encode(png); + let payload = serde_json::json!({ + "model": self.model, + "prompt": "Transcribe exactly the text in this image, keeping the original spelling including any mistakes. If the image contains no readable text, output exactly: NO TEXT", + "images": [b64], + "stream": false, + "options": {"temperature": 0, "num_predict": 200, "num_ctx": 2048} + }); + let mut req = self + .agent + .post(&self.url) + .timeout(std::time::Duration::from_secs(300)); + if let Some(key) = &self.api_key { + req = req.set("Authorization", &format!("Bearer {}", key)); + } + let resp = req.send_json(payload).ok()?; + let v: serde_json::Value = resp.into_json().ok()?; + let text = v.get("response")?.as_str()?.trim().to_string(); + let lower = text.to_lowercase(); + if text.is_empty() + || text == "NO TEXT" + || lower.starts_with("no text") + || (matches!(lower.as_str(), "system" | "user" | "assistant") + && !png.is_empty()) + { + return None; + } + Some(text) + } + /// 堆疊所有行裁切為一張圖、單一請求轉錄,回傳模型原始輸出行 + /// (不做行數假設——對齊由 align_vlm_lines 以 PP-OCR 基準讀取完成)。 + pub fn read_stack(&self, crops: &[Img]) -> Result, String> { + if crops.is_empty() { + return Ok(Vec::new()); + } + const H: usize = 56; + const MAX_W: usize = 1600; + const GAP: usize = 8; + let normalized: Vec = crops + .iter() + .map(|c| { + let w = ((c.w as f64 * H as f64 / c.h as f64) as usize).clamp(16, MAX_W); + if c.w == w && c.h == H { c.clone() } else { c.resize(w, H) } + }) + .collect(); + let total_w = normalized.iter().map(|c| c.w).max().unwrap_or(16).max(16); + let total_h = normalized.len() * H + GAP * (normalized.len().saturating_sub(1)); + let mut canvas = Img::from_rgb(total_w, total_h, &vec![255u8; total_w * total_h * 3]); + let mut y = 0usize; + for c in &normalized { + for dy in 0..H { + for dx in 0..c.w { + let o = ((y + dy) * total_w + dx) * 3; + let s0 = (dy * c.w + dx) * 3; + canvas.data[o] = c.data[s0]; + canvas.data[o + 1] = c.data[s0 + 1]; + canvas.data[o + 2] = c.data[s0 + 2]; + } + } + y += H + GAP; + } + let buf = image::RgbImage::from_raw(canvas.w as u32, canvas.h as u32, canvas.data.clone()) + .ok_or("canvas too large")?; + let mut png = Vec::new(); + image::DynamicImage::ImageRgb8(buf) + .write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png) + .map_err(|e| e.to_string())?; + + use base64::Engine; + let b64 = base64::engine::general_purpose::STANDARD.encode(&png); + let payload = serde_json::json!({ + "model": self.model, + "prompt": "The image contains text lines stacked top to bottom, separated by thin white gaps. Transcribe every line exactly in order from top to bottom, one output line per input line. Keep the original spelling including any mistakes. Do not merge, skip, or add lines. No commentary.", + "images": [b64], + "stream": false, + "options": {"temperature": 0, "num_predict": 4096, "num_ctx": 16384} + }); + let mut req = self + .agent + .post(&self.url) + .timeout(std::time::Duration::from_secs(900)); + if let Some(key) = &self.api_key { + req = req.set("Authorization", &format!("Bearer {}", key)); + } + let resp = req.send_json(payload).map_err(|e| format!("ollama: {}", e))?; + let v: serde_json::Value = resp.into_json().map_err(|e| format!("json: {}", e))?; + let text = v + .get("response") + .and_then(|t| t.as_str()) + .ok_or("no response")?; + Ok(text + .lines() + .map(|l| l.trim()) + .filter(|l| !l.is_empty()) + .map(|l| l.trim_start_matches(|c: char| c.is_ascii_digit() || c == '.' || c == ')' || c == ':' || c == ' ').trim().to_string()) + .filter(|l| !l.is_empty()) + .collect()) + } + +} + +pub struct RapidOcr { + det: Session, + rec: Session, + /// CTC vocabulary: index 0 = blank, last = space. + character: Vec, +} + +impl RapidOcr { + /// Load the 3 ONNX models + dictionary. Resolution order for the model + /// directory: `$EAT_PPROCR_DIR` → `models/` beside the executable → + /// workspace `vendor/ppocr/` (dev layout). + pub fn load() -> Result { + let profile = std::env::var("EAT_PPOCR_PROFILE").unwrap_or_default(); + let profile = if profile.is_empty() { "small".to_string() } else { profile }; + Self::load_profile(&profile) + } + + /// Load a specific model profile: "small" (default, fast) or "medium" + /// (higher accuracy, ~7× model size). Same dictionary and I/O signature. + pub fn load_profile(profile: &str) -> Result { + let det_name = format!("PP-OCRv6_det_{}.onnx", profile); + let rec_name = format!("PP-OCRv6_rec_{}.onnx", profile); + let mut candidates: Vec = Vec::new(); + if let Ok(p) = std::env::var("EAT_PPROCR_DIR") { + candidates.push(p.into()); + } + if let Ok(exe) = std::env::current_exe() { + if let Some(dir) = exe.parent() { + candidates.push(dir.join("models")); + candidates.push(dir.join("ppocr")); + } + } + if let Ok(manifest) = std::env::var("CARGO_MANIFEST_DIR") { + candidates.push(std::path::Path::new(&manifest).join("../../vendor/ppocr")); + } + let mut last = "no candidate dirs".to_string(); + for dir in &candidates { + if dir.join(&det_name).exists() { + return Self::load_from_named(dir, &det_name, &rec_name); + } + last = format!("missing {} in {}", det_name, dir.display()); + } + Err(OcrError::ModelsNotFound(last)) + } + + pub fn load_from(dir: &std::path::Path) -> Result { + Self::load_from_named(dir, "PP-OCRv6_det_small.onnx", "PP-OCRv6_rec_small.onnx") + } + + fn load_from_named(dir: &std::path::Path, det_name: &str, rec_name: &str) -> Result { + let env = ort::init().build().map_err(ort_err)?; + let det = Session::builder(&env) + .and_then(|mut b| b.commit_from_file(dir.join(det_name))) + .map_err(ort_err)?; + let rec = Session::builder(&env) + .and_then(|mut b| b.commit_from_file(dir.join(rec_name))) + .map_err(ort_err)?; + let dict_path = if dir.join("rec_keys_medium.txt").exists() && rec_name.contains("medium") { + dir.join("rec_keys_medium.txt") + } else { + dir.join("rec_keys.txt") + }; + let dict_raw = std::fs::read_to_string(&dict_path) + .map_err(|e| OcrError::Dict(format!("{}: {} ({})", dict_path.display(), e, dir.display())))?; + let mut character: Vec = dict_raw.split('\n').map(|s| s.to_string()).collect(); + character.push(" ".to_string()); + character.insert(0, "blank".to_string()); + return Ok(RapidOcr { det, rec, character }); + + } + + /// Run the full det→cls→rec pipeline on a BGR image. Returns lines in + /// reading order (top→bottom, left→right within a line band). + pub fn run(&mut self, img_bgr: &Img) -> Result, OcrError> { + if img_bgr.w < 2 || img_bgr.h < 2 { + return Ok(Vec::new()); + } + // global pre-resize: max side ≤ 2000 (track ratio to map boxes back) + let scale = if img_bgr.w.max(img_bgr.h) > MAX_SIDE_LEN { + MAX_SIDE_LEN as f64 / img_bgr.w.max(img_bgr.h) as f64 + } else { + 1.0 + }; + let img = if scale < 1.0 { + img_bgr.resize( + ((img_bgr.w as f64 * scale) as usize).max(1), + ((img_bgr.h as f64 * scale) as usize).max(1), + ) + } else { + img_bgr.clone() + }; + + let boxes = self.detect(&img)?; + if boxes.is_empty() { + return Ok(Vec::new()); + } + // sort in reading order + let mut sorted = boxes; + sorted.sort_by(|a, b| { + let (ya, yb) = (a[0].1, b[0].1); + let (line_a, line_b) = (ya / BOX_SORT_Y_THRESHOLD, yb / BOX_SORT_Y_THRESHOLD); + line_a + .partial_cmp(&line_b) + .unwrap() + .then(a[0].0.partial_cmp(&b[0].0).unwrap()) + }); + + // perspective crops + let crops: Vec = sorted + .iter() + .map(|b| { + img.perspective_crop([ + Pt::new(b[0].0, b[0].1), + Pt::new(b[1].0, b[1].1), + Pt::new(b[2].0, b[2].1), + Pt::new(b[3].0, b[3].1), + ]) + }) + .collect(); + + // Orientation handling: the upstream Python path uses a dedicated cls + // model, whose behaviour regressed under ONNX Runtime ≥1.31 (it flips + // horizontal handwriting upside-down). Instead we run rec once and + // retry flipped only for low-confidence crops, keeping the better + // score — robust across runtimes and still fixes upside-down scans. + let (mut txts, mut scores) = self.recognize(&crops)?; + for i in 0..crops.len() { + if scores[i] < REC_FLIP_RETRY_THRESHOLD { + let flipped = vec![crops[i].rotate180()]; + let (t2, s2) = self.recognize(&flipped)?; + if s2[0] > scores[i] { + txts[i] = t2[0].clone(); + scores[i] = s2[0]; + } + } + } + if std::env::var("EAT_DEBUG_RAW").is_ok() { + for (t, s) in txts.iter().zip(scores.iter()) { + eprintln!("REC_RAW\t{:.3}\t{}", s, t); + } + } + + // assemble + filter (rapidocr text_score, empty txts); map boxes to + // ORIGINAL image coordinates + let inv = 1.0 / scale; + let mut out = Vec::new(); + for (i, (txt, score)) in txts.iter().zip(scores.iter()).enumerate() { + if txt.trim().is_empty() || *score < TEXT_SCORE { + continue; + } + let b = sorted[i]; + out.push(OcrLine { + box_: [ + (b[0].0 * inv, b[0].1 * inv), + (b[1].0 * inv, b[1].1 * inv), + (b[2].0 * inv, b[2].1 * inv), + (b[3].0 * inv, b[3].1 * inv), + ], + text: txt.clone(), + score: *score, + }); + } + Ok(out) + } + + // ── detection ───────────────────────────────────────────────────────────── + + fn detect(&mut self, img: &Img) -> Result, OcrError> { + // det resize: multiple of 32, short side ≥ 736 (limit_type=min) + let (h, w) = (img.h as f64, img.w as f64); + let ratio = if w.min(h) < DET_LIMIT_SIDE_LEN as f64 { + DET_LIMIT_SIDE_LEN as f64 / w.min(h) + } else { + 1.0 + }; + let mut rw = py_round(py_round(w * ratio) / 32.0) * 32.0; + let mut rh = py_round(py_round(h * ratio) / 32.0) * 32.0; + rw = rw.max(32.0); + rh = rh.max(32.0); + let resized = img.resize(rw as usize, rh as usize); + + // normalize (x/255 - 0.5) / 0.5 → CHW + let (rw, rh) = (rw as usize, rh as usize); + let mut input = vec![0f32; 3 * rw * rh]; + for y in 0..rh { + for x in 0..rw { + let p = resized.px(x, y); + let i = y * rw + x; + input[i] = (p[0] as f32 / 255.0 - DET_MEAN_STD) / DET_MEAN_STD; + input[rw * rh + i] = (p[1] as f32 / 255.0 - DET_MEAN_STD) / DET_MEAN_STD; + input[2 * rw * rh + i] = (p[2] as f32 / 255.0 - DET_MEAN_STD) / DET_MEAN_STD; + } + } + let tensor = Tensor::from_array(([1, 3, rh, rw], input)).map_err(ort_err)?; + let outputs: SessionOutputs = self.det.run(ort::inputs!["x" => tensor]).map_err(ort_err)?; + let arr = outputs["fetch_name_0"] + .try_extract_array::() + .map_err(ort_err)?; + let shape = arr.shape().to_vec(); + let pred: Vec = arr.iter().copied().collect(); + if std::env::var("EAT_DUMP_PRED").is_ok() { + let pw32 = shape[3] as u32; + let ph32 = shape[2] as u32; + let mut hdr = format!( + "{{'descr': ' = vec![0x93, b'N', b'U', b'M', b'P', b'Y', 1, 0]; + out.extend_from_slice(&(hdr.len() as u16 + 1).to_le_bytes()); + // note: total header length includes padding already; simpler: rebuild canonical + let mut out: Vec = vec![0x93, b'N', b'U', b'M', b'P', b'Y', 1, 0]; + let mut h = format!("{{'descr': ' Result, OcrError> { + if img_bgr.w < 2 || img_bgr.h < 2 { + return Ok(Vec::new()); + } + // 1) PP-OCR base pass (det + rec + flip-fix, all local & fast) + let base = self.run(img_bgr)?; + if base.is_empty() { + return Ok(base); + } + + // 2) single stacked VLM request over the base line boxes + let crops: Vec = base + .iter() + .map(|l| { + img_bgr.perspective_crop([ + Pt::new(l.box_[0].0, l.box_[0].1), + Pt::new(l.box_[1].0, l.box_[1].1), + Pt::new(l.box_[2].0, l.box_[2].1), + Pt::new(l.box_[3].0, l.box_[3].1), + ]) + }) + .collect(); + let vlm_lines = match vlm.read_stack(&crops) { + Ok(l) => l, + Err(e) => { + eat_core::logging::warn(&format!(" VLM 校正失敗({})— 使用 PP-OCR 結果", e)); + return Ok(base); + } + }; + eat_core::logging::info(&format!( + " VLM 校正:{} 行回傳(PP-OCR 基準 {} 行),對齊中 …", + vlm_lines.len(), + base.len() + )); + + // 3) greedy alignment by normalized text similarity + let mut out = base.clone(); + let mut used = vec![false; vlm_lines.len()]; + let mut improved = 0usize; + for line in &mut out { + let mut best: Option<(f64, usize)> = None; + for (j, vl) in vlm_lines.iter().enumerate() { + if used[j] { + continue; + } + let sim = text_similarity(&line.text, vl); + if best.map(|(b, _)| sim > b).unwrap_or(true) { + best = Some((sim, j)); + } + } + if let Some((sim, j)) = best { + if sim >= 0.35 { + used[j] = true; + line.text = vlm_lines[j].clone(); + line.score = 1.0; + improved += 1; + } + } + } + eat_core::logging::info(&format!(" VLM 校正取代 {} / {} 行", improved, base.len())); + Ok(out) + } + + // ── recognition ───── // ── recognition ─────────────────────────────────────────────────────────── + + fn recognize(&mut self, crops: &[Img]) -> Result<(Vec, Vec), OcrError> { + if crops.is_empty() { + return Ok((Vec::new(), Vec::new())); + } + // sort by aspect ratio (w/h) ascending for batching efficiency + let mut indices: Vec = (0..crops.len()).collect(); + indices.sort_by(|&a, &b| { + let ra = crops[a].w as f32 / crops[a].h as f32; + let rb = crops[b].w as f32 / crops[b].h as f32; + ra.partial_cmp(&rb).unwrap() + }); + + let mut texts: Vec = vec![String::new(); crops.len()]; + let mut scores: Vec = vec![0.0; crops.len()]; + + for beg in (0..indices.len()).step_by(REC_BATCH) { + let batch_idx = &indices[beg..(beg + REC_BATCH).min(indices.len())]; + // per-batch dynamic width + let mut max_ratio = REC_IMAGE_W as f32 / REC_IMAGE_H as f32; // 6.667 + for &i in batch_idx { + let r = crops[i].w as f32 / crops[i].h as f32; + max_ratio = max_ratio.max(r); + } + let img_w = (REC_IMAGE_H as f32 * max_ratio) as usize; + let mut batch: Vec = Vec::with_capacity(batch_idx.len() * 3 * REC_IMAGE_H * img_w); + for &i in batch_idx { + batch.extend_from_slice(&rec_norm(&crops[i], img_w)); + } + let tensor = Tensor::from_array(([batch_idx.len(), 3, REC_IMAGE_H, img_w], batch)) + .map_err(ort_err)?; + let outputs = self.rec.run(ort::inputs!["x" => tensor]).map_err(ort_err)?; + let preds_arr = outputs["fetch_name_0"] + .try_extract_array::() + .map_err(ort_err)?; + let shape = preds_arr.shape().to_vec(); + let preds: Vec = preds_arr.iter().copied().collect(); + let n = shape[0] as usize; + let t = shape[1] as usize; + let c = shape[2] as usize; + debug_assert_eq!(c, self.character.len()); + + for row in 0..n { + let (txt, score) = ctc_decode(&preds[row * t * c..(row + 1) * t * c], t, c, &self.character); + let orig = batch_idx[row]; + texts[orig] = txt; + scores[orig] = score; + } + } + Ok((texts, scores)) + } +} + +// ── normalization helpers ───────────────────────────────────────────────────── + +/// rec resize_norm: h=48 keep-ratio (cap w=batch_w), normalize, zero-pad. +fn rec_norm(img: &Img, batch_w: usize) -> Vec { + let ratio = img.w as f32 / img.h as f32; + let resized_w = ((((REC_IMAGE_H as f32 * ratio).ceil() as usize).min(batch_w)).max(1)).min(batch_w); + let resized = img.resize(resized_w, REC_IMAGE_H); + let mut out = vec![0f32; 3 * REC_IMAGE_H * batch_w]; + for y in 0..REC_IMAGE_H { + for x in 0..resized_w { + let p = resized.px(x, y); + let i = y * batch_w + x; + out[i] = (p[0] as f32 / 255.0 - 0.5) / 0.5; + out[REC_IMAGE_H * batch_w + i] = (p[1] as f32 / 255.0 - 0.5) / 0.5; + out[2 * REC_IMAGE_H * batch_w + i] = (p[2] as f32 / 255.0 - 0.5) / 0.5; + } + } + out +} + +/// Greedy CTC decode: argmax per step, collapse repeats, drop blank (index 0). +/// Confidence = mean of the kept steps' probabilities (rounded to 5 dp). +fn ctc_decode(preds: &[f32], t: usize, c: usize, character: &[String]) -> (String, f32) { + let mut text = String::new(); + let mut kept_probs: Vec = Vec::new(); + let mut prev_idx: isize = -1; + for step in 0..t { + let row = &preds[step * c..(step + 1) * c]; + let (mut best_i, mut best_p) = (0usize, f32::MIN); + for (i, &p) in row.iter().enumerate() { + if p > best_p { + best_p = p; + best_i = i; + } + } + if best_i as isize == prev_idx { + continue; // collapse repeats + } + prev_idx = best_i as isize; + if best_i == 0 { + continue; // blank + } + text.push_str(&character[best_i]); + kept_probs.push((best_p * 100000.0).round() / 100000.0); + } + let score = if kept_probs.is_empty() { + 0.0 + } else { + (kept_probs.iter().sum::() / kept_probs.len() as f32 * 100000.0).round() / 100000.0 + }; + (text, score) +} + +/// Port of DBPostProcess.box_score_fast: mean det probability inside the +/// polygon (rasterized mask over the AABB). +fn box_score_fast(pred: &[f32], w: usize, h: usize, poly: &[Pt]) -> f32 { + let xmin = poly.iter().map(|p| p.x.floor()).fold(f64::INFINITY, f64::min).clamp(0.0, (w - 1) as f64) as usize; + let xmax = poly.iter().map(|p| p.x.ceil()).fold(f64::NEG_INFINITY, f64::max).clamp(0.0, (w - 1) as f64) as usize; + let ymin = poly.iter().map(|p| p.y.floor()).fold(f64::INFINITY, f64::min).clamp(0.0, (h - 1) as f64) as usize; + let ymax = poly.iter().map(|p| p.y.ceil()).fold(f64::NEG_INFINITY, f64::max).clamp(0.0, (h - 1) as f64) as usize; + let mut sum = 0f32; + let mut count = 0u32; + for y in ymin..=ymax { + for x in xmin..=xmax { + if point_in_polygon(x as f64 + 0.5, y as f64 + 0.5, poly) { + sum += pred[y * w + x]; + count += 1; + } + } + } + if count == 0 { + 0.0 + } else { + sum / count as f32 + } +} + +/// 8-connected component labeling (iterative flood fill). +fn connected_components(mask: &[u8], w: usize, h: usize) -> Vec> { + let mut visited = vec![false; mask.len()]; + let mut comps = Vec::new(); + for start in 0..mask.len() { + if visited[start] || mask[start] == 0 { + continue; + } + let mut comp = Vec::new(); + let mut stack = vec![start]; + visited[start] = true; + while let Some(i) = stack.pop() { + let (x, y) = (i % w, i / w); + comp.push((x, y)); + for dy in -1i64..=1 { + for dx in -1i64..=1 { + if dx == 0 && dy == 0 { + continue; + } + let nx = x as i64 + dx; + let ny = y as i64 + dy; + if nx < 0 || ny < 0 || nx >= w as i64 || ny >= h as i64 { + continue; + } + let j = (ny as usize) * w + nx as usize; + if !visited[j] && mask[j] != 0 { + visited[j] = true; + stack.push(j); + } + } + } + } + comps.push(comp); + } + comps +} + +/// DB post-process (port of rapidocr DBPostProcess with the v6 config): +/// threshold → dilate → components → min-area rect → score → unclip → scale. +pub fn db_postprocess( + pred: &[f32], + pred_w: usize, + pred_h: usize, + img_w: usize, + img_h: usize, +) -> Vec<[(f64, f64); 4]> { + let bitmap: Vec = pred.iter().map(|&p| if p > DET_THRESH { 1 } else { 0 }).collect(); + let mask = if USE_DILATION { + dilate2x2(&bitmap, pred_w, pred_h) + } else { + bitmap + }; + + let comps = connected_components(&mask, pred_w, pred_h); + + let mut boxes: Vec<[(f64, f64); 4]> = Vec::new(); + let mut taken = 0usize; + for comp in comps { + if taken >= MAX_CANDIDATES { + break; + } + taken += 1; + if comp.len() < 3 { + continue; + } + let pts: Vec = comp.iter().map(|&(x, y)| Pt::new(x as f64, y as f64)).collect(); + let (mini, sside) = get_mini_boxes(&pts); + if sside < MIN_SIZE { + continue; + } + let score = box_score_fast(pred, pred_w, pred_h, &mini); + if score < BOX_THRESH { + continue; + } + let expanded = geom::unclip_rect(&mini, UNCLIP_RATIO); + let (box_pts, sside2) = get_mini_boxes(&expanded); + if sside2 < MIN_SIZE + 2.0 { + continue; + } + let sx = img_w as f64 / pred_w as f64; + let sy = img_h as f64 / pred_h as f64; + let scaled: Vec = box_pts.iter().map(|p| Pt::new(p.x * sx, p.y * sy)).collect(); + let mut ordered = order_points_clockwise([scaled[0], scaled[1], scaled[2], scaled[3]]); + for p in ordered.iter_mut() { + p.x = p.x.clamp(0.0, (img_w - 1) as f64).round(); + p.y = p.y.clamp(0.0, (img_h - 1) as f64).round(); + } + let w_len = ordered[1].sub(ordered[0]).norm(); + let h_len = ordered[0].sub(ordered[3]).norm(); + if w_len <= 3.0 || h_len <= 3.0 { + continue; + } + boxes.push([ + (ordered[0].x, ordered[0].y), + (ordered[1].x, ordered[1].y), + (ordered[2].x, ordered[2].y), + (ordered[3].x, ordered[3].y), + ]); + } + boxes +} + +impl RapidOcr { +} + +/// 1 - levenshtein/max_len,正規化文字相似度(對齊用)。 +fn text_similarity(a: &str, b: &str) -> f64 { + let a: Vec = a.to_lowercase().chars().collect(); + let b: Vec = b.to_lowercase().chars().collect(); + let (n, m) = (a.len(), b.len()); + if n == 0 && m == 0 { + return 1.0; + } + let mut prev: Vec = (0..=m).collect(); + let mut cur = vec![0usize; m + 1]; + for i in 1..=n { + cur[0] = i; + for j in 1..=m { + let cost = if a[i - 1] == b[j - 1] { 0 } else { 1 }; + cur[j] = (prev[j] + 1).min(cur[j - 1] + 1).min(prev[j - 1] + cost); + } + std::mem::swap(&mut prev, &mut cur); + } + 1.0 - prev[m] as f64 / n.max(m) as f64 +} + +fn bgr_to_rgb(img: &Img) -> Img { + let mut data = img.data.clone(); + for px in data.chunks_exact_mut(3) { + px.swap(0, 2); + } + Img { w: img.w, h: img.h, data } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn min_area_rect_axis_aligned() { + let pts: Vec = [(0.0, 0.0), (10.0, 0.0), (10.0, 4.0), (0.0, 4.0)] + .iter() + .map(|&(x, y)| Pt::new(x, y)) + .collect(); + let (corners, w, h) = geom::min_area_rect(&pts); + assert!((w - 10.0).abs() < 1e-6 && (h - 4.0).abs() < 1e-6, "w={} h={}", w, h); + assert_eq!(corners.len(), 4); + } + + #[test] + fn min_area_rect_rotated() { + // a thin 45° line: min-area rect is degenerate (w=L√2? no — w≈L*1 along, h≈0) + let pts: Vec = [(0.0, 0.0), (10.0, 10.0), (5.0, 5.0)] + .iter() + .map(|&(x, y)| Pt::new(x, y)) + .collect(); + let (_, w, h) = geom::min_area_rect(&pts); + // diagonal length ~14.14, perpendicular extent ~0 + assert!(w.max(h) > 14.0 && w.min(h) < 0.1, "w={} h={}", w, h); + } + + #[test] + fn unclip_grows_rect_by_expected_dist() { + // 100×20 rect: area=2000, perimeter=240 → dist = 2000*1.6/240 ≈ 13.33 + let pts: Vec = [(0.0, 0.0), (100.0, 0.0), (100.0, 20.0), (0.0, 20.0)] + .iter() + .map(|&(x, y)| Pt::new(x, y)) + .collect(); + let out = geom::unclip_rect(&pts, 1.6); + let w = out[1].sub(out[0]).norm(); + let h = out[0].sub(out[3]).norm(); + assert!((w - (100.0 + 2.0 * 13.333)).abs() < 0.5, "w={}", w); + assert!((h - (20.0 + 2.0 * 13.333)).abs() < 0.5, "h={}", h); + } + + #[test] + fn ctc_decode_collapses_and_drops_blank() { + // vocab: blank, a, b, space + let character = vec!["blank".into(), "a".into(), "b".into(), " ".into()]; + // steps: a a blank b b a → "a" then "b" then "a" = "aba" + let mut preds = vec![0f32; 6 * 4]; + let set = |p: &mut Vec, step: usize, idx: usize| { + for c in 0..4 { + p[step * 4 + c] = 0.1; + } + p[step * 4 + idx] = 0.9; + }; + set(&mut preds, 0, 1); // a + set(&mut preds, 1, 1); // a (repeat) + set(&mut preds, 2, 0); // blank + set(&mut preds, 3, 2); // b + set(&mut preds, 4, 2); // b (repeat) + set(&mut preds, 5, 1); // a (new after b) + let (text, score) = ctc_decode(&preds, 6, 4, &character); + assert_eq!(text, "aba"); + assert!((score - 0.9).abs() < 1e-6); + } + + #[test] + fn py_round_bankers() { + assert_eq!(py_round(62.5), 62.0); + assert_eq!(py_round(63.5), 64.0); + assert_eq!(py_round(44.15625), 44.0); + assert_eq!(py_round(0.5), 0.0); + } + + #[test] + fn dilate_grows_one_pixel_right_down() { + // single pixel at (2,2) in 5×5 → covers (2,2),(3,2),(2,3),(3,3) + let mut mask = vec![0u8; 25]; + mask[2 * 5 + 2] = 1; + let out = dilate2x2(&mask, 5, 5); + assert_eq!(&out[2 * 5 + 2..2 * 5 + 4], &[1, 1]); + assert_eq!(&out[3 * 5 + 2..3 * 5 + 4], &[1, 1]); + assert_eq!(out[1 * 5 + 1], 0); + assert_eq!(out.iter().sum::(), 4); + } +} diff --git a/eat-rs/crates/eat-ocr/tests/parity.rs b/eat-rs/crates/eat-ocr/tests/parity.rs new file mode 100644 index 0000000..caaeb02 --- /dev/null +++ b/eat-rs/crates/eat-ocr/tests/parity.rs @@ -0,0 +1,183 @@ +//! Parity tests: Rust eat-ocr vs the Python RapidOCR golden capture +//! (same PP-OCRv6 ONNX models, same 300-DPI render of the handwritten test). + +use eat_ocr::imgops::Img; +use eat_ocr::{RapidOcr, OcrError}; + +fn fixtures() -> std::path::PathBuf { + std::path::Path::new(env!("CARGO_MANIFEST_DIR")) + .join("../../tests/fixtures") + .canonicalize() + .unwrap() +} + +fn load_ocr() -> Result { + let dir = fixtures().join("../../vendor/ppocr"); + let dir = std::fs::canonicalize(&dir).unwrap_or(dir); + std::env::set_var("EAT_PPROCR_DIR", &dir); + RapidOcr::load() +} + +fn load_rgb(path: &std::path::Path) -> Img { + let img = image::open(path).expect("decode png"); + let rgb = img.to_rgb8(); + Img::from_rgb(rgb.width() as usize, rgb.height() as usize, &rgb) +} + +#[derive(serde::Deserialize)] +struct GoldenLine { + pub box_: Vec>, // serde rename below via alias + pub text: String, + pub score: f32, +} + +fn levenshtein(a: &str, b: &str) -> usize { + let a: Vec = a.chars().collect(); + let b: Vec = b.chars().collect(); + let (n, m) = (a.len(), b.len()); + let mut prev: Vec = (0..=m).collect(); + let mut cur = vec![0usize; m + 1]; + for i in 1..=n { + cur[0] = i; + for j in 1..=m { + let cost = if a[i - 1] == b[j - 1] { 0 } else { 1 }; + cur[j] = (prev[j] + 1).min(cur[j - 1] + 1).min(prev[j - 1] + cost); + } + std::mem::swap(&mut prev, &mut cur); + } + prev[m] +} + +fn similarity(a: &str, b: &str) -> f64 { + let max = a.chars().count().max(b.chars().count()).max(1); + 1.0 - levenshtein(a, b) as f64 / max as f64 +} + +fn poly_iou(a: &[(f64, f64); 4], b: &Vec>) -> f64 { + // AABB IoU is sufficient for positional parity checking + let rect = |pts: &[(f64, f64)]| { + let xs: Vec = pts.iter().map(|p| p.0).collect(); + let ys: Vec = pts.iter().map(|p| p.1).collect(); + ( + xs.iter().cloned().fold(f64::INFINITY, f64::min), + ys.iter().cloned().fold(f64::INFINITY, f64::min), + xs.iter().cloned().fold(f64::NEG_INFINITY, f64::max), + ys.iter().cloned().fold(f64::NEG_INFINITY, f64::max), + ) + }; + let a2: Vec<(f64, f64)> = b.iter().map(|p| (p[0], p[1])).collect(); + let (ax0, ay0, ax1, ay1) = rect(a); + let (bx0, by0, bx1, by1) = rect(&a2); + let ix = (ax1.min(bx1) - ax0.max(bx0)).max(0.0); + let iy = (ay1.min(by1) - ay0.max(by0)).max(0.0); + let inter = ix * iy; + let union = (ax1 - ax0) * (ay1 - ay0) + (bx1 - bx0) * (by1 - by0) - inter; + if union <= 0.0 { + 0.0 + } else { + inter / union + } +} + +#[test] +fn handwritten_parity_vs_python_rapidocr() { + let mut ocr = load_ocr().expect("load models"); + + // golden (serde: Python used "box" as the key) + #[derive(serde::Deserialize)] + struct GoldenLineRaw { + r#box: Vec>, + text: String, + score: f32, + } + let golden_raw: Vec = serde_json::from_str( + &std::fs::read_to_string(fixtures().join("hw-golden.json")).unwrap(), + ) + .unwrap(); + let golden: Vec = golden_raw + .into_iter() + .map(|g| GoldenLine { + box_: g.r#box, + text: g.text, + score: g.score, + }) + .collect(); + let n_golden = golden.len(); + assert!(n_golden >= 20, "golden suspiciously small: {}", n_golden); + + let img = load_rgb(&fixtures().join("hw-test-p1.png")); + let t0 = std::time::Instant::now(); + let lines = ocr.run(&img).expect("ocr run"); + eprintln!( + "rust ocr: {} lines in {:.1}s (python golden: {})", + lines.len(), + t0.elapsed().as_secs_f32(), + n_golden + ); + + // 1. line count within ±20% + let ratio = lines.len() as f64 / n_golden as f64; + assert!( + ratio > 0.8 && ratio < 1.2, + "line count drifted: rust={} golden={} ratio={:.2}", + lines.len(), + n_golden, + ratio + ); + + // 2. text match: every golden line should find a Rust counterpart with + // similarity ≥ 0.8 (exact text expected for most; CTC + identical + // models should agree closely) + let mut exact = 0usize; + let mut fuzzy = 0usize; + let mut missed: Vec<&str> = Vec::new(); + for g in &golden { + let mut best = 0.0; + for l in &lines { + let s = similarity(&g.text, &l.text); + if s > best { + best = s; + } + } + if best >= 0.999 { + exact += 1; + } else if best >= 0.8 { + fuzzy += 1; + } else { + missed.push(&g.text); + } + } + let matched = exact + fuzzy; + eprintln!( + "text parity: {} exact, {} fuzzy, {} missed (of {})", + exact, + fuzzy, + missed.len(), + n_golden + ); + assert!( + matched as f64 / n_golden as f64 >= 0.75, + "text parity too low: {}/{} matched; missed examples: {:?}", + matched, + n_golden, + &missed[..missed.len().min(5)] + ); + + // 3. positional parity: matched-by-text pairs must overlap (IoU ≥ 0.5) + let mut ious = Vec::new(); + for g in &golden { + let mut best: Option<(f64, &eat_ocr::OcrLine)> = None; + for l in &lines { + let s = similarity(&g.text, &l.text); + if s >= 0.8 && best.map(|(bs, _)| s > bs).unwrap_or(true) { + best = Some((s, l)); + } + } + if let Some((_, l)) = best { + ious.push(poly_iou(&l.box_, &g.box_)); + } + } + let avg_iou = ious.iter().sum::() / ious.len().max(1) as f64; + eprintln!("positional parity: avg IoU {:.3} over {} pairs", avg_iou, ious.len()); + assert!(avg_iou >= 0.5, "avg IoU too low: {:.3}", avg_iou); +} diff --git a/eat-rs/crates/eat-pdf/Cargo.toml b/eat-rs/crates/eat-pdf/Cargo.toml new file mode 100644 index 0000000..21285e2 --- /dev/null +++ b/eat-rs/crates/eat-pdf/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "eat-pdf" +version.workspace = true +edition.workspace = true +license.workspace = true + +[dependencies] +eat-core = { path = "../eat-core" } +pdfium-render = "0.9" + +[dev-dependencies] +serde_json = { workspace = true } diff --git a/eat-rs/crates/eat-pdf/src/lib.rs b/eat-rs/crates/eat-pdf/src/lib.rs new file mode 100644 index 0000000..a6b7bd7 --- /dev/null +++ b/eat-rs/crates/eat-pdf/src/lib.rs @@ -0,0 +1,672 @@ +//! eat-pdf — PDF layer (Rust port of ocr_engine.py's digital path + annotator.py). +//! +//! Uses pdfium (Chrome's PDF engine) where the Python pipeline used PyMuPDF. +//! Coordinate convention matches the Python pipeline's JSON schema: all word +//! boxes are in PDF point-space with origin at the TOP-LEFT of the page; +//! pdfium's native bottom-up coordinates are flipped at this boundary. + +use eat_core::languages::{is_cjk, normalize}; +use eat_core::nlp::EatError; +use eat_core::words::{Pages, Word}; +use pdfium_render::prelude::*; +use std::path::{Path, PathBuf}; + +// ── tunables (ported from ocr_engine.py / annotator.py) ──────────────────── +pub const DIGITAL_THRESHOLD: usize = 15; + +/// Per-page extraction result: the words found and how they were found. +#[derive(Debug)] +pub struct PageExtract { + pub words: Vec, + /// true when the page fell below DIGITAL_THRESHOLD native words and would + /// have gone to RapidOCR in the Python pipeline. (Scanned-page OCR is + /// phase 2 of the Rust port; such pages currently yield no words.) + pub scanned: bool, +} + +#[derive(Debug)] +pub enum PdfError { + Bind(String), + Load(String), + Save(String), + Internal(String), +} + +impl std::fmt::Display for PdfError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + PdfError::Bind(m) => write!(f, "pdfium bind failed: {}", m), + PdfError::Load(m) => write!(f, "PDF load failed: {}", m), + PdfError::Save(m) => write!(f, "PDF save failed: {}", m), + PdfError::Internal(m) => write!(f, "{}", m), + } + } +} +impl std::error::Error for PdfError {} + +fn internal(e: PdfiumError) -> PdfError { + PdfError::Internal(e.to_string()) +} + +/// One bound pdfium instance per process (pdfium-render initializes bindings +/// exactly once). Cheap to reuse for extraction and annotation. +pub struct EatPdf { + pdfium: Pdfium, +} + +impl EatPdf { + /// Bind to the pdfium dynamic library, trying, in order: + /// 1. `$EAT_PDFIUM_LIB` (absolute path to libpdfium) + /// 2. `libpdfium` next to the running executable (installed-app layout) + /// 3. `vendor/pdfium-macos-arm64/lib/libpdfium.dylib` under the workspace + pub fn bind() -> Result { + let mut candidates: Vec = Vec::new(); + if let Ok(p) = std::env::var("EAT_PDFIUM_LIB") { + candidates.push(PathBuf::from(p)); + } + if let Ok(exe) = std::env::current_exe() { + if let Some(dir) = exe.parent() { + candidates.push(dir.join(pdfium_platform_dylib_name())); + candidates.push(dir.join("lib").join(pdfium_platform_dylib_name())); + } + } + // dev workspace layout: eat-rs/vendor/pdfium-macos-arm64/lib/libpdfium.dylib + if let Ok(manifest) = std::env::var("CARGO_MANIFEST_DIR") { + candidates.push( + Path::new(&manifest) + .join("../../vendor/pdfium-macos-arm64/lib") + .join(pdfium_platform_dylib_name()), + ); + } + let mut last = String::from("no candidate paths"); + for c in &candidates { + if c.exists() { + match Pdfium::bind_to_library(c) { + Ok(b) => return Ok(EatPdf { pdfium: Pdfium::new(b) }), + Err(e) => last = format!("{} ({})", e, c.display()), + } + } else { + last = format!("not found: {}", c.display()); + } + } + Err(PdfError::Bind(last)) + } + + // ── digital word extraction (port of OCREngine._extract_digital) ──────── + + fn extract_page_words(page: &PdfPage) -> Result, PdfError> { + let page_h = page.height().value; + let mut words: Vec = Vec::new(); + let mut text = String::new(); + let mut x0 = f32::MAX; + let mut y0 = f32::MAX; + let mut x1 = f32::MIN; + let mut y1 = f32::MIN; + + fn flush( + text: &mut String, + x0: &mut f32, + y0: &mut f32, + x1: &mut f32, + y1: &mut f32, + words: &mut Vec, + page_h: f32, + ) { + let t = text.trim().to_string(); + if !t.is_empty() && *x1 > *x0 { + // top-left-origin box: flip pdfium's bottom-up Y + let top = page_h - *y1; + let bottom = page_h - *y0; + words.push(Word { + text: t, + box_: [ + [*x0 as f64, top as f64], + [*x1 as f64, top as f64], + [*x1 as f64, bottom as f64], + [*x0 as f64, bottom as f64], + ], + }); + } + text.clear(); + *x0 = f32::MAX; + *y0 = f32::MAX; + *x1 = f32::MIN; + *y1 = f32::MIN; + } + + let text_page = page.text().map_err(internal)?; + let all_chars = text_page.chars(); + for ch in all_chars.iter() { + match ch.unicode_char() { + Some(c) if !c.is_whitespace() => { + if let Ok(b) = ch.tight_bounds() { + x0 = x0.min(b.left().value); + x1 = x1.max(b.right().value); + y0 = y0.min(b.bottom().value); + y1 = y1.max(b.top().value); + } + text.push(c); + } + _ => flush(&mut text, &mut x0, &mut y0, &mut x1, &mut y1, &mut words, page_h), + } + } + flush(&mut text, &mut x0, &mut y0, &mut x1, &mut y1, &mut words, page_h); + Ok(words) + } + + /// Port of OCREngine.process_page's dispatch: native extraction, digital + /// threshold + low-quality heuristic. Scanned pages return `scanned: true` + /// with zero words (RapidOCR path is phase 2 of the Rust port). + pub fn extract_pdf(&self, path: &str) -> Result, PdfError> { + let doc = self + .pdfium + .load_pdf_from_file(path, None) + .map_err(|e| PdfError::Load(format!("{} ({})", e, path)))?; + let count = doc.pages().len(); + let mut out = Vec::new(); + for i in 0..count { + let page = doc.pages().get(i).map_err(internal)?; + let words = Self::extract_page_words(&page)?; + let n = words.len(); + let mut scanned = false; + if n >= DIGITAL_THRESHOLD { + // guard: pages with furniture only (page numbers, headers) + if n < DIGITAL_THRESHOLD * 2 { + let short = words + .iter() + .filter(|w| { + w.text.chars().count() <= 3 + || !w.text.is_empty() && w.text.chars().all(|c| c.is_ascii_digit()) + }) + .count(); + let ratio = short as f64 / n as f64; + if ratio > 0.6 { + scanned = true; + } + } + } else { + scanned = true; + } + out.push(PageExtract { words, scanned }); + } + Ok(out) + } + + pub fn pdfium(&self) -> &Pdfium { + &self.pdfium + } + + /// Render a page to RGB bytes at the given DPI (for the scanned-page OCR + /// path — the Rust equivalent of ocr_engine's `page.get_pixmap` step). + pub fn render_page_rgb( + &self, + path: &str, + page_idx: i32, + dpi: f32, + ) -> Result<(u32, u32, Vec), PdfError> { + let doc = self + .pdfium + .load_pdf_from_file(path, None) + .map_err(|e| PdfError::Load(format!("{} ({})", e, path)))?; + let page = doc.pages().get(page_idx).map_err(internal)?; + let config = PdfRenderConfig::new().scale_page_by_factor(dpi / 72.0); + let bitmap = page.render_with_config(&config).map_err(internal)?; + let img = bitmap.as_image().map_err(internal)?.to_rgb8(); + Ok((img.width(), img.height(), img.into_raw())) + } +} + +// ── annotator (port of annotator.py — sidebar tags) ───────────────────────── + +// visual constants (identical values to annotator.py) +const HIGHLIGHT_OPACITY: f32 = 0.22; +const UNDERLINE_WIDTH: f32 = 1.2; +const BORDER_WIDTH: f32 = 0.5; +const SIDEBAR_W: f32 = 72.0; +const SIDEBAR_GUTTER: f32 = 4.0; +const SIDEBAR_PAD_TOP: f32 = 4.0; +const TAG_H: f32 = 9.0; +const TAG_GAP: f32 = 2.0; +const TAG_FONT_SIZE: f32 = 6.0; +const TAG_PAD_X: f32 = 3.0; +const LEGEND_W: f32 = 62.0; +const LEGEND_H: f32 = 9.0; +const LEGEND_GAP: f32 = 2.0; +const LEGEND_MARGIN_T: f32 = 4.0; + +const LEGEND_ITEMS: [(&str, (u8, u8, u8)); 3] = [ + ("Spelling", (255, 68, 68)), + ("Grammar", (255, 140, 0)), + ("Semantic", (30, 144, 255)), +]; + +fn color_for(kind: &str) -> (u8, u8, u8) { + match kind { + "spelling" => (255, 68, 68), // (1.0, 0.267, 0.267) + "semantic" => (30, 144, 255), // (0.118, 0.565, 1.0) + _ => (255, 140, 0), // grammar (1.0, 0.549, 0.0) + } +} + +/// Axis-aligned rect in TOP-LEFT origin coordinates. +#[derive(Debug, Clone, Copy, PartialEq)] +struct RectTd { + x0: f32, + y0: f32, + x1: f32, + y1: f32, +} + +impl RectTd { + fn from_word(w: &Word) -> Self { + let (x0, y0, x1, y1) = w.rect(); + RectTd { x0: x0 as f32, y0: y0 as f32, x1: x1 as f32, y1: y1 as f32 } + } + fn union(&self, o: &RectTd) -> RectTd { + RectTd { + x0: self.x0.min(o.x0), + y0: self.y0.min(o.y0), + x1: self.x1.max(o.x1), + y1: self.y1.max(o.y1), + } + } + fn center_y(&self) -> f32 { + (self.y0 + self.y1) / 2.0 + } +} + +/// Python `re.sub(r"^[^\w]+|[^\w]+$", "", token).lower()` — \w is unicode-aware. +fn clean_token(token: &str) -> String { + let is_word = |c: char| c.is_alphanumeric() || c == '_'; + token.trim_matches(|c: char| !is_word(c)).to_lowercase() +} + +/// Port of Annotator._group_by_line: merge rects whose vertical centres are +/// within `tol` points; returns one merged rect per line segment. +fn group_by_line(rects: &[RectTd], tol: f32) -> Vec { + if rects.is_empty() { + return Vec::new(); + } + let mut groups: Vec = Vec::new(); + let mut cur: Vec = vec![rects[0]]; + for r in &rects[1..] { + let prev_cy = cur.last().unwrap().center_y(); + if (r.center_y() - prev_cy).abs() <= tol { + cur.push(*r); + } else { + let merged = cur.iter().skip(1).fold(cur[0], |acc, x| acc.union(x)); + groups.push(merged); + cur = vec![*r]; + } + } + let merged = cur.iter().skip(1).fold(cur[0], |acc, x| acc.union(x)); + groups.push(merged); + groups +} + +/// Port of Annotator._find_spans_ocr: one rect per line segment of each match. +fn find_spans_ocr(target: &str, page_words: &[Word]) -> Vec { + let target_tokens: Vec = target + .split_whitespace() + .filter(|t| !t.trim().is_empty()) + .map(clean_token) + .filter(|t| !t.is_empty()) + .collect(); + if target_tokens.is_empty() { + return Vec::new(); + } + let n = target_tokens.len(); + let cleaned: Vec = page_words.iter().map(|w| clean_token(&w.text)).collect(); + let mut all_rects = Vec::new(); + let mut i = 0usize; + while i + n <= cleaned.len() { + if cleaned[i..i + n] == target_tokens[..] { + let word_rects: Vec = + (0..n).map(|j| RectTd::from_word(&page_words[i + j])).collect(); + all_rects.extend(group_by_line(&word_rects, 4.0)); + i += n; + } else { + i += 1; + } + } + all_rects +} + +pub struct Annotator { + pub language: String, + cjk: bool, +} + +/// Locate the bundled CJK font (Noto Sans CJK TC, covers zh-Hant/zh-Hans/ja/ko +/// glyph ranges). Resolution: `$EAT_CJK_FONT` → `fonts/` beside the executable +/// → workspace `vendor/fonts/` (dev layout). +fn cjk_font_path() -> Option { + let mut candidates: Vec = Vec::new(); + if let Ok(p) = std::env::var("EAT_CJK_FONT") { + candidates.push(p.into()); + } + if let Ok(exe) = std::env::current_exe() { + if let Some(dir) = exe.parent() { + candidates.push(dir.join("fonts").join(CJK_FONT_FILE)); + candidates.push(dir.join(CJK_FONT_FILE)); + } + } + if let Ok(manifest) = std::env::var("CARGO_MANIFEST_DIR") { + candidates.push( + std::path::Path::new(&manifest) + .join("../../vendor/fonts") + .join(CJK_FONT_FILE), + ); + } + candidates.into_iter().find(|p| p.exists()) +} + +const CJK_FONT_FILE: &str = "NotoSansCJKtc-Regular.otf"; + +impl Annotator { + pub fn new(language: &str) -> Self { + Annotator { language: normalize(language).to_string(), cjk: is_cjk(language) } + } + + /// Pick the sidebar-tag font for this document: bundled Noto CJK for + /// zh/ja/ko essays (CID-keyed), built-in Helvetica otherwise. Falls back + /// to Helvetica with a warning when the CJK font is not installed. + fn tag_font(&self, doc: &mut PdfDocument) -> PdfFontToken { + if !self.cjk { + return doc.fonts_mut().helvetica(); + } + match cjk_font_path() { + Some(path) => match doc + .fonts_mut() + .load_true_type_from_file(&path, true) + { + Ok(token) => token, + Err(e) => { + eat_core::logging::warn(&format!( + " CJK font load failed ({}) — falling back to Helvetica; \ + CJK suggestion glyphs will not render", + e + )); + doc.fonts_mut().helvetica() + } + }, + None => { + eat_core::logging::warn( + " CJK font not bundled — falling back to Helvetica; \ + CJK suggestion glyphs will not render", + ); + doc.fonts_mut().helvetica() + } + } + } + + fn alpha(c: (u8, u8, u8), opacity: f32) -> PdfColor { + PdfColor::new(c.0, c.1, c.2, (opacity * 255.0).round() as u8) + } + + /// Annotate `input_pdf` with `errors` and save to `output_pdf`. + /// Returns the number of sidebar tags drawn. Port of Annotator.annotate_pdf. + pub fn annotate_pdf( + &self, + pdfium: &Pdfium, + input_pdf: &str, + pages: &Pages, + errors: &[EatError], + output_pdf: &str, + ) -> Result { + let mut doc = pdfium + .load_pdf_from_file(input_pdf, None) + .map_err(|e| PdfError::Load(format!("{} ({})", e, input_pdf)))?; + let font = self.tag_font(&mut doc); + let mut total = 0usize; + let count = doc.pages().len(); + + for page_num in 0..count { + let mut page = doc.pages().get(page_num).map_err(internal)?; + eat_core::logging::info(&format!( + "Annotating page {}/{} …", + page_num + 1, + count + )); + + // page-tagged errors only match on their own page (port behaviour) + let page_errors: Vec<&EatError> = errors + .iter() + .filter(|e| e.page.is_none() || e.page == Some(page_num as u32)) + .collect(); + let empty_words: Vec = Vec::new(); + let page_words: &Vec = pages + .get(page_num as usize) + .unwrap_or(&empty_words); + + total += self.annotate_page(&mut page, &page_words, &page_errors, &font)?; + } + + doc.save_to_file(output_pdf) + .map_err(|e| PdfError::Save(format!("{} ({})", e, output_pdf)))?; + eat_core::logging::info(&format!("Saved → {} ({} annotation(s))", output_pdf, total)); + Ok(total) + } + + fn annotate_page( + &self, + page: &mut PdfPage, + page_words: &[Word], + errors: &[&EatError], + font: &PdfFontToken, + ) -> Result { + let pw = page.width().value; + let ph = page.height().value; + let fy = |y_td: f32| ph - y_td; + let sidebar_x0 = pw - SIDEBAR_W; + let sidebar_x1 = pw - 2.0; + + // sidebar divider (full-height vertical line) + let sx0_td = pw - SIDEBAR_W - SIDEBAR_GUTTER / 2.0; + page.objects_mut() + .create_path_object_line( + PdfPoints::new(sx0_td), + PdfPoints::new(fy(0.0)), + PdfPoints::new(sx0_td), + PdfPoints::new(fy(ph)), + PdfColor::new(217, 217, 217, 255), + PdfPoints::new(0.4), + ) + .map_err(internal)?; + + // legend (colour swatch + label per error type) + let legend_x0 = (pw - SIDEBAR_W) + (SIDEBAR_W - LEGEND_W) / 2.0; + let legend_x1 = legend_x0 + LEGEND_W; + for (i, &(label, c)) in LEGEND_ITEMS.iter().enumerate() { + let y0 = LEGEND_MARGIN_T + i as f32 * (LEGEND_H + LEGEND_GAP); + page.objects_mut() + .create_path_object_rect( + PdfRect::new_from_values(fy(y0 + LEGEND_H), legend_x0, fy(y0), legend_x1), + None, + None, + Some(Self::alpha(c, 0.80)), + ) + .map_err(internal)?; + // Label without the Python version's "■" prefix: the swatch rect + // already carries the colour and Helvetica has no U+25A0 glyph. + page.objects_mut() + .create_text_object( + PdfPoints::new(legend_x0 + 4.0), + PdfPoints::new(fy(y0 + LEGEND_H - 3.0)), + label, + font.clone(), + PdfPoints::new(TAG_FONT_SIZE), + ) + .map_err(internal)? + .set_fill_color(PdfColor::new(255, 255, 255, 255)) + .map_err(internal)?; + } + + let legend_bottom = LEGEND_MARGIN_T + LEGEND_ITEMS.len() as f32 * (LEGEND_H + LEGEND_GAP) + 6.0; + let mut next_tag_y = legend_bottom.max(SIDEBAR_PAD_TOP); + + // Step 1: collect (span_rect, kind, color, label) + let mut pairs: Vec<(RectTd, String, (u8, u8, u8), String)> = Vec::new(); + let mut seen_pos: std::collections::HashSet<(i32, i32, i32, i32)> = + std::collections::HashSet::new(); + + for error in errors { + let kind = if error.kind.is_empty() { "grammar" } else { error.kind.as_str() }; + let color = color_for(kind); + let spans = find_spans_ocr(&error.original, page_words); + if spans.is_empty() { + eat_core::logging::debug(&format!(" No match: {:?}", error.original)); + continue; + } + let char_factor = if self.cjk { 0.95 } else { 0.52 }; + let max_chars = ((SIDEBAR_W - TAG_PAD_X * 2.0) / (TAG_FONT_SIZE * char_factor)) as usize; + let keep = max_chars.saturating_sub(6); + let suggestion_short: String = error.suggestion.chars().take(keep).collect(); + let tag_kind: String = kind + .chars() + .take(3) + .flat_map(char::to_uppercase) + .collect(); + let label = format!("[{}] {}", tag_kind, suggestion_short); + + for span in spans { + let key = ( + span.x0.round() as i32, + span.y0.round() as i32, + span.x1.round() as i32, + span.y1.round() as i32, + ); + if !seen_pos.insert(key) { + continue; + } + pairs.push((span, kind.to_string(), color, label.clone())); + } + } + if pairs.is_empty() { + return Ok(0); + } + + // Step 2: sort top → bottom + pairs.sort_by(|a, b| a.0.center_y().partial_cmp(&b.0.center_y()).unwrap()); + + // Step 3: highlights + underlines + for (span, _, color, _) in &pairs { + page.objects_mut() + .create_path_object_rect( + PdfRect::new_from_values(fy(span.y1), span.x0, fy(span.y0), span.x1), + Some(PdfColor::new(color.0, color.1, color.2, 255)), + Some(PdfPoints::new(BORDER_WIDTH)), + Some(Self::alpha(*color, HIGHLIGHT_OPACITY)), + ) + .map_err(internal)?; + let uy = span.y1 + 1.0; + page.objects_mut() + .create_path_object_line( + PdfPoints::new(span.x0), + PdfPoints::new(fy(uy)), + PdfPoints::new(span.x1), + PdfPoints::new(fy(uy)), + PdfColor::new(color.0, color.1, color.2, 255), + PdfPoints::new(UNDERLINE_WIDTH), + ) + .map_err(internal)?; + } + + // Step 4: sidebar tags (packed top-to-bottom, collision-avoided) + let mut count = 0usize; + for (span, _, color, label) in &pairs { + let ideal_y0 = span.center_y() - TAG_H / 2.0; + let mut tag_y0 = ideal_y0.max(next_tag_y); + let mut tag_y1 = tag_y0 + TAG_H; + if tag_y1 > ph - 2.0 { + tag_y1 = ph - 2.0; + tag_y0 = tag_y1 - TAG_H; + } + page.objects_mut() + .create_path_object_rect( + PdfRect::new_from_values(fy(tag_y1), sidebar_x0 + 2.0, fy(tag_y0), sidebar_x1), + None, + None, + Some(Self::alpha(*color, 0.90)), + ) + .map_err(internal)?; + page.objects_mut() + .create_text_object( + PdfPoints::new(sidebar_x0 + 2.0 + TAG_PAD_X), + PdfPoints::new(fy(tag_y1 - 2.5)), + label.clone(), + font.clone(), + PdfPoints::new(TAG_FONT_SIZE), + ) + .map_err(internal)? + .set_fill_color(PdfColor::new(255, 255, 255, 255)) + .map_err(internal)?; + next_tag_y = tag_y1 + TAG_GAP; + count += 1; + } + Ok(count) + } +} + +fn pdfium_platform_dylib_name() -> &'static str { + #[cfg(target_os = "macos")] + { + "libpdfium.dylib" + } + #[cfg(all(unix, not(target_os = "macos")))] + { + "libpdfium.so" + } + #[cfg(target_os = "windows")] + { + "pdfium.dll" + } +} + +/// Split OCR line-level word entries into per-token word entries, allocating +/// the line box horizontally by character share. Digital-PDF words are +/// already token-level and pass through unchanged (single-token text). +/// +/// Rationale: RapidOCR (and its Python integration in ocr_engine.py) returns +/// one entry per text LINE, so the annotator's token-sequence matcher can +/// never place error tags on scanned essays. Splitting proportionally by +/// characters gives approximate per-word boxes that are accurate enough for +/// underline + sidebar tags on horizontal text. +pub fn split_line_words(pages: &Pages) -> Pages { + pages + .iter() + .map(|words| { + let mut out: Vec = Vec::new(); + for w in words { + let tokens: Vec<&str> = w.text.split_whitespace().collect(); + if tokens.len() <= 1 { + out.push(w.clone()); + continue; + } + let (x0, y0, x1, y1) = w.rect(); + let width = (x1 - x0).max(0.0); + let total_chars: usize = tokens.iter().map(|t| t.chars().count()).sum(); + if total_chars == 0 || width <= 0.0 { + out.push(w.clone()); + continue; + } + let mut cx = x0; + for t in tokens { + let share = width * (t.chars().count() as f64 / total_chars as f64); + let nx = (cx + share).min(x1); + out.push(Word { + text: t.to_string(), + box_: [ + [cx, y0], + [nx, y0], + [nx, y1], + [cx, y1], + ], + }); + cx = nx; + } + } + out + }) + .collect() +} diff --git a/eat-rs/crates/eat-pdf/tests/golden.rs b/eat-rs/crates/eat-pdf/tests/golden.rs new file mode 100644 index 0000000..d3f3c81 --- /dev/null +++ b/eat-rs/crates/eat-pdf/tests/golden.rs @@ -0,0 +1,102 @@ +//! Integration tests against the golden fixtures captured from the Python +//! pipeline (pdfs/standard-test*.pdf/json). + +use eat_core::nlp::EatError; +use eat_core::words::Pages; +use eat_pdf::{Annotator, EatPdf}; +use std::collections::BTreeMap; + +/// Python pipeline's _ocr.json shape: {"0": [ {text, box}, … ], "1": […]} +fn load_golden_ocr() -> Pages { + let raw = + std::fs::read_to_string(fixtures_dir().join("standard-test_ocr.json")).unwrap(); + let map: BTreeMap> = + serde_json::from_str(&raw).unwrap(); + let max_page = map.keys().copied().max().unwrap_or(0); + let mut pages: Pages = Vec::new(); + for i in 0..=max_page { + pages.push(map.get(&i).cloned().unwrap_or_default()); + } + pages +} + +fn fixtures_dir() -> std::path::PathBuf { + std::path::Path::new(env!("CARGO_MANIFEST_DIR")) + .join("../../tests/fixtures") + .canonicalize() + .expect("fixtures dir exists") +} + +fn bind() -> EatPdf { + let lib = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) + .join("../../vendor/pdfium-macos-arm64/lib/libpdfium.dylib"); + std::env::set_var("EAT_PDFIUM_LIB", lib.canonicalize().unwrap()); + // bind_to_library can only run once per process; a second test reuses the + // already-initialized binding through the same candidate path. + EatPdf::bind().expect("pdfium binds") +} + +#[test] +fn extracts_digital_words_from_standard_test() { + let pdf = bind(); + let extracts = pdf + .extract_pdf(&fixtures_dir().join("standard-test.pdf").to_string_lossy()) + .expect("extract"); + assert!(!extracts.is_empty()); + assert!( + !extracts[0].scanned, + "standard-test.pdf is a digital PDF and must not be classified as scanned" + ); + let n = extracts[0].words.len(); + assert!(n >= 15, "expected a digital page to yield ≥15 words, got {}", n); + + // sanity: boxes must be sane top-left coordinates inside a US-Letter page + for w in &extracts[0].words { + let (x0, y0, x1, y1) = w.rect(); + assert!(x1 >= x0 && y1 >= y0, "degenerate box for {:?}", w.text); + assert!(x0 >= -5.0 && x1 <= 620.0, "x out of page range for {:?}", w.text); + assert!(y0 >= -5.0 && y1 <= 800.0, "y out of page range for {:?}", w.text); + } + + // word-count parity with the Python pipeline's golden _ocr.json (±25%: + // pdfium and PyMuPDF may differ slightly on whitespace/token splitting) + let golden = load_golden_ocr(); + let golden_count: usize = golden.iter().map(|p| p.len()).sum(); + let ratio = n as f64 / golden_count as f64; + assert!( + ratio > 0.75 && ratio < 1.33, + "word count drifted from golden: rust={} golden={} ratio={:.2}", + n, + golden_count, + ratio + ); +} + +#[test] +fn annotates_with_golden_ocr_and_errors() { + let pdf = bind(); + let golden_ocr = load_golden_ocr(); + let golden_errors: Vec = serde_json::from_str( + &std::fs::read_to_string(fixtures_dir().join("standard-test_errors.json")).unwrap(), + ) + .unwrap(); + assert!(!golden_errors.is_empty(), "golden errors must be non-empty"); + + let out = std::env::temp_dir().join("eat-rust-golden-annotated.pdf"); + let _ = std::fs::remove_file(&out); + + let ann = Annotator::new("en"); + let tags = ann + .annotate_pdf( + pdf.pdfium(), + &fixtures_dir().join("standard-test.pdf").to_string_lossy(), + &golden_ocr, + &golden_errors, + &out.to_string_lossy(), + ) + .expect("annotate"); + + assert!(tags > 0, "expected at least one sidebar tag from golden errors, got {}", tags); + let meta = std::fs::metadata(&out).expect("annotated pdf written"); + assert!(meta.len() > 1000, "annotated pdf suspiciously small: {} bytes", meta.len()); +} diff --git a/eat-rs/scripts/make-app.sh b/eat-rs/scripts/make-app.sh new file mode 100644 index 0000000..ac51888 --- /dev/null +++ b/eat-rs/scripts/make-app.sh @@ -0,0 +1,47 @@ +#!/bin/bash +# Assemble the macOS .app bundle for Project-EAT (teacher zero-barrier install). +# Usage: scripts/make-app.sh [output-dir] (default: dist/) +set -euo pipefail +cd "$(dirname "$0")/.." +OUT="${1:-dist}" +APP="$OUT/Project-EAT.app" + +cargo build --release -p eat-gui -p eat-cli + +rm -rf "$APP" +mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources" +cp target/release/eat-gui "$APP/Contents/MacOS/Project-EAT" +cp target/release/eat "$APP/Contents/MacOS/" +cp vendor/pdfium-macos-arm64/lib/libpdfium.dylib "$APP/Contents/MacOS/" +mkdir -p "$APP/Contents/MacOS/models" +cp vendor/ppocr/PP-OCRv6_det_small.onnx vendor/ppocr/PP-OCRv6_rec_small.onnx vendor/ppocr/rec_keys.txt "$APP/Contents/MacOS/models/" +cp vendor/fonts/NotoSansCJKtc-Regular.otf "$APP/Contents/MacOS/fonts/NotoSansCJKtc-Regular.otf" 2>/dev/null || { + mkdir -p "$APP/Contents/MacOS/fonts" + cp vendor/fonts/NotoSansCJKtc-Regular.otf "$APP/Contents/MacOS/fonts/" +} + +cat > "$APP/Contents/Info.plist" <<'PLIST' + + + + + CFBundleName Project-EAT + CFBundleDisplayName AI 作文批改 + CFBundleIdentifier tw.edu.project-eat + CFBundleVersion 0.1.0 + CFBundleShortVersionString0.1.0 + CFBundleExecutable Project-EAT + CFBundlePackageType APPL + LSMinimumSystemVersion 13.0 + NSHighResolutionCapable + NSCameraUsageDescription 即時批改模式需要使用攝影機拍攝學生作文 + + +PLIST + +# ad-hoc codesign (removes Gatekeeper "unidentified developer" friction locally; +# distribution builds should sign with a Developer ID) +codesign --force --deep --sign - "$APP" >/dev/null 2>&1 || true + +echo "Bundle: $APP" +du -sh "$APP" diff --git a/eat-rs/scripts/make-win-dist.sh b/eat-rs/scripts/make-win-dist.sh new file mode 100644 index 0000000..b999986 --- /dev/null +++ b/eat-rs/scripts/make-win-dist.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# Assemble the Windows x64 distribution (CLI + GUI + runtime DLLs + models). +# Cross-builds from macOS via mingw-w64. Expects /tmp/pdfium.dll and +# /tmp/ort-win/.../onnxruntime.dll fetched beforehand (see comments below). +# curl -sL -o /tmp/pdfium-win.tgz https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-win-x64.tgz +# curl -sL -o /tmp/ort-win.zip https://github.com/microsoft/onnxruntime/releases/download/v1.31.0/onnxruntime-win-x64-1.31.0.zip +set -euo pipefail +cd "$(dirname "$0")/.." +OUT="${1:-dist/win}" +OUT="${OUT%/}" +APP="$OUT/Project-EAT-win" + +cargo build --release --target x86_64-pc-windows-gnu -p eat-cli -p eat-gui + +rm -rf "$APP" +mkdir -p "$APP/models" "$APP/fonts" +cp target/x86_64-pc-windows-gnu/release/eat.exe "$APP/" +cp target/x86_64-pc-windows-gnu/release/eat-gui.exe "$APP/Project-EAT.exe" +cp /tmp/pdfium.dll "$APP/" +find /tmp/ort-win -name onnxruntime.dll -exec cp {} "$APP/" \; +cp vendor/ppocr/PP-OCRv6_det_small.onnx vendor/ppocr/PP-OCRv6_rec_small.onnx vendor/ppocr/rec_keys.txt "$APP/models/" +cp vendor/fonts/NotoSansCJKtc-Regular.otf "$APP/fonts/" + +( cd "$(dirname "$APP")" && zip -qr Project-EAT-win.zip "$(basename "$APP")" ) +echo "Bundle: $APP" +du -sh "$APP" "$(dirname "$APP")/Project-EAT-win.zip" diff --git a/eat-rs/tests/fixtures/full-error-case.pdf b/eat-rs/tests/fixtures/full-error-case.pdf new file mode 100644 index 0000000..14ca0df Binary files /dev/null and b/eat-rs/tests/fixtures/full-error-case.pdf differ diff --git a/eat-rs/tests/fixtures/grammar-test.pdf b/eat-rs/tests/fixtures/grammar-test.pdf new file mode 100644 index 0000000..f8c8a77 Binary files /dev/null and b/eat-rs/tests/fixtures/grammar-test.pdf differ diff --git a/eat-rs/tests/fixtures/hw-golden.json b/eat-rs/tests/fixtures/hw-golden.json new file mode 100644 index 0000000..d577bca --- /dev/null +++ b/eat-rs/tests/fixtures/hw-golden.json @@ -0,0 +1,816 @@ +[ + { + "box": [ + [ + 98.59658813476562, + 67.18951416015625 + ], + [ + 369.7372131347656, + 67.18951416015625 + ], + [ + 369.7372131347656, + 102.55242156982422 + ], + [ + 98.59658813476562, + 102.55242156982422 + ] + ], + "text": "2026/5/28下午4:25", + "score": 0.99996 + }, + { + "box": [ + [ + 1243.021240234375, + 58.348793029785156 + ], + [ + 1633.8863525390625, + 58.348793029785156 + ], + [ + 1633.8863525390625, + 104.32056427001953 + ], + [ + 1243.021240234375, + 104.32056427001953 + ] + ], + "text": "106-e-02-1.png (1938×3455)", + "score": 0.99944 + }, + { + "box": [ + [ + 642.6384887695312, + 261.68548583984375 + ], + [ + 966.5986938476562, + 261.68548583984375 + ], + [ + 966.5986938476562, + 344.7882995605469 + ], + [ + 642.6384887695312, + 344.7882995605469 + ] + ], + "text": "作答區", + "score": 0.9996 + }, + { + "box": [ + [ + 1072.2379150390625, + 258.1492004394531 + ], + [ + 1875.0958251953125, + 258.1492004394531 + ], + [ + 1875.0958251953125, + 293.5121154785156 + ], + [ + 1072.2379150390625, + 293.5121154785156 + ] + ], + "text": "2.各大題應在標示題號的指定作答區內作答,並標明子題題號。", + "score": 0.97466 + }, + { + "box": [ + [ + 382.061767578125, + 298.8165283203125 + ], + [ + 644.3991088867188, + 293.5121154785156 + ], + [ + 646.1597900390625, + 358.9334716796875 + ], + [ + 383.82244873046875, + 364.2379150390625 + ] + ], + "text": "從此寫起", + "score": 0.99808 + }, + { + "box": [ + [ + 1072.2379150390625, + 289.9757995605469 + ], + [ + 1677.9027099609375, + 289.9757995605469 + ], + [ + 1677.9027099609375, + 325.3387145996094 + ], + [ + 1072.2379150390625, + 325.3387145996094 + ] + ], + "text": "3.不得污損或書寫與答案無關之任何文字符號。", + "score": 0.98079 + }, + { + "box": [ + [ + 1072.2379150390625, + 323.5705871582031 + ], + [ + 2102.22021484375, + 323.5705871582031 + ], + [ + 2102.22021484375, + 364.2379150390625 + ], + [ + 1072.2379150390625, + 364.2379150390625 + ] + ], + "text": "4.作答時務必使用黑色墨水的筆(建議使用筆尖較粗約0.5mm~0.7mm之原子筆)書寫。", + "score": 0.97509 + }, + { + "box": [ + [ + 561.6484375, + 413.7459716796875 + ], + [ + 2093.416748046875, + 413.7459716796875 + ], + [ + 2093.416748046875, + 482.7036437988281 + ], + [ + 561.6484375, + 482.7036437988281 + ] + ], + "text": "Students doing part - time job has become a trend recently. Some", + "score": 0.95759 + }, + { + "box": [ + [ + 394.3863525390625, + 514.5302734375 + ], + [ + 2100.45947265625, + 512.7620849609375 + ], + [ + 2100.45947265625, + 583.4879150390625 + ], + [ + 394.3863525390625, + 585.2560424804688 + ] + ], + "text": "students find a part - time Job for they want to help their parents .", + "score": 0.96458 + }, + { + "box": [ + [ + 397.90765380859375, + 610.0100708007812 + ], + [ + 1973.6923828125, + 608.241943359375 + ], + [ + 1973.6923828125, + 677.1995849609375 + ], + [ + 397.90765380859375, + 678.9677734375 + ] + ], + "text": "Their family's finance situation forced them to do so. They have to", + "score": 0.99246 + }, + { + "box": [ + [ + 399.6683044433594, + 712.5625 + ], + [ + 2098.69873046875, + 707.258056640625 + ], + [ + 2098.69873046875, + 770.9113159179688 + ], + [ + 399.6683044433594, + 776.2157592773438 + ] + ], + "text": "worik in order to reduce their parents burden on thetr tuitlon or", + "score": 0.95679 + }, + { + "box": [ + [ + 404.9502868652344, + 808.0423583984375 + ], + [ + 2070.5283203125, + 808.0423583984375 + ], + [ + 2070.5283203125, + 871.695556640625 + ], + [ + 404.9502868652344, + 871.695556640625 + ] + ], + "text": "something else, Other students do a part- time Job not because thcir", + "score": 0.95821 + }, + { + "box": [ + [ + 404.9502868652344, + 903.522216796875 + ], + [ + 2102.22021484375, + 903.522216796875 + ], + [ + 2102.22021484375, + 977.7843017578125 + ], + [ + 404.9502868652344, + 977.7843017578125 + ] + ], + "text": "family's finand situatlon, but they heed money to buy things they", + "score": 0.95661 + }, + { + "box": [ + [ + 401.428955078125, + 1006.0746459960938 + ], + [ + 2021.2301025390625, + 1006.0746459960938 + ], + [ + 2021.2301025390625, + 1069.7279052734375 + ], + [ + 401.428955078125, + 1069.7279052734375 + ] + ], + "text": "want such as bastetball shoes smartphoneor luxurious product.", + "score": 0.97552 + }, + { + "box": [ + [ + 404.9502868652344, + 1101.554443359375 + ], + [ + 2049.400634765625, + 1098.0181884765625 + ], + [ + 2049.400634765625, + 1166.975830078125 + ], + [ + 404.9502868652344, + 1170.5120849609375 + ] + ], + "text": "Their parents think these aven't necessary things but they still want", + "score": 0.97597 + }, + { + "box": [ + [ + 403.18963623046875, + 1198.802490234375 + ], + [ + 1994.8203125, + 1193.498046875 + ], + [ + 1994.8203125, + 1269.5281982421875 + ], + [ + 403.18963623046875, + 1274.8326416015625 + ] + ], + "text": "to buy them. So they find a part - time job. Still others", + "score": 0.95925 + }, + { + "box": [ + [ + 406.7109375, + 1294.2823486328125 + ], + [ + 2038.836669921875, + 1292.51416015625 + ], + [ + 2038.836669921875, + 1363.239990234375 + ], + [ + 406.7109375, + 1365.008056640625 + ] + ], + "text": "do a part - time job m sake of they want to mcrease their", + "score": 0.95995 + }, + { + "box": [ + [ + 408.4715881347656, + 1395.0665283203125 + ], + [ + 2095.177490234375, + 1386.225830078125 + ], + [ + 2095.177490234375, + 1460.4879150390625 + ], + [ + 408.4715881347656, + 1469.32861328125 + ] + ], + "text": "social experiences . They want to get in touch with the soctety", + "score": 0.95997 + }, + { + "box": [ + [ + 413.7535400390625, + 1490.54638671875 + ], + [ + 2100.45947265625, + 1490.54638671875 + ], + [ + 2100.45947265625, + 1559.5040283203125 + ], + [ + 413.7535400390625, + 1559.5040283203125 + ] + ], + "text": "h th eh h r hc", + "score": 0.55403 + }, + { + "box": [ + [ + 415.5141906738281, + 1589.5625 + ], + [ + 2033.5546875, + 1584.258056640625 + ], + [ + 2033.5546875, + 1653.2158203125 + ], + [ + 415.5141906738281, + 1658.5201416015625 + ] + ], + "text": "as how to interact with costumers. boss and colleagues or how to", + "score": 0.96215 + }, + { + "box": [ + [ + 406.7109375, + 1685.0423583984375 + ], + [ + 1704.3125, + 1685.0423583984375 + ], + [ + 1704.3125, + 1761.0726318359375 + ], + [ + 406.7109375, + 1761.0726318359375 + ] + ], + "text": "deal with tricky problems they encountering at work.", + "score": 0.98116 + }, + { + "box": [ + [ + 536.999267578125, + 1780.522216796875 + ], + [ + 2031.7939453125, + 1776.9859619140625 + ], + [ + 2031.7939453125, + 1853.01611328125 + ], + [ + 536.999267578125, + 1856.552490234375 + ] + ], + "text": "If I want to have a part -time Job my reason wil", + "score": 0.96665 + }, + { + "box": [ + [ + 390.86505126953125, + 1879.538330078125 + ], + [ + 2105.741455078125, + 1874.23388671875 + ], + [ + 2105.741455078125, + 1950.26416015625 + ], + [ + 390.86505126953125, + 1955.568603515625 + ] + ], + "text": "be the third one in the prewous paragraph I want to increase", + "score": 0.97887 + }, + { + "box": [ + [ + 387.34375, + 1975.0181884765625 + ], + [ + 2109.2626953125, + 1975.0181884765625 + ], + [ + 2109.2626953125, + 2056.352783203125 + ], + [ + 387.34375, + 2056.352783203125 + ] + ], + "text": "my soclal experiences Lrving under my parents' protection since childhou", + "score": 0.93673 + }, + { + "box": [ + [ + 410.23223876953125, + 2178.35498046875 + ], + [ + 2008.905517578125, + 2174.818603515625 + ], + [ + 2008.905517578125, + 2243.7763671875 + ], + [ + 410.23223876953125, + 2247.3125 + ] + ], + "text": "I don't know how to Interact with strangers and I don't", + "score": 0.95886 + }, + { + "box": [ + [ + 404.9502868652344, + 2273.834716796875 + ], + [ + 2001.8629150390625, + 2273.834716796875 + ], + [ + 2001.8629150390625, + 2342.79248046875 + ], + [ + 404.9502868652344, + 2342.79248046875 + ] + ], + "text": "know what I will meet when I am. a society freshman.", + "score": 0.93729 + }, + { + "box": [ + [ + 410.23223876953125, + 2371.082763671875 + ], + [ + 2061.72509765625, + 2365.7783203125 + ], + [ + 2061.72509765625, + 2441.80859375 + ], + [ + 410.23223876953125, + 2447.113037109375 + ] + ], + "text": "Since family and schools areso warm-hearted that everyone", + "score": 0.97913 + }, + { + "box": [ + [ + 410.23223876953125, + 2470.098876953125 + ], + [ + 1987.7777099609375, + 2461.258056640625 + ], + [ + 1987.7777099609375, + 2537.288330078125 + ], + [ + 410.23223876953125, + 2546.129150390625 + ] + ], + "text": "cares about your feeling and you wont be heglected, the", + "score": 0.96967 + }, + { + "box": [ + [ + 422.55682373046875, + 2565.57861328125 + ], + [ + 2000.102294921875, + 2558.506103515625 + ], + [ + 2000.102294921875, + 2632.768310546875 + ], + [ + 422.55682373046875, + 2639.8408203125 + ] + ], + "text": "real society is cruel. Teachers and parents always teli us", + "score": 0.94433 + }, + { + "box": [ + [ + 417.27484130859375, + 2661.05859375 + ], + [ + 1996.5809326171875, + 2653.98583984375 + ], + [ + 1996.5809326171875, + 2728.248046875 + ], + [ + 417.27484130859375, + 2735.320556640625 + ] + ], + "text": "how different between school, family and soclety. I won't", + "score": 0.96999 + }, + { + "box": [ + [ + 403.18963623046875, + 2761.8427734375 + ], + [ + 2012.4267578125, + 2747.69775390625 + ], + [ + 2012.4267578125, + 2823.727783203125 + ], + [ + 403.18963623046875, + 2837.873046875 + ] + ], + "text": "be protected by my parents the whole tife. The earlier I", + "score": 0.9637 + }, + { + "box": [ + [ + 410.23223876953125, + 2848.48193359375 + ], + [ + 2054.682373046875, + 2839.64111328125 + ], + [ + 2054.682373046875, + 2931.584716796875 + ], + [ + 410.23223876953125, + 2940.425537109375 + ] + ], + "text": "expenrenced and get acquainted with the society, the mole", + "score": 0.97275 + }, + { + "box": [ + [ + 417.27484130859375, + 2949.26611328125 + ], + [ + 2015.9481201171875, + 2940.425537109375 + ], + [ + 2015.9481201171875, + 3016.455810546875 + ], + [ + 417.27484130859375, + 3025.29638671875 + ] + ], + "text": "independent I'll be. As a result, I would hike to have", + "score": 0.95691 + }, + { + "box": [ + [ + 403.18963623046875, + 3042.977783203125 + ], + [ + 2070.5283203125, + 3037.67333984375 + ], + [ + 2070.5283203125, + 3126.080810546875 + ], + [ + 403.18963623046875, + 3131.38525390625 + ] + ], + "text": "pa ea s of da qo t - d ", + "score": 0.56239 + }, + { + "box": [ + [ + 440.163330078125, + 3156.13916015625 + ], + [ + 1051.110107421875, + 3143.76220703125 + ], + [ + 1052.8707275390625, + 3214.488037109375 + ], + [ + 441.92401123046875, + 3226.864990234375 + ] + ], + "text": "gaining more explencos.", + "score": 0.94279 + }, + { + "box": [ + [ + 95.07527923583984, + 3403.679443359375 + ], + [ + 1202.5262451171875, + 3405.44775390625 + ], + [ + 1202.5262451171875, + 3451.41943359375 + ], + [ + 95.07527923583984, + 3449.6513671875 + ] + ], + "text": "https://www.ceec.edu.tw/files/file_pool/1/0J116514996102279908/106-e-02-1.png", + "score": 0.99259 + }, + { + "box": [ + [ + 2325.822998046875, + 3398.375 + ], + [ + 2390.96728515625, + 3398.375 + ], + [ + 2390.96728515625, + 3456.723876953125 + ], + [ + 2325.822998046875, + 3456.723876953125 + ] + ], + "text": "1/1", + "score": 0.99967 + } +] \ No newline at end of file diff --git a/eat-rs/tests/fixtures/hw-test-p1.png b/eat-rs/tests/fixtures/hw-test-p1.png new file mode 100644 index 0000000..6103a7a Binary files /dev/null and b/eat-rs/tests/fixtures/hw-test-p1.png differ diff --git a/eat-rs/tests/fixtures/hw-test.pdf b/eat-rs/tests/fixtures/hw-test.pdf new file mode 100644 index 0000000..8042f72 Binary files /dev/null and b/eat-rs/tests/fixtures/hw-test.pdf differ diff --git a/eat-rs/tests/fixtures/hw-test_annotated.pdf b/eat-rs/tests/fixtures/hw-test_annotated.pdf new file mode 100644 index 0000000..f55b213 Binary files /dev/null and b/eat-rs/tests/fixtures/hw-test_annotated.pdf differ diff --git a/eat-rs/tests/fixtures/hw-test_errors.json b/eat-rs/tests/fixtures/hw-test_errors.json new file mode 100644 index 0000000..520e818 --- /dev/null +++ b/eat-rs/tests/fixtures/hw-test_errors.json @@ -0,0 +1,80 @@ +[ + { + "original": "Students doing part- time job has", + "type": "grammar", + "suggestion": "Students doing part-time jobs have", + "page": 0 + }, + { + "original": "They have to woris", + "type": "spelling", + "suggestion": "They have to work", + "page": 0 + }, + { + "original": "tricky prblems", + "type": "spelling", + "suggestion": "tricky problems", + "page": 0 + }, + { + "original": "they encountering", + "type": "grammar", + "suggestion": "they are encountering", + "page": 0 + }, + { + "original": "inctease my soclal", + "type": "spelling", + "suggestion": "increase my social", + "page": 0 + }, + { + "original": "Lving", + "type": "spelling", + "suggestion": "Living", + "page": 0 + }, + { + "original": "childhus", + "type": "spelling", + "suggestion": "childhood", + "page": 0 + }, + { + "original": "soclal", + "type": "spelling", + "suggestion": "social", + "page": 0 + }, + { + "original": "soclety", + "type": "spelling", + "suggestion": "society", + "page": 0 + }, + { + "original": "prtected", + "type": "spelling", + "suggestion": "protected", + "page": 0 + }, + { + "original": "expennenced", + "type": "spelling", + "suggestion": "experienced", + "page": 0 + }, + { + "original": "earther", + "type": "spelling", + "suggestion": "easier", + "page": 0 + }, + { + "original": "explences", + "type": "spelling", + "suggestion": "experiences", + "page": 0 + } +] \ No newline at end of file diff --git a/eat-rs/tests/fixtures/hw-test_ocr.json b/eat-rs/tests/fixtures/hw-test_ocr.json new file mode 100644 index 0000000..ac76997 --- /dev/null +++ b/eat-rs/tests/fixtures/hw-test_ocr.json @@ -0,0 +1,6556 @@ +[ + [ + { + "text": "-e-02-1.png", + "box": [ + [ + 297.61872, + 13.049760000000001 + ], + [ + 344.97672, + 13.049760000000001 + ], + [ + 344.97672, + 26.099520000000002 + ], + [ + 297.61872, + 26.099520000000002 + ] + ] + }, + { + "text": "(1938×3455)", + "box": [ + [ + 344.97672, + 13.049760000000001 + ], + [ + 392.33472, + 13.049760000000001 + ], + [ + 392.33472, + 26.099520000000002 + ], + [ + 344.97672, + 26.099520000000002 + ] + ] + }, + { + "text": "/5/28", + "box": [ + [ + 23.57376, + 15.154559999999998 + ], + [ + 53.42365090909091, + 15.154559999999998 + ], + [ + 53.42365090909091, + 25.678559999999997 + ], + [ + 23.57376, + 25.678559999999997 + ] + ] + }, + { + "text": "下午4:25", + "box": [ + [ + 53.42365090909091, + 15.154559999999998 + ], + [ + 89.24351999999999, + 15.154559999999998 + ], + [ + 89.24351999999999, + 25.678559999999997 + ], + [ + 53.42365090909091, + 25.678559999999997 + ] + ] + }, + { + "text": "注意:1.請填寫學校名稱、班級、座號、姓名。", + "box": [ + [ + 228.16031999999998, + 53.46192 + ], + [ + 383.91551999999996, + 48.83136 + ], + [ + 384.33648, + 64.82784 + ], + [ + 228.58128, + 69.4584 + ] + ] + }, + { + "text": "作答區", + "box": [ + [ + 152.38752, + 61.0392 + ], + [ + 233.21184, + 61.0392 + ], + [ + 233.21184, + 84.61295999999999 + ], + [ + 152.38752, + 84.61295999999999 + ] + ] + }, + { + "text": "各大題應在標示題號的指定作答區內作答,並標明子題題號。", + "box": [ + [ + 256.36463999999995, + 61.0392 + ], + [ + 450.84816, + 61.88112 + ], + [ + 450.84816, + 71.5632 + ], + [ + 256.36463999999995, + 70.72128000000001 + ] + ] + }, + { + "text": "不得污損或書寫與答案無關之任何文字字符號。", + "box": [ + [ + 257.62752, + 69.87935999999999 + ], + [ + 404.12159999999994, + 69.87935999999999 + ], + [ + 404.12159999999994, + 78.71951999999999 + ], + [ + 257.62752, + 78.71951999999999 + ] + ] + }, + { + "text": "↓從此寫起", + "box": [ + [ + 90.5064, + 70.30032 + ], + [ + 156.17616, + 68.19552 + ], + [ + 156.59712000000002, + 86.71776 + ], + [ + 91.34832, + 88.82256 + ] + ] + }, + { + "text": "作答時務必使用黑色墨水的筆(建議使用筆尖較粗約0.5mm~0.7mm之原子筆)書寫。", + "box": [ + [ + 257.62752, + 77.45664 + ], + [ + 504.73103999999995, + 77.45664 + ], + [ + 504.73103999999995, + 87.55968 + ], + [ + 257.62752, + 87.55968 + ] + ] + }, + { + "text": "Students", + "box": [ + [ + 133.86528, + 98.08368 + ], + [ + 189.90855849056607, + 98.08368 + ], + [ + 189.90855849056607, + 117.02688 + ], + [ + 133.86528, + 117.02688 + ] + ] + }, + { + "text": "doing", + "box": [ + [ + 189.90855849056607, + 98.08368 + ], + [ + 224.93560754716984, + 98.08368 + ], + [ + 224.93560754716984, + 117.02688 + ], + [ + 189.90855849056607, + 117.02688 + ] + ] + }, + { + "text": "part-", + "box": [ + [ + 224.93560754716984, + 98.08368 + ], + [ + 259.9626566037736, + 98.08368 + ], + [ + 259.9626566037736, + 117.02688 + ], + [ + 224.93560754716984, + 117.02688 + ] + ] + }, + { + "text": "time", + "box": [ + [ + 259.9626566037736, + 98.08368 + ], + [ + 287.98429584905665, + 98.08368 + ], + [ + 287.98429584905665, + 117.02688 + ], + [ + 259.9626566037736, + 117.02688 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 287.98429584905665, + 98.08368 + ], + [ + 309.00052528301893, + 98.08368 + ], + [ + 309.00052528301893, + 117.02688 + ], + [ + 287.98429584905665, + 117.02688 + ] + ] + }, + { + "text": "has", + "box": [ + [ + 309.00052528301893, + 98.08368 + ], + [ + 330.0167547169812, + 98.08368 + ], + [ + 330.0167547169812, + 117.02688 + ], + [ + 309.00052528301893, + 117.02688 + ] + ] + }, + { + "text": "become", + "box": [ + [ + 330.0167547169812, + 98.08368 + ], + [ + 372.0492135849058, + 98.08368 + ], + [ + 372.0492135849058, + 117.02688 + ], + [ + 330.0167547169812, + 117.02688 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 372.0492135849058, + 98.08368 + ], + [ + 379.05462339622653, + 98.08368 + ], + [ + 379.05462339622653, + 117.02688 + ], + [ + 372.0492135849058, + 117.02688 + ] + ] + }, + { + "text": "trend", + "box": [ + [ + 379.05462339622653, + 98.08368 + ], + [ + 414.08167245283033, + 98.08368 + ], + [ + 414.08167245283033, + 117.02688 + ], + [ + 379.05462339622653, + 117.02688 + ] + ] + }, + { + "text": "recently.", + "box": [ + [ + 414.08167245283033, + 98.08368 + ], + [ + 477.1303607547171, + 98.08368 + ], + [ + 477.1303607547171, + 117.02688 + ], + [ + 414.08167245283033, + 117.02688 + ] + ] + }, + { + "text": "Some", + "box": [ + [ + 477.1303607547171, + 98.08368 + ], + [ + 505.15200000000004, + 98.08368 + ], + [ + 505.15200000000004, + 117.02688 + ], + [ + 477.1303607547171, + 117.02688 + ] + ] + }, + { + "text": "students", + "box": [ + [ + 94.29504, + 122.49936 + ], + [ + 154.1172829090909, + 122.49936 + ], + [ + 154.1172829090909, + 141.44256000000001 + ], + [ + 94.29504, + 141.44256000000001 + ] + ] + }, + { + "text": "find", + "box": [ + [ + 154.1172829090909, + 122.49936 + ], + [ + 184.02840436363635, + 122.49936 + ], + [ + 184.02840436363635, + 141.44256000000001 + ], + [ + 154.1172829090909, + 141.44256000000001 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 184.02840436363635, + 122.49936 + ], + [ + 191.5061847272727, + 122.49936 + ], + [ + 191.5061847272727, + 141.44256000000001 + ], + [ + 184.02840436363635, + 141.44256000000001 + ] + ] + }, + { + "text": "part", + "box": [ + [ + 191.5061847272727, + 122.49936 + ], + [ + 221.41730618181816, + 122.49936 + ], + [ + 221.41730618181816, + 141.44256000000001 + ], + [ + 191.5061847272727, + 141.44256000000001 + ] + ] + }, + { + "text": "-", + "box": [ + [ + 221.41730618181816, + 122.49936 + ], + [ + 228.89508654545452, + 122.49936 + ], + [ + 228.89508654545452, + 141.44256000000001 + ], + [ + 221.41730618181816, + 141.44256000000001 + ] + ] + }, + { + "text": "time", + "box": [ + [ + 228.89508654545452, + 122.49936 + ], + [ + 258.80620799999997, + 122.49936 + ], + [ + 258.80620799999997, + 141.44256000000001 + ], + [ + 228.89508654545452, + 141.44256000000001 + ] + ] + }, + { + "text": "Job", + "box": [ + [ + 258.80620799999997, + 122.49936 + ], + [ + 281.23954909090907, + 122.49936 + ], + [ + 281.23954909090907, + 141.44256000000001 + ], + [ + 258.80620799999997, + 141.44256000000001 + ] + ] + }, + { + "text": "for", + "box": [ + [ + 281.23954909090907, + 122.49936 + ], + [ + 303.67289018181816, + 122.49936 + ], + [ + 303.67289018181816, + 141.44256000000001 + ], + [ + 281.23954909090907, + 141.44256000000001 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 303.67289018181816, + 122.49936 + ], + [ + 333.5840116363636, + 122.49936 + ], + [ + 333.5840116363636, + 141.44256000000001 + ], + [ + 303.67289018181816, + 141.44256000000001 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 333.5840116363636, + 122.49936 + ], + [ + 363.495133090909, + 122.49936 + ], + [ + 363.495133090909, + 141.44256000000001 + ], + [ + 333.5840116363636, + 141.44256000000001 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 363.495133090909, + 122.49936 + ], + [ + 378.4506938181817, + 122.49936 + ], + [ + 378.4506938181817, + 141.44256000000001 + ], + [ + 363.495133090909, + 141.44256000000001 + ] + ] + }, + { + "text": "help", + "box": [ + [ + 378.4506938181817, + 122.49936 + ], + [ + 408.3618152727272, + 122.49936 + ], + [ + 408.3618152727272, + 141.44256000000001 + ], + [ + 378.4506938181817, + 141.44256000000001 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 408.3618152727272, + 122.49936 + ], + [ + 445.750717090909, + 122.49936 + ], + [ + 445.750717090909, + 141.44256000000001 + ], + [ + 408.3618152727272, + 141.44256000000001 + ] + ] + }, + { + "text": "parents", + "box": [ + [ + 445.750717090909, + 122.49936 + ], + [ + 498.0951796363635, + 122.49936 + ], + [ + 498.0951796363635, + 141.44256000000001 + ], + [ + 445.750717090909, + 141.44256000000001 + ] + ] + }, + { + "text": ".", + "box": [ + [ + 498.0951796363635, + 122.49936 + ], + [ + 505.5729599999999, + 122.49936 + ], + [ + 505.5729599999999, + 141.44256000000001 + ], + [ + 498.0951796363635, + 141.44256000000001 + ] + ] + }, + { + "text": "Their", + "box": [ + [ + 95.13696, + 144.81024 + ], + [ + 129.0016885714286, + 144.81024 + ], + [ + 129.0016885714286, + 164.1744 + ], + [ + 95.13696, + 164.1744 + ] + ] + }, + { + "text": "family's", + "box": [ + [ + 129.0016885714286, + 144.81024 + ], + [ + 183.1852542857143, + 144.81024 + ], + [ + 183.1852542857143, + 164.1744 + ], + [ + 129.0016885714286, + 164.1744 + ] + ] + }, + { + "text": "finance", + "box": [ + [ + 183.1852542857143, + 144.81024 + ], + [ + 230.5958742857143, + 144.81024 + ], + [ + 230.5958742857143, + 164.1744 + ], + [ + 183.1852542857143, + 164.1744 + ] + ] + }, + { + "text": "situation", + "box": [ + [ + 230.5958742857143, + 144.81024 + ], + [ + 291.5523857142857, + 144.81024 + ], + [ + 291.5523857142857, + 164.1744 + ], + [ + 230.5958742857143, + 164.1744 + ] + ] + }, + { + "text": "forced", + "box": [ + [ + 291.5523857142857, + 144.81024 + ], + [ + 332.19006, + 144.81024 + ], + [ + 332.19006, + 164.1744 + ], + [ + 291.5523857142857, + 164.1744 + ] + ] + }, + { + "text": "them", + "box": [ + [ + 332.19006, + 144.81024 + ], + [ + 359.28184285714286, + 144.81024 + ], + [ + 359.28184285714286, + 164.1744 + ], + [ + 332.19006, + 164.1744 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 359.28184285714286, + 144.81024 + ], + [ + 372.8277342857143, + 144.81024 + ], + [ + 372.8277342857143, + 164.1744 + ], + [ + 359.28184285714286, + 164.1744 + ] + ] + }, + { + "text": "do", + "box": [ + [ + 372.8277342857143, + 144.81024 + ], + [ + 386.37362571428577, + 144.81024 + ], + [ + 386.37362571428577, + 164.1744 + ], + [ + 372.8277342857143, + 164.1744 + ] + ] + }, + { + "text": "so.", + "box": [ + [ + 386.37362571428577, + 144.81024 + ], + [ + 406.6924628571429, + 144.81024 + ], + [ + 406.6924628571429, + 164.1744 + ], + [ + 386.37362571428577, + 164.1744 + ] + ] + }, + { + "text": "They", + "box": [ + [ + 406.6924628571429, + 144.81024 + ], + [ + 433.78424571428576, + 144.81024 + ], + [ + 433.78424571428576, + 164.1744 + ], + [ + 406.6924628571429, + 164.1744 + ] + ] + }, + { + "text": "have", + "box": [ + [ + 433.78424571428576, + 144.81024 + ], + [ + 460.8760285714286, + 144.81024 + ], + [ + 460.8760285714286, + 164.1744 + ], + [ + 433.78424571428576, + 164.1744 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 460.8760285714286, + 144.81024 + ], + [ + 474.42192, + 144.81024 + ], + [ + 474.42192, + 164.1744 + ], + [ + 460.8760285714286, + 164.1744 + ] + ] + }, + { + "text": "woris", + "box": [ + [ + 94.716, + 168.80496 + ], + [ + 132.7583111111111, + 168.80496 + ], + [ + 132.7583111111111, + 187.32719999999998 + ], + [ + 94.716, + 187.32719999999998 + ] + ] + }, + { + "text": "in", + "box": [ + [ + 132.7583111111111, + 168.80496 + ], + [ + 147.97523555555557, + 168.80496 + ], + [ + 147.97523555555557, + 187.32719999999998 + ], + [ + 132.7583111111111, + 187.32719999999998 + ] + ] + }, + { + "text": "order", + "box": [ + [ + 147.97523555555557, + 168.80496 + ], + [ + 186.01754666666668, + 168.80496 + ], + [ + 186.01754666666668, + 187.32719999999998 + ], + [ + 147.97523555555557, + 187.32719999999998 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 186.01754666666668, + 168.80496 + ], + [ + 201.23447111111113, + 168.80496 + ], + [ + 201.23447111111113, + 187.32719999999998 + ], + [ + 186.01754666666668, + 187.32719999999998 + ] + ] + }, + { + "text": "reduce", + "box": [ + [ + 201.23447111111113, + 168.80496 + ], + [ + 246.88524444444448, + 168.80496 + ], + [ + 246.88524444444448, + 187.32719999999998 + ], + [ + 201.23447111111113, + 187.32719999999998 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 246.88524444444448, + 168.80496 + ], + [ + 284.9275555555556, + 168.80496 + ], + [ + 284.9275555555556, + 187.32719999999998 + ], + [ + 246.88524444444448, + 187.32719999999998 + ] + ] + }, + { + "text": "parents", + "box": [ + [ + 284.9275555555556, + 168.80496 + ], + [ + 338.1867911111112, + 168.80496 + ], + [ + 338.1867911111112, + 187.32719999999998 + ], + [ + 284.9275555555556, + 187.32719999999998 + ] + ] + }, + { + "text": "burden", + "box": [ + [ + 338.1867911111112, + 168.80496 + ], + [ + 383.8375644444445, + 168.80496 + ], + [ + 383.8375644444445, + 187.32719999999998 + ], + [ + 338.1867911111112, + 187.32719999999998 + ] + ] + }, + { + "text": "on", + "box": [ + [ + 383.8375644444445, + 168.80496 + ], + [ + 399.05448888888895, + 168.80496 + ], + [ + 399.05448888888895, + 187.32719999999998 + ], + [ + 383.8375644444445, + 187.32719999999998 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 399.05448888888895, + 168.80496 + ], + [ + 437.0968000000001, + 168.80496 + ], + [ + 437.0968000000001, + 187.32719999999998 + ], + [ + 399.05448888888895, + 187.32719999999998 + ] + ] + }, + { + "text": "tuition", + "box": [ + [ + 437.0968000000001, + 168.80496 + ], + [ + 490.35603555555565, + 168.80496 + ], + [ + 490.35603555555565, + 187.32719999999998 + ], + [ + 437.0968000000001, + 187.32719999999998 + ] + ] + }, + { + "text": "or", + "box": [ + [ + 490.35603555555565, + 168.80496 + ], + [ + 505.57296, + 168.80496 + ], + [ + 505.57296, + 187.32719999999998 + ], + [ + 490.35603555555565, + 187.32719999999998 + ] + ] + }, + { + "text": "something", + "box": [ + [ + 95.97887999999999, + 192.79968 + ], + [ + 160.45222736842103, + 192.79968 + ], + [ + 160.45222736842103, + 210.48 + ], + [ + 95.97887999999999, + 210.48 + ] + ] + }, + { + "text": "else,", + "box": [ + [ + 160.45222736842103, + 192.79968 + ], + [ + 196.2707536842105, + 192.79968 + ], + [ + 196.2707536842105, + 210.48 + ], + [ + 160.45222736842103, + 210.48 + ] + ] + }, + { + "text": "Other", + "box": [ + [ + 196.2707536842105, + 192.79968 + ], + [ + 232.08927999999997, + 192.79968 + ], + [ + 232.08927999999997, + 210.48 + ], + [ + 196.2707536842105, + 210.48 + ] + ] + }, + { + "text": "students", + "box": [ + [ + 232.08927999999997, + 192.79968 + ], + [ + 289.3989221052631, + 192.79968 + ], + [ + 289.3989221052631, + 210.48 + ], + [ + 232.08927999999997, + 210.48 + ] + ] + }, + { + "text": "do", + "box": [ + [ + 289.3989221052631, + 192.79968 + ], + [ + 303.7263326315789, + 192.79968 + ], + [ + 303.7263326315789, + 210.48 + ], + [ + 289.3989221052631, + 210.48 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 303.7263326315789, + 192.79968 + ], + [ + 310.8900378947368, + 192.79968 + ], + [ + 310.8900378947368, + 210.48 + ], + [ + 303.7263326315789, + 210.48 + ] + ] + }, + { + "text": "part-time", + "box": [ + [ + 310.8900378947368, + 192.79968 + ], + [ + 375.36338526315785, + 192.79968 + ], + [ + 375.36338526315785, + 210.48 + ], + [ + 310.8900378947368, + 210.48 + ] + ] + }, + { + "text": "Joh", + "box": [ + [ + 375.36338526315785, + 192.79968 + ], + [ + 396.8545010526315, + 192.79968 + ], + [ + 396.8545010526315, + 210.48 + ], + [ + 375.36338526315785, + 210.48 + ] + ] + }, + { + "text": "not", + "box": [ + [ + 396.8545010526315, + 192.79968 + ], + [ + 418.3456168421052, + 192.79968 + ], + [ + 418.3456168421052, + 210.48 + ], + [ + 396.8545010526315, + 210.48 + ] + ] + }, + { + "text": "because", + "box": [ + [ + 418.3456168421052, + 192.79968 + ], + [ + 468.49155368421043, + 192.79968 + ], + [ + 468.49155368421043, + 210.48 + ], + [ + 418.3456168421052, + 210.48 + ] + ] + }, + { + "text": "thcir", + "box": [ + [ + 468.49155368421043, + 192.79968 + ], + [ + 504.3100799999999, + 192.79968 + ], + [ + 504.3100799999999, + 210.48 + ], + [ + 468.49155368421043, + 210.48 + ] + ] + }, + { + "text": "family's", + "box": [ + [ + 95.97887999999999, + 215.11056 + ], + [ + 155.5562007272727, + 215.11056 + ], + [ + 155.5562007272727, + 235.7376 + ], + [ + 95.97887999999999, + 235.7376 + ] + ] + }, + { + "text": "finand", + "box": [ + [ + 155.5562007272727, + 215.11056 + ], + [ + 200.23919127272725, + 215.11056 + ], + [ + 200.23919127272725, + 235.7376 + ], + [ + 155.5562007272727, + 235.7376 + ] + ] + }, + { + "text": "situatlon,", + "box": [ + [ + 200.23919127272725, + 215.11056 + ], + [ + 274.7108421818182, + 215.11056 + ], + [ + 274.7108421818182, + 235.7376 + ], + [ + 200.23919127272725, + 235.7376 + ] + ] + }, + { + "text": "but", + "box": [ + [ + 274.7108421818182, + 215.11056 + ], + [ + 297.05233745454547, + 215.11056 + ], + [ + 297.05233745454547, + 235.7376 + ], + [ + 274.7108421818182, + 235.7376 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 297.05233745454547, + 215.11056 + ], + [ + 326.84099781818185, + 215.11056 + ], + [ + 326.84099781818185, + 235.7376 + ], + [ + 297.05233745454547, + 235.7376 + ] + ] + }, + { + "text": "heed", + "box": [ + [ + 326.84099781818185, + 215.11056 + ], + [ + 356.62965818181823, + 215.11056 + ], + [ + 356.62965818181823, + 235.7376 + ], + [ + 326.84099781818185, + 235.7376 + ] + ] + }, + { + "text": "money", + "box": [ + [ + 356.62965818181823, + 215.11056 + ], + [ + 393.8654836363637, + 215.11056 + ], + [ + 393.8654836363637, + 235.7376 + ], + [ + 356.62965818181823, + 235.7376 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 393.8654836363637, + 215.11056 + ], + [ + 408.7598138181819, + 215.11056 + ], + [ + 408.7598138181819, + 235.7376 + ], + [ + 393.8654836363637, + 235.7376 + ] + ] + }, + { + "text": "buy", + "box": [ + [ + 408.7598138181819, + 215.11056 + ], + [ + 431.1013090909092, + 215.11056 + ], + [ + 431.1013090909092, + 235.7376 + ], + [ + 408.7598138181819, + 235.7376 + ] + ] + }, + { + "text": "things", + "box": [ + [ + 431.1013090909092, + 215.11056 + ], + [ + 475.7842996363637, + 215.11056 + ], + [ + 475.7842996363637, + 235.7376 + ], + [ + 431.1013090909092, + 235.7376 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 475.7842996363637, + 215.11056 + ], + [ + 505.57296, + 215.11056 + ], + [ + 505.57296, + 235.7376 + ], + [ + 475.7842996363637, + 235.7376 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 95.13696, + 240.36816 + ], + [ + 124.10524444444444, + 240.36816 + ], + [ + 124.10524444444444, + 257.62752 + ], + [ + 95.13696, + 257.62752 + ] + ] + }, + { + "text": "such", + "box": [ + [ + 124.10524444444444, + 240.36816 + ], + [ + 153.0735288888889, + 240.36816 + ], + [ + 153.0735288888889, + 257.62752 + ], + [ + 124.10524444444444, + 257.62752 + ] + ] + }, + { + "text": "as", + "box": [ + [ + 153.0735288888889, + 240.36816 + ], + [ + 167.55767111111112, + 240.36816 + ], + [ + 167.55767111111112, + 257.62752 + ], + [ + 153.0735288888889, + 257.62752 + ] + ] + }, + { + "text": "basketball", + "box": [ + [ + 167.55767111111112, + 240.36816 + ], + [ + 239.97838222222222, + 240.36816 + ], + [ + 239.97838222222222, + 257.62752 + ], + [ + 167.55767111111112, + 257.62752 + ] + ] + }, + { + "text": "shoes", + "box": [ + [ + 239.97838222222222, + 240.36816 + ], + [ + 276.18873777777776, + 240.36816 + ], + [ + 276.18873777777776, + 257.62752 + ], + [ + 239.97838222222222, + 257.62752 + ] + ] + }, + { + "text": "smartphoneor", + "box": [ + [ + 276.18873777777776, + 240.36816 + ], + [ + 363.0935911111111, + 240.36816 + ], + [ + 363.0935911111111, + 257.62752 + ], + [ + 276.18873777777776, + 257.62752 + ] + ] + }, + { + "text": "luxurious", + "box": [ + [ + 363.0935911111111, + 240.36816 + ], + [ + 428.27223111111107, + 240.36816 + ], + [ + 428.27223111111107, + 257.62752 + ], + [ + 363.0935911111111, + 257.62752 + ] + ] + }, + { + "text": "product.", + "box": [ + [ + 428.27223111111107, + 240.36816 + ], + [ + 486.20879999999994, + 240.36816 + ], + [ + 486.20879999999994, + 257.62752 + ], + [ + 428.27223111111107, + 257.62752 + ] + ] + }, + { + "text": "Their", + "box": [ + [ + 96.8208, + 262.25808 + ], + [ + 130.42625084745762, + 262.25808 + ], + [ + 130.42625084745762, + 282.46416 + ], + [ + 96.8208, + 282.46416 + ] + ] + }, + { + "text": "parents", + "box": [ + [ + 130.42625084745762, + 262.25808 + ], + [ + 177.4738820338983, + 262.25808 + ], + [ + 177.4738820338983, + 282.46416 + ], + [ + 130.42625084745762, + 282.46416 + ] + ] + }, + { + "text": "think", + "box": [ + [ + 177.4738820338983, + 262.25808 + ], + [ + 211.07933288135592, + 262.25808 + ], + [ + 211.07933288135592, + 282.46416 + ], + [ + 177.4738820338983, + 282.46416 + ] + ] + }, + { + "text": "these", + "box": [ + [ + 211.07933288135592, + 262.25808 + ], + [ + 244.68478372881356, + 262.25808 + ], + [ + 244.68478372881356, + 282.46416 + ], + [ + 211.07933288135592, + 282.46416 + ] + ] + }, + { + "text": "oven't", + "box": [ + [ + 244.68478372881356, + 262.25808 + ], + [ + 285.0113247457627, + 262.25808 + ], + [ + 285.0113247457627, + 282.46416 + ], + [ + 244.68478372881356, + 282.46416 + ] + ] + }, + { + "text": "necessary", + "box": [ + [ + 285.0113247457627, + 262.25808 + ], + [ + 345.5011362711864, + 262.25808 + ], + [ + 345.5011362711864, + 282.46416 + ], + [ + 285.0113247457627, + 282.46416 + ] + ] + }, + { + "text": "things", + "box": [ + [ + 345.5011362711864, + 262.25808 + ], + [ + 385.82767728813553, + 262.25808 + ], + [ + 385.82767728813553, + 282.46416 + ], + [ + 345.5011362711864, + 282.46416 + ] + ] + }, + { + "text": "but", + "box": [ + [ + 385.82767728813553, + 262.25808 + ], + [ + 405.9909477966101, + 262.25808 + ], + [ + 405.9909477966101, + 282.46416 + ], + [ + 385.82767728813553, + 282.46416 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 405.9909477966101, + 262.25808 + ], + [ + 432.8753084745762, + 262.25808 + ], + [ + 432.8753084745762, + 282.46416 + ], + [ + 405.9909477966101, + 282.46416 + ] + ] + }, + { + "text": "still", + "box": [ + [ + 432.8753084745762, + 262.25808 + ], + [ + 466.4807593220338, + 262.25808 + ], + [ + 466.4807593220338, + 282.46416 + ], + [ + 432.8753084745762, + 282.46416 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 466.4807593220338, + 262.25808 + ], + [ + 493.36511999999993, + 262.25808 + ], + [ + 493.36511999999993, + 282.46416 + ], + [ + 466.4807593220338, + 282.46416 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 95.97887999999999, + 285.41087999999996 + ], + [ + 113.06050133333332, + 285.41087999999996 + ], + [ + 113.06050133333332, + 307.3008 + ], + [ + 95.97887999999999, + 307.3008 + ] + ] + }, + { + "text": "buy", + "box": [ + [ + 113.06050133333332, + 285.41087999999996 + ], + [ + 138.68293333333332, + 285.41087999999996 + ], + [ + 138.68293333333332, + 307.3008 + ], + [ + 113.06050133333332, + 307.3008 + ] + ] + }, + { + "text": "them.", + "box": [ + [ + 138.68293333333332, + 285.41087999999996 + ], + [ + 181.38698666666664, + 285.41087999999996 + ], + [ + 181.38698666666664, + 307.3008 + ], + [ + 138.68293333333332, + 307.3008 + ] + ] + }, + { + "text": "So", + "box": [ + [ + 181.38698666666664, + 285.41087999999996 + ], + [ + 198.468608, + 285.41087999999996 + ], + [ + 198.468608, + 307.3008 + ], + [ + 181.38698666666664, + 307.3008 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 198.468608, + 285.41087999999996 + ], + [ + 232.63185066666665, + 285.41087999999996 + ], + [ + 232.63185066666665, + 307.3008 + ], + [ + 198.468608, + 307.3008 + ] + ] + }, + { + "text": "find", + "box": [ + [ + 232.63185066666665, + 285.41087999999996 + ], + [ + 266.79509333333334, + 285.41087999999996 + ], + [ + 266.79509333333334, + 307.3008 + ], + [ + 232.63185066666665, + 307.3008 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 266.79509333333334, + 285.41087999999996 + ], + [ + 275.335904, + 285.41087999999996 + ], + [ + 275.335904, + 307.3008 + ], + [ + 266.79509333333334, + 307.3008 + ] + ] + }, + { + "text": "part", + "box": [ + [ + 275.335904, + 285.41087999999996 + ], + [ + 309.4991466666667, + 285.41087999999996 + ], + [ + 309.4991466666667, + 307.3008 + ], + [ + 275.335904, + 307.3008 + ] + ] + }, + { + "text": "-", + "box": [ + [ + 309.4991466666667, + 285.41087999999996 + ], + [ + 318.0399573333334, + 285.41087999999996 + ], + [ + 318.0399573333334, + 307.3008 + ], + [ + 309.4991466666667, + 307.3008 + ] + ] + }, + { + "text": "time", + "box": [ + [ + 318.0399573333334, + 285.41087999999996 + ], + [ + 352.2032000000001, + 285.41087999999996 + ], + [ + 352.2032000000001, + 307.3008 + ], + [ + 318.0399573333334, + 307.3008 + ] + ] + }, + { + "text": "job.", + "box": [ + [ + 352.2032000000001, + 285.41087999999996 + ], + [ + 386.3664426666668, + 285.41087999999996 + ], + [ + 386.3664426666668, + 307.3008 + ], + [ + 352.2032000000001, + 307.3008 + ] + ] + }, + { + "text": "Still", + "box": [ + [ + 386.3664426666668, + 285.41087999999996 + ], + [ + 429.0704960000001, + 285.41087999999996 + ], + [ + 429.0704960000001, + 307.3008 + ], + [ + 386.3664426666668, + 307.3008 + ] + ] + }, + { + "text": "others", + "box": [ + [ + 429.0704960000001, + 285.41087999999996 + ], + [ + 480.31536, + 285.41087999999996 + ], + [ + 480.31536, + 307.3008 + ], + [ + 429.0704960000001, + 307.3008 + ] + ] + }, + { + "text": "do", + "box": [ + [ + 96.8208, + 309.4056 + ], + [ + 114.31402666666668, + 309.4056 + ], + [ + 114.31402666666668, + 328.76976 + ], + [ + 96.8208, + 328.76976 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 114.31402666666668, + 309.4056 + ], + [ + 123.06064, + 309.4056 + ], + [ + 123.06064, + 328.76976 + ], + [ + 114.31402666666668, + 328.76976 + ] + ] + }, + { + "text": "part", + "box": [ + [ + 123.06064, + 309.4056 + ], + [ + 158.04709333333335, + 309.4056 + ], + [ + 158.04709333333335, + 328.76976 + ], + [ + 123.06064, + 328.76976 + ] + ] + }, + { + "text": "-", + "box": [ + [ + 158.04709333333335, + 309.4056 + ], + [ + 166.79370666666668, + 309.4056 + ], + [ + 166.79370666666668, + 328.76976 + ], + [ + 158.04709333333335, + 328.76976 + ] + ] + }, + { + "text": "time", + "box": [ + [ + 166.79370666666668, + 309.4056 + ], + [ + 201.78016000000002, + 309.4056 + ], + [ + 201.78016000000002, + 328.76976 + ], + [ + 166.79370666666668, + 328.76976 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 201.78016000000002, + 309.4056 + ], + [ + 228.02000000000004, + 309.4056 + ], + [ + 228.02000000000004, + 328.76976 + ], + [ + 201.78016000000002, + 328.76976 + ] + ] + }, + { + "text": "m", + "box": [ + [ + 228.02000000000004, + 309.4056 + ], + [ + 236.76661333333337, + 309.4056 + ], + [ + 236.76661333333337, + 328.76976 + ], + [ + 228.02000000000004, + 328.76976 + ] + ] + }, + { + "text": "sake", + "box": [ + [ + 236.76661333333337, + 309.4056 + ], + [ + 271.7530666666667, + 309.4056 + ], + [ + 271.7530666666667, + 328.76976 + ], + [ + 236.76661333333337, + 328.76976 + ] + ] + }, + { + "text": "of", + "box": [ + [ + 271.7530666666667, + 309.4056 + ], + [ + 289.24629333333337, + 309.4056 + ], + [ + 289.24629333333337, + 328.76976 + ], + [ + 271.7530666666667, + 328.76976 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 289.24629333333337, + 309.4056 + ], + [ + 324.2327466666667, + 309.4056 + ], + [ + 324.2327466666667, + 328.76976 + ], + [ + 289.24629333333337, + 328.76976 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 324.2327466666667, + 309.4056 + ], + [ + 359.2192, + 309.4056 + ], + [ + 359.2192, + 328.76976 + ], + [ + 324.2327466666667, + 328.76976 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 359.2192, + 309.4056 + ], + [ + 376.71242666666666, + 309.4056 + ], + [ + 376.71242666666666, + 328.76976 + ], + [ + 359.2192, + 328.76976 + ] + ] + }, + { + "text": "mnciease", + "box": [ + [ + 376.71242666666666, + 309.4056 + ], + [ + 446.68533333333335, + 309.4056 + ], + [ + 446.68533333333335, + 328.76976 + ], + [ + 376.71242666666666, + 328.76976 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 446.68533333333335, + 309.4056 + ], + [ + 490.4184, + 309.4056 + ], + [ + 490.4184, + 328.76976 + ], + [ + 446.68533333333335, + 328.76976 + ] + ] + }, + { + "text": "social", + "box": [ + [ + 98.08368, + 331.71648 + ], + [ + 144.90738461538461, + 331.71648 + ], + [ + 144.90738461538461, + 353.60639999999995 + ], + [ + 98.08368, + 353.60639999999995 + ] + ] + }, + { + "text": "experiences.", + "box": [ + [ + 144.90738461538461, + 331.71648 + ], + [ + 238.55479384615384, + 331.71648 + ], + [ + 238.55479384615384, + 353.60639999999995 + ], + [ + 144.90738461538461, + 353.60639999999995 + ] + ] + }, + { + "text": "They", + "box": [ + [ + 238.55479384615384, + 331.71648 + ], + [ + 269.77059692307694, + 331.71648 + ], + [ + 269.77059692307694, + 353.60639999999995 + ], + [ + 238.55479384615384, + 353.60639999999995 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 269.77059692307694, + 331.71648 + ], + [ + 300.9864, + 331.71648 + ], + [ + 300.9864, + 353.60639999999995 + ], + [ + 269.77059692307694, + 353.60639999999995 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 300.9864, + 331.71648 + ], + [ + 316.59430153846154, + 331.71648 + ], + [ + 316.59430153846154, + 353.60639999999995 + ], + [ + 300.9864, + 353.60639999999995 + ] + ] + }, + { + "text": "get", + "box": [ + [ + 316.59430153846154, + 331.71648 + ], + [ + 340.00615384615384, + 331.71648 + ], + [ + 340.00615384615384, + 353.60639999999995 + ], + [ + 316.59430153846154, + 353.60639999999995 + ] + ] + }, + { + "text": "in", + "box": [ + [ + 340.00615384615384, + 331.71648 + ], + [ + 355.61405538461537, + 331.71648 + ], + [ + 355.61405538461537, + 353.60639999999995 + ], + [ + 340.00615384615384, + 353.60639999999995 + ] + ] + }, + { + "text": "touch", + "box": [ + [ + 355.61405538461537, + 331.71648 + ], + [ + 394.6338092307692, + 331.71648 + ], + [ + 394.6338092307692, + 353.60639999999995 + ], + [ + 355.61405538461537, + 353.60639999999995 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 394.6338092307692, + 331.71648 + ], + [ + 425.84961230769227, + 331.71648 + ], + [ + 425.84961230769227, + 353.60639999999995 + ], + [ + 394.6338092307692, + 353.60639999999995 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 425.84961230769227, + 331.71648 + ], + [ + 449.26146461538457, + 331.71648 + ], + [ + 449.26146461538457, + 353.60639999999995 + ], + [ + 425.84961230769227, + 353.60639999999995 + ] + ] + }, + { + "text": "society", + "box": [ + [ + 449.26146461538457, + 331.71648 + ], + [ + 503.88911999999993, + 331.71648 + ], + [ + 503.88911999999993, + 353.60639999999995 + ], + [ + 449.26146461538457, + 353.60639999999995 + ] + ] + }, + { + "text": "eariier", + "box": [ + [ + 97.66272, + 354.86928 + ], + [ + 159.80007652173913, + 354.86928 + ], + [ + 159.80007652173913, + 376.33824 + ], + [ + 97.66272, + 376.33824 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 159.80007652173913, + 354.86928 + ], + [ + 186.43037217391304, + 354.86928 + ], + [ + 186.43037217391304, + 376.33824 + ], + [ + 159.80007652173913, + 376.33824 + ] + ] + }, + { + "text": "can", + "box": [ + [ + 186.43037217391304, + 354.86928 + ], + [ + 213.06066782608696, + 354.86928 + ], + [ + 213.06066782608696, + 376.33824 + ], + [ + 186.43037217391304, + 376.33824 + ] + ] + }, + { + "text": "learn", + "box": [ + [ + 213.06066782608696, + 354.86928 + ], + [ + 257.44449391304346, + 354.86928 + ], + [ + 257.44449391304346, + 376.33824 + ], + [ + 213.06066782608696, + 376.33824 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 257.44449391304346, + 354.86928 + ], + [ + 266.3212591304348, + 354.86928 + ], + [ + 266.3212591304348, + 376.33824 + ], + [ + 257.44449391304346, + 376.33824 + ] + ] + }, + { + "text": "lot", + "box": [ + [ + 266.3212591304348, + 354.86928 + ], + [ + 292.9515547826087, + 354.86928 + ], + [ + 292.9515547826087, + 376.33824 + ], + [ + 266.3212591304348, + 376.33824 + ] + ] + }, + { + "text": "of", + "box": [ + [ + 292.9515547826087, + 354.86928 + ], + [ + 310.7050852173913, + 354.86928 + ], + [ + 310.7050852173913, + 376.33824 + ], + [ + 292.9515547826087, + 376.33824 + ] + ] + }, + { + "text": "things", + "box": [ + [ + 310.7050852173913, + 354.86928 + ], + [ + 363.9656765217391, + 354.86928 + ], + [ + 363.9656765217391, + 376.33824 + ], + [ + 310.7050852173913, + 376.33824 + ] + ] + }, + { + "text": "while", + "box": [ + [ + 363.9656765217391, + 354.86928 + ], + [ + 408.3495026086956, + 354.86928 + ], + [ + 408.3495026086956, + 376.33824 + ], + [ + 363.9656765217391, + 376.33824 + ] + ] + }, + { + "text": "working", + "box": [ + [ + 408.3495026086956, + 354.86928 + ], + [ + 470.48685913043477, + 354.86928 + ], + [ + 470.48685913043477, + 376.33824 + ], + [ + 408.3495026086956, + 376.33824 + ] + ] + }, + { + "text": "such", + "box": [ + [ + 470.48685913043477, + 354.86928 + ], + [ + 505.99392, + 354.86928 + ], + [ + 505.99392, + 376.33824 + ], + [ + 470.48685913043477, + 376.33824 + ] + ] + }, + { + "text": "as", + "box": [ + [ + 98.9256, + 379.28496 + ], + [ + 113.39415111111111, + 379.28496 + ], + [ + 113.39415111111111, + 399.07007999999996 + ], + [ + 98.9256, + 399.07007999999996 + ] + ] + }, + { + "text": "how", + "box": [ + [ + 113.39415111111111, + 379.28496 + ], + [ + 135.0969777777778, + 379.28496 + ], + [ + 135.0969777777778, + 399.07007999999996 + ], + [ + 113.39415111111111, + 399.07007999999996 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 135.0969777777778, + 379.28496 + ], + [ + 149.5655288888889, + 379.28496 + ], + [ + 149.5655288888889, + 399.07007999999996 + ], + [ + 135.0969777777778, + 399.07007999999996 + ] + ] + }, + { + "text": "interact", + "box": [ + [ + 149.5655288888889, + 379.28496 + ], + [ + 207.43973333333335, + 379.28496 + ], + [ + 207.43973333333335, + 399.07007999999996 + ], + [ + 149.5655288888889, + 399.07007999999996 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 207.43973333333335, + 379.28496 + ], + [ + 236.37683555555557, + 379.28496 + ], + [ + 236.37683555555557, + 399.07007999999996 + ], + [ + 207.43973333333335, + 399.07007999999996 + ] + ] + }, + { + "text": "coctumers.", + "box": [ + [ + 236.37683555555557, + 379.28496 + ], + [ + 308.71959111111113, + 379.28496 + ], + [ + 308.71959111111113, + 399.07007999999996 + ], + [ + 236.37683555555557, + 399.07007999999996 + ] + ] + }, + { + "text": "boss", + "box": [ + [ + 308.71959111111113, + 379.28496 + ], + [ + 337.65669333333335, + 379.28496 + ], + [ + 337.65669333333335, + 399.07007999999996 + ], + [ + 308.71959111111113, + 399.07007999999996 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 337.65669333333335, + 379.28496 + ], + [ + 359.35952000000003, + 379.28496 + ], + [ + 359.35952000000003, + 399.07007999999996 + ], + [ + 337.65669333333335, + 399.07007999999996 + ] + ] + }, + { + "text": "colleagues", + "box": [ + [ + 359.35952000000003, + 379.28496 + ], + [ + 431.7022755555556, + 379.28496 + ], + [ + 431.7022755555556, + 399.07007999999996 + ], + [ + 359.35952000000003, + 399.07007999999996 + ] + ] + }, + { + "text": ",", + "box": [ + [ + 431.7022755555556, + 379.28496 + ], + [ + 438.93655111111116, + 379.28496 + ], + [ + 438.93655111111116, + 399.07007999999996 + ], + [ + 431.7022755555556, + 399.07007999999996 + ] + ] + }, + { + "text": "or", + "box": [ + [ + 438.93655111111116, + 379.28496 + ], + [ + 453.40510222222224, + 379.28496 + ], + [ + 453.40510222222224, + 399.07007999999996 + ], + [ + 438.93655111111116, + 399.07007999999996 + ] + ] + }, + { + "text": "how", + "box": [ + [ + 453.40510222222224, + 379.28496 + ], + [ + 475.1079288888889, + 379.28496 + ], + [ + 475.1079288888889, + 399.07007999999996 + ], + [ + 453.40510222222224, + 399.07007999999996 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 475.1079288888889, + 379.28496 + ], + [ + 489.57648, + 379.28496 + ], + [ + 489.57648, + 399.07007999999996 + ], + [ + 475.1079288888889, + 399.07007999999996 + ] + ] + }, + { + "text": "deal", + "box": [ + [ + 96.39984, + 402.43776 + ], + [ + 124.9868509090909, + 402.43776 + ], + [ + 124.9868509090909, + 424.32768 + ], + [ + 96.39984, + 424.32768 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 124.9868509090909, + 402.43776 + ], + [ + 153.5738618181818, + 402.43776 + ], + [ + 153.5738618181818, + 424.32768 + ], + [ + 124.9868509090909, + 424.32768 + ] + ] + }, + { + "text": "tricky", + "box": [ + [ + 153.5738618181818, + 402.43776 + ], + [ + 196.45437818181816, + 402.43776 + ], + [ + 196.45437818181816, + 424.32768 + ], + [ + 153.5738618181818, + 424.32768 + ] + ] + }, + { + "text": "prblems", + "box": [ + [ + 196.45437818181816, + 402.43776 + ], + [ + 246.48164727272723, + 402.43776 + ], + [ + 246.48164727272723, + 424.32768 + ], + [ + 196.45437818181816, + 424.32768 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 246.48164727272723, + 402.43776 + ], + [ + 275.06865818181814, + 402.43776 + ], + [ + 275.06865818181814, + 424.32768 + ], + [ + 246.48164727272723, + 424.32768 + ] + ] + }, + { + "text": "encountering", + "box": [ + [ + 275.06865818181814, + 402.43776 + ], + [ + 360.82969090909086, + 402.43776 + ], + [ + 360.82969090909086, + 424.32768 + ], + [ + 275.06865818181814, + 424.32768 + ] + ] + }, + { + "text": "at", + "box": [ + [ + 360.82969090909086, + 402.43776 + ], + [ + 375.12319636363634, + 402.43776 + ], + [ + 375.12319636363634, + 424.32768 + ], + [ + 360.82969090909086, + 424.32768 + ] + ] + }, + { + "text": "work.", + "box": [ + [ + 375.12319636363634, + 402.43776 + ], + [ + 410.85695999999996, + 402.43776 + ], + [ + 410.85695999999996, + 424.32768 + ], + [ + 375.12319636363634, + 424.32768 + ] + ] + }, + { + "text": "If", + "box": [ + [ + 127.97184, + 425.59056 + ], + [ + 146.53725538461538, + 425.59056 + ], + [ + 146.53725538461538, + 447.05952 + ], + [ + 127.97184, + 447.05952 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 146.53725538461538, + 425.59056 + ], + [ + 155.81996307692307, + 425.59056 + ], + [ + 155.81996307692307, + 447.05952 + ], + [ + 146.53725538461538, + 447.05952 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 155.81996307692307, + 425.59056 + ], + [ + 192.95079384615383, + 425.59056 + ], + [ + 192.95079384615383, + 447.05952 + ], + [ + 155.81996307692307, + 447.05952 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 192.95079384615383, + 425.59056 + ], + [ + 211.51620923076922, + 425.59056 + ], + [ + 211.51620923076922, + 447.05952 + ], + [ + 192.95079384615383, + 447.05952 + ] + ] + }, + { + "text": "have", + "box": [ + [ + 211.51620923076922, + 425.59056 + ], + [ + 248.64704, + 425.59056 + ], + [ + 248.64704, + 447.05952 + ], + [ + 211.51620923076922, + 447.05952 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 248.64704, + 425.59056 + ], + [ + 257.92974769230767, + 425.59056 + ], + [ + 257.92974769230767, + 447.05952 + ], + [ + 248.64704, + 447.05952 + ] + ] + }, + { + "text": "part", + "box": [ + [ + 257.92974769230767, + 425.59056 + ], + [ + 295.06057846153846, + 425.59056 + ], + [ + 295.06057846153846, + 447.05952 + ], + [ + 257.92974769230767, + 447.05952 + ] + ] + }, + { + "text": "-time", + "box": [ + [ + 295.06057846153846, + 425.59056 + ], + [ + 341.4741169230769, + 425.59056 + ], + [ + 341.4741169230769, + 447.05952 + ], + [ + 295.06057846153846, + 447.05952 + ] + ] + }, + { + "text": "Job,", + "box": [ + [ + 341.4741169230769, + 425.59056 + ], + [ + 378.6049476923077, + 425.59056 + ], + [ + 378.6049476923077, + 447.05952 + ], + [ + 341.4741169230769, + 447.05952 + ] + ] + }, + { + "text": "my", + "box": [ + [ + 378.6049476923077, + 425.59056 + ], + [ + 397.1703630769231, + 425.59056 + ], + [ + 397.1703630769231, + 447.05952 + ], + [ + 378.6049476923077, + 447.05952 + ] + ] + }, + { + "text": "reason", + "box": [ + [ + 397.1703630769231, + 425.59056 + ], + [ + 452.86660923076926, + 425.59056 + ], + [ + 452.86660923076926, + 447.05952 + ], + [ + 397.1703630769231, + 447.05952 + ] + ] + }, + { + "text": "will", + "box": [ + [ + 452.86660923076926, + 425.59056 + ], + [ + 489.99744, + 425.59056 + ], + [ + 489.99744, + 447.05952 + ], + [ + 452.86660923076926, + 447.05952 + ] + ] + }, + { + "text": "be", + "box": [ + [ + 93.45311999999998, + 449.58527999999995 + ], + [ + 110.30870204081631, + 449.58527999999995 + ], + [ + 110.30870204081631, + 469.79135999999994 + ], + [ + 93.45311999999998, + 469.79135999999994 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 110.30870204081631, + 449.58527999999995 + ], + [ + 135.5920751020408, + 449.58527999999995 + ], + [ + 135.5920751020408, + 469.79135999999994 + ], + [ + 110.30870204081631, + 469.79135999999994 + ] + ] + }, + { + "text": "third", + "box": [ + [ + 135.5920751020408, + 449.58527999999995 + ], + [ + 177.73103020408163, + 449.58527999999995 + ], + [ + 177.73103020408163, + 469.79135999999994 + ], + [ + 135.5920751020408, + 469.79135999999994 + ] + ] + }, + { + "text": "one", + "box": [ + [ + 177.73103020408163, + 449.58527999999995 + ], + [ + 203.01440326530613, + 449.58527999999995 + ], + [ + 203.01440326530613, + 469.79135999999994 + ], + [ + 177.73103020408163, + 469.79135999999994 + ] + ] + }, + { + "text": "in", + "box": [ + [ + 203.01440326530613, + 449.58527999999995 + ], + [ + 219.86998530612246, + 449.58527999999995 + ], + [ + 219.86998530612246, + 469.79135999999994 + ], + [ + 203.01440326530613, + 469.79135999999994 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 219.86998530612246, + 449.58527999999995 + ], + [ + 245.15335836734695, + 449.58527999999995 + ], + [ + 245.15335836734695, + 469.79135999999994 + ], + [ + 219.86998530612246, + 469.79135999999994 + ] + ] + }, + { + "text": "prevous", + "box": [ + [ + 245.15335836734695, + 449.58527999999995 + ], + [ + 304.1478955102041, + 449.58527999999995 + ], + [ + 304.1478955102041, + 469.79135999999994 + ], + [ + 245.15335836734695, + 469.79135999999994 + ] + ] + }, + { + "text": "paragraph", + "box": [ + [ + 304.1478955102041, + 449.58527999999995 + ], + [ + 379.99801469387756, + 449.58527999999995 + ], + [ + 379.99801469387756, + 469.79135999999994 + ], + [ + 304.1478955102041, + 469.79135999999994 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 379.99801469387756, + 449.58527999999995 + ], + [ + 388.42580571428573, + 449.58527999999995 + ], + [ + 388.42580571428573, + 469.79135999999994 + ], + [ + 379.99801469387756, + 469.79135999999994 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 388.42580571428573, + 449.58527999999995 + ], + [ + 422.1369697959184, + 449.58527999999995 + ], + [ + 422.1369697959184, + 469.79135999999994 + ], + [ + 388.42580571428573, + 469.79135999999994 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 422.1369697959184, + 449.58527999999995 + ], + [ + 438.9925518367347, + 449.58527999999995 + ], + [ + 438.9925518367347, + 469.79135999999994 + ], + [ + 422.1369697959184, + 469.79135999999994 + ] + ] + }, + { + "text": "inctease", + "box": [ + [ + 438.9925518367347, + 449.58527999999995 + ], + [ + 506.41488, + 449.58527999999995 + ], + [ + 506.41488, + 469.79135999999994 + ], + [ + 438.9925518367347, + 469.79135999999994 + ] + ] + }, + { + "text": "my", + "box": [ + [ + 91.76928, + 471.05424 + ], + [ + 105.17210322580645, + 471.05424 + ], + [ + 105.17210322580645, + 495.46992 + ], + [ + 91.76928, + 495.46992 + ] + ] + }, + { + "text": "soclal", + "box": [ + [ + 105.17210322580645, + 471.05424 + ], + [ + 145.3805729032258, + 471.05424 + ], + [ + 145.3805729032258, + 495.46992 + ], + [ + 105.17210322580645, + 495.46992 + ] + ] + }, + { + "text": "experiences", + "box": [ + [ + 145.3805729032258, + 471.05424 + ], + [ + 219.0961006451613, + 471.05424 + ], + [ + 219.0961006451613, + 495.46992 + ], + [ + 145.3805729032258, + 495.46992 + ] + ] + }, + { + "text": "Lving", + "box": [ + [ + 219.0961006451613, + 471.05424 + ], + [ + 252.60315870967742, + 471.05424 + ], + [ + 252.60315870967742, + 495.46992 + ], + [ + 219.0961006451613, + 495.46992 + ] + ] + }, + { + "text": "under", + "box": [ + [ + 252.60315870967742, + 471.05424 + ], + [ + 286.11021677419353, + 471.05424 + ], + [ + 286.11021677419353, + 495.46992 + ], + [ + 252.60315870967742, + 495.46992 + ] + ] + }, + { + "text": "my", + "box": [ + [ + 286.11021677419353, + 471.05424 + ], + [ + 299.51304, + 471.05424 + ], + [ + 299.51304, + 495.46992 + ], + [ + 286.11021677419353, + 495.46992 + ] + ] + }, + { + "text": "parents'", + "box": [ + [ + 299.51304, + 471.05424 + ], + [ + 353.1243329032258, + 471.05424 + ], + [ + 353.1243329032258, + 495.46992 + ], + [ + 299.51304, + 495.46992 + ] + ] + }, + { + "text": "protection", + "box": [ + [ + 353.1243329032258, + 471.05424 + ], + [ + 420.1384490322581, + 471.05424 + ], + [ + 420.1384490322581, + 495.46992 + ], + [ + 353.1243329032258, + 495.46992 + ] + ] + }, + { + "text": "since", + "box": [ + [ + 420.1384490322581, + 471.05424 + ], + [ + 453.6455070967742, + 471.05424 + ], + [ + 453.6455070967742, + 495.46992 + ], + [ + 420.1384490322581, + 495.46992 + ] + ] + }, + { + "text": "childhus", + "box": [ + [ + 453.6455070967742, + 471.05424 + ], + [ + 507.2568, + 471.05424 + ], + [ + 507.2568, + 495.46992 + ], + [ + 453.6455070967742, + 495.46992 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 97.66272, + 521.1484800000001 + ], + [ + 106.23159466666667, + 521.1484800000001 + ], + [ + 106.23159466666667, + 540.5126399999999 + ], + [ + 97.66272, + 540.5126399999999 + ] + ] + }, + { + "text": "don't", + "box": [ + [ + 106.23159466666667, + 521.1484800000001 + ], + [ + 149.075968, + 521.1484800000001 + ], + [ + 149.075968, + 540.5126399999999 + ], + [ + 106.23159466666667, + 540.5126399999999 + ] + ] + }, + { + "text": "know", + "box": [ + [ + 149.075968, + 521.1484800000001 + ], + [ + 183.35146666666665, + 521.1484800000001 + ], + [ + 183.35146666666665, + 540.5126399999999 + ], + [ + 149.075968, + 540.5126399999999 + ] + ] + }, + { + "text": "how", + "box": [ + [ + 183.35146666666665, + 521.1484800000001 + ], + [ + 209.05809066666666, + 521.1484800000001 + ], + [ + 209.05809066666666, + 540.5126399999999 + ], + [ + 183.35146666666665, + 540.5126399999999 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 209.05809066666666, + 521.1484800000001 + ], + [ + 226.19584, + 521.1484800000001 + ], + [ + 226.19584, + 540.5126399999999 + ], + [ + 209.05809066666666, + 540.5126399999999 + ] + ] + }, + { + "text": "Interact", + "box": [ + [ + 226.19584, + 521.1484800000001 + ], + [ + 294.74683733333336, + 521.1484800000001 + ], + [ + 294.74683733333336, + 540.5126399999999 + ], + [ + 226.19584, + 540.5126399999999 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 294.74683733333336, + 521.1484800000001 + ], + [ + 329.02233600000005, + 521.1484800000001 + ], + [ + 329.02233600000005, + 540.5126399999999 + ], + [ + 294.74683733333336, + 540.5126399999999 + ] + ] + }, + { + "text": "strangers", + "box": [ + [ + 329.02233600000005, + 521.1484800000001 + ], + [ + 406.1422080000001, + 521.1484800000001 + ], + [ + 406.1422080000001, + 540.5126399999999 + ], + [ + 329.02233600000005, + 540.5126399999999 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 406.1422080000001, + 521.1484800000001 + ], + [ + 431.8488320000001, + 521.1484800000001 + ], + [ + 431.8488320000001, + 540.5126399999999 + ], + [ + 406.1422080000001, + 540.5126399999999 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 431.8488320000001, + 521.1484800000001 + ], + [ + 440.41770666666673, + 521.1484800000001 + ], + [ + 440.41770666666673, + 540.5126399999999 + ], + [ + 431.8488320000001, + 540.5126399999999 + ] + ] + }, + { + "text": "don't", + "box": [ + [ + 440.41770666666673, + 521.1484800000001 + ], + [ + 483.26208, + 521.1484800000001 + ], + [ + 483.26208, + 540.5126399999999 + ], + [ + 440.41770666666673, + 540.5126399999999 + ] + ] + }, + { + "text": "know", + "box": [ + [ + 95.97887999999999, + 543.88032 + ], + [ + 133.63939902439023, + 543.88032 + ], + [ + 133.63939902439023, + 563.66544 + ], + [ + 95.97887999999999, + 563.66544 + ] + ] + }, + { + "text": "what", + "box": [ + [ + 133.63939902439023, + 543.88032 + ], + [ + 171.29991804878046, + 543.88032 + ], + [ + 171.29991804878046, + 563.66544 + ], + [ + 133.63939902439023, + 563.66544 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 171.29991804878046, + 543.88032 + ], + [ + 180.71504780487803, + 543.88032 + ], + [ + 180.71504780487803, + 563.66544 + ], + [ + 171.29991804878046, + 563.66544 + ] + ] + }, + { + "text": "will", + "box": [ + [ + 180.71504780487803, + 543.88032 + ], + [ + 218.37556682926828, + 543.88032 + ], + [ + 218.37556682926828, + 563.66544 + ], + [ + 180.71504780487803, + 563.66544 + ] + ] + }, + { + "text": "meet", + "box": [ + [ + 218.37556682926828, + 543.88032 + ], + [ + 256.0360858536585, + 543.88032 + ], + [ + 256.0360858536585, + 563.66544 + ], + [ + 218.37556682926828, + 563.66544 + ] + ] + }, + { + "text": "when", + "box": [ + [ + 256.0360858536585, + 543.88032 + ], + [ + 293.69660487804873, + 543.88032 + ], + [ + 293.69660487804873, + 563.66544 + ], + [ + 256.0360858536585, + 563.66544 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 293.69660487804873, + 543.88032 + ], + [ + 303.1117346341463, + 543.88032 + ], + [ + 303.1117346341463, + 563.66544 + ], + [ + 293.69660487804873, + 563.66544 + ] + ] + }, + { + "text": "am", + "box": [ + [ + 303.1117346341463, + 543.88032 + ], + [ + 321.9419941463414, + 543.88032 + ], + [ + 321.9419941463414, + 563.66544 + ], + [ + 303.1117346341463, + 563.66544 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 321.9419941463414, + 543.88032 + ], + [ + 331.35712390243896, + 543.88032 + ], + [ + 331.35712390243896, + 563.66544 + ], + [ + 321.9419941463414, + 563.66544 + ] + ] + }, + { + "text": "society", + "box": [ + [ + 331.35712390243896, + 543.88032 + ], + [ + 397.26303219512187, + 543.88032 + ], + [ + 397.26303219512187, + 563.66544 + ], + [ + 331.35712390243896, + 563.66544 + ] + ] + }, + { + "text": "freshman.", + "box": [ + [ + 397.26303219512187, + 543.88032 + ], + [ + 481.9991999999999, + 543.88032 + ], + [ + 481.9991999999999, + 563.66544 + ], + [ + 397.26303219512187, + 563.66544 + ] + ] + }, + { + "text": "Since", + "box": [ + [ + 97.66272, + 564.0864 + ], + [ + 137.569728, + 564.0864 + ], + [ + 137.569728, + 589.3439999999999 + ], + [ + 97.66272, + 589.3439999999999 + ] + ] + }, + { + "text": "family", + "box": [ + [ + 137.569728, + 564.0864 + ], + [ + 185.4581376, + 564.0864 + ], + [ + 185.4581376, + 589.3439999999999 + ], + [ + 137.569728, + 589.3439999999999 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 185.4581376, + 564.0864 + ], + [ + 209.40234239999998, + 564.0864 + ], + [ + 209.40234239999998, + 589.3439999999999 + ], + [ + 185.4581376, + 589.3439999999999 + ] + ] + }, + { + "text": "schools", + "box": [ + [ + 209.40234239999998, + 564.0864 + ], + [ + 265.27215359999997, + 564.0864 + ], + [ + 265.27215359999997, + 589.3439999999999 + ], + [ + 209.40234239999998, + 589.3439999999999 + ] + ] + }, + { + "text": "areso", + "box": [ + [ + 265.27215359999997, + 564.0864 + ], + [ + 305.1791616, + 564.0864 + ], + [ + 305.1791616, + 589.3439999999999 + ], + [ + 265.27215359999997, + 589.3439999999999 + ] + ] + }, + { + "text": "warm-hearted", + "box": [ + [ + 305.1791616, + 564.0864 + ], + [ + 400.95598079999996, + 564.0864 + ], + [ + 400.95598079999996, + 589.3439999999999 + ], + [ + 305.1791616, + 589.3439999999999 + ] + ] + }, + { + "text": "that", + "box": [ + [ + 400.95598079999996, + 564.0864 + ], + [ + 432.88158719999996, + 564.0864 + ], + [ + 432.88158719999996, + 589.3439999999999 + ], + [ + 400.95598079999996, + 589.3439999999999 + ] + ] + }, + { + "text": "everyone", + "box": [ + [ + 432.88158719999996, + 564.0864 + ], + [ + 496.73279999999994, + 564.0864 + ], + [ + 496.73279999999994, + 589.3439999999999 + ], + [ + 432.88158719999996, + 589.3439999999999 + ] + ] + }, + { + "text": "cares", + "box": [ + [ + 97.66272, + 590.60688 + ], + [ + 138.98085913043477, + 590.60688 + ], + [ + 138.98085913043477, + 611.6548799999999 + ], + [ + 97.66272, + 611.6548799999999 + ] + ] + }, + { + "text": "about", + "box": [ + [ + 138.98085913043477, + 590.60688 + ], + [ + 180.29899826086955, + 590.60688 + ], + [ + 180.29899826086955, + 611.6548799999999 + ], + [ + 138.98085913043477, + 611.6548799999999 + ] + ] + }, + { + "text": "your", + "box": [ + [ + 180.29899826086955, + 590.60688 + ], + [ + 213.35350956521737, + 590.60688 + ], + [ + 213.35350956521737, + 611.6548799999999 + ], + [ + 180.29899826086955, + 611.6548799999999 + ] + ] + }, + { + "text": "feehing", + "box": [ + [ + 213.35350956521737, + 590.60688 + ], + [ + 271.19890434782604, + 590.60688 + ], + [ + 271.19890434782604, + 611.6548799999999 + ], + [ + 213.35350956521737, + 611.6548799999999 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 271.19890434782604, + 590.60688 + ], + [ + 295.9897878260869, + 590.60688 + ], + [ + 295.9897878260869, + 611.6548799999999 + ], + [ + 271.19890434782604, + 611.6548799999999 + ] + ] + }, + { + "text": "you", + "box": [ + [ + 295.9897878260869, + 590.60688 + ], + [ + 320.7806713043478, + 590.60688 + ], + [ + 320.7806713043478, + 611.6548799999999 + ], + [ + 295.9897878260869, + 611.6548799999999 + ] + ] + }, + { + "text": "wont", + "box": [ + [ + 320.7806713043478, + 590.60688 + ], + [ + 353.8351826086956, + 590.60688 + ], + [ + 353.8351826086956, + 611.6548799999999 + ], + [ + 320.7806713043478, + 611.6548799999999 + ] + ] + }, + { + "text": "be", + "box": [ + [ + 353.8351826086956, + 590.60688 + ], + [ + 370.3624382608695, + 590.60688 + ], + [ + 370.3624382608695, + 611.6548799999999 + ], + [ + 353.8351826086956, + 611.6548799999999 + ] + ] + }, + { + "text": "neglected,", + "box": [ + [ + 370.3624382608695, + 590.60688 + ], + [ + 452.9987165217391, + 590.60688 + ], + [ + 452.9987165217391, + 611.6548799999999 + ], + [ + 370.3624382608695, + 611.6548799999999 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 452.9987165217391, + 590.60688 + ], + [ + 477.78959999999995, + 590.60688 + ], + [ + 477.78959999999995, + 611.6548799999999 + ], + [ + 452.9987165217391, + 611.6548799999999 + ] + ] + }, + { + "text": "real", + "box": [ + [ + 100.18848, + 611.6548799999999 + ], + [ + 131.28797387755102, + 611.6548799999999 + ], + [ + 131.28797387755102, + 635.22864 + ], + [ + 100.18848, + 635.22864 + ] + ] + }, + { + "text": "society", + "box": [ + [ + 131.28797387755102, + 611.6548799999999 + ], + [ + 185.71208816326532, + 611.6548799999999 + ], + [ + 185.71208816326532, + 635.22864 + ], + [ + 131.28797387755102, + 635.22864 + ] + ] + }, + { + "text": "is", + "box": [ + [ + 185.71208816326532, + 611.6548799999999 + ], + [ + 201.26183510204083, + 611.6548799999999 + ], + [ + 201.26183510204083, + 635.22864 + ], + [ + 185.71208816326532, + 635.22864 + ] + ] + }, + { + "text": "cruel.", + "box": [ + [ + 201.26183510204083, + 611.6548799999999 + ], + [ + 247.91107591836737, + 611.6548799999999 + ], + [ + 247.91107591836737, + 635.22864 + ], + [ + 201.26183510204083, + 635.22864 + ] + ] + }, + { + "text": "Teachers", + "box": [ + [ + 247.91107591836737, + 611.6548799999999 + ], + [ + 310.1100636734694, + 611.6548799999999 + ], + [ + 310.1100636734694, + 635.22864 + ], + [ + 247.91107591836737, + 635.22864 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 310.1100636734694, + 611.6548799999999 + ], + [ + 333.43468408163267, + 611.6548799999999 + ], + [ + 333.43468408163267, + 635.22864 + ], + [ + 310.1100636734694, + 635.22864 + ] + ] + }, + { + "text": "parents", + "box": [ + [ + 333.43468408163267, + 611.6548799999999 + ], + [ + 387.85879836734694, + 611.6548799999999 + ], + [ + 387.85879836734694, + 635.22864 + ], + [ + 333.43468408163267, + 635.22864 + ] + ] + }, + { + "text": "always", + "box": [ + [ + 387.85879836734694, + 611.6548799999999 + ], + [ + 434.5080391836735, + 611.6548799999999 + ], + [ + 434.5080391836735, + 635.22864 + ], + [ + 387.85879836734694, + 635.22864 + ] + ] + }, + { + "text": "tell", + "box": [ + [ + 434.5080391836735, + 611.6548799999999 + ], + [ + 465.6075330612245, + 611.6548799999999 + ], + [ + 465.6075330612245, + 635.22864 + ], + [ + 434.5080391836735, + 635.22864 + ] + ] + }, + { + "text": "us", + "box": [ + [ + 465.6075330612245, + 611.6548799999999 + ], + [ + 481.15728, + 611.6548799999999 + ], + [ + 481.15728, + 635.22864 + ], + [ + 465.6075330612245, + 635.22864 + ] + ] + }, + { + "text": "how", + "box": [ + [ + 99.34656, + 635.6496 + ], + [ + 123.71745702127659, + 635.6496 + ], + [ + 123.71745702127659, + 657.53952 + ], + [ + 99.34656, + 657.53952 + ] + ] + }, + { + "text": "diffent", + "box": [ + [ + 123.71745702127659, + 635.6496 + ], + [ + 180.5828834042553, + 635.6496 + ], + [ + 180.5828834042553, + 657.53952 + ], + [ + 123.71745702127659, + 657.53952 + ] + ] + }, + { + "text": "between", + "box": [ + [ + 180.5828834042553, + 635.6496 + ], + [ + 237.44830978723402, + 635.6496 + ], + [ + 237.44830978723402, + 657.53952 + ], + [ + 180.5828834042553, + 657.53952 + ] + ] + }, + { + "text": "school,", + "box": [ + [ + 237.44830978723402, + 635.6496 + ], + [ + 294.31373617021274, + 635.6496 + ], + [ + 294.31373617021274, + 657.53952 + ], + [ + 237.44830978723402, + 657.53952 + ] + ] + }, + { + "text": "farily", + "box": [ + [ + 294.31373617021274, + 635.6496 + ], + [ + 343.0555302127659, + 635.6496 + ], + [ + 343.0555302127659, + 657.53952 + ], + [ + 294.31373617021274, + 657.53952 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 343.0555302127659, + 635.6496 + ], + [ + 367.42642723404254, + 635.6496 + ], + [ + 367.42642723404254, + 657.53952 + ], + [ + 343.0555302127659, + 657.53952 + ] + ] + }, + { + "text": "soclety.", + "box": [ + [ + 367.42642723404254, + 635.6496 + ], + [ + 432.4154859574468, + 635.6496 + ], + [ + 432.4154859574468, + 657.53952 + ], + [ + 367.42642723404254, + 657.53952 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 432.4154859574468, + 635.6496 + ], + [ + 440.53911829787234, + 635.6496 + ], + [ + 440.53911829787234, + 657.53952 + ], + [ + 432.4154859574468, + 657.53952 + ] + ] + }, + { + "text": "won't", + "box": [ + [ + 440.53911829787234, + 635.6496 + ], + [ + 481.15728, + 635.6496 + ], + [ + 481.15728, + 657.53952 + ], + [ + 440.53911829787234, + 657.53952 + ] + ] + }, + { + "text": "be", + "box": [ + [ + 95.97887999999999, + 657.96048 + ], + [ + 113.24759466666666, + 657.96048 + ], + [ + 113.24759466666666, + 682.3761599999999 + ], + [ + 95.97887999999999, + 682.3761599999999 + ] + ] + }, + { + "text": "prtected", + "box": [ + [ + 113.24759466666666, + 657.96048 + ], + [ + 182.32245333333333, + 657.96048 + ], + [ + 182.32245333333333, + 682.3761599999999 + ], + [ + 113.24759466666666, + 682.3761599999999 + ] + ] + }, + { + "text": "by", + "box": [ + [ + 182.32245333333333, + 657.96048 + ], + [ + 199.59116799999998, + 657.96048 + ], + [ + 199.59116799999998, + 682.3761599999999 + ], + [ + 182.32245333333333, + 682.3761599999999 + ] + ] + }, + { + "text": "my", + "box": [ + [ + 199.59116799999998, + 657.96048 + ], + [ + 216.85988266666664, + 657.96048 + ], + [ + 216.85988266666664, + 682.3761599999999 + ], + [ + 199.59116799999998, + 682.3761599999999 + ] + ] + }, + { + "text": "pavents", + "box": [ + [ + 216.85988266666664, + 657.96048 + ], + [ + 277.30038399999995, + 657.96048 + ], + [ + 277.30038399999995, + 682.3761599999999 + ], + [ + 216.85988266666664, + 682.3761599999999 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 277.30038399999995, + 657.96048 + ], + [ + 303.20345599999996, + 657.96048 + ], + [ + 303.20345599999996, + 682.3761599999999 + ], + [ + 277.30038399999995, + 682.3761599999999 + ] + ] + }, + { + "text": "whole", + "box": [ + [ + 303.20345599999996, + 657.96048 + ], + [ + 346.3752426666666, + 657.96048 + ], + [ + 346.3752426666666, + 682.3761599999999 + ], + [ + 303.20345599999996, + 682.3761599999999 + ] + ] + }, + { + "text": "tife.", + "box": [ + [ + 346.3752426666666, + 657.96048 + ], + [ + 389.5470293333333, + 657.96048 + ], + [ + 389.5470293333333, + 682.3761599999999 + ], + [ + 346.3752426666666, + 682.3761599999999 + ] + ] + }, + { + "text": "The", + "box": [ + [ + 389.5470293333333, + 657.96048 + ], + [ + 415.4501013333333, + 657.96048 + ], + [ + 415.4501013333333, + 682.3761599999999 + ], + [ + 389.5470293333333, + 682.3761599999999 + ] + ] + }, + { + "text": "earlier", + "box": [ + [ + 415.4501013333333, + 657.96048 + ], + [ + 475.8906026666666, + 657.96048 + ], + [ + 475.8906026666666, + 682.3761599999999 + ], + [ + 415.4501013333333, + 682.3761599999999 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 475.8906026666666, + 657.96048 + ], + [ + 484.52495999999996, + 657.96048 + ], + [ + 484.52495999999996, + 682.3761599999999 + ], + [ + 475.8906026666666, + 682.3761599999999 + ] + ] + }, + { + "text": "expennenced", + "box": [ + [ + 97.66272, + 681.11328 + ], + [ + 186.77737469387753, + 681.11328 + ], + [ + 186.77737469387753, + 706.3708799999999 + ], + [ + 97.66272, + 706.3708799999999 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 186.77737469387753, + 681.11328 + ], + [ + 211.0813714285714, + 681.11328 + ], + [ + 211.0813714285714, + 706.3708799999999 + ], + [ + 186.77737469387753, + 706.3708799999999 + ] + ] + }, + { + "text": "get", + "box": [ + [ + 211.0813714285714, + 681.11328 + ], + [ + 235.38536816326527, + 681.11328 + ], + [ + 235.38536816326527, + 706.3708799999999 + ], + [ + 211.0813714285714, + 706.3708799999999 + ] + ] + }, + { + "text": "acquainted", + "box": [ + [ + 235.38536816326527, + 681.11328 + ], + [ + 316.3986906122449, + 681.11328 + ], + [ + 316.3986906122449, + 706.3708799999999 + ], + [ + 235.38536816326527, + 706.3708799999999 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 316.3986906122449, + 681.11328 + ], + [ + 348.8040195918367, + 681.11328 + ], + [ + 348.8040195918367, + 706.3708799999999 + ], + [ + 316.3986906122449, + 706.3708799999999 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 348.8040195918367, + 681.11328 + ], + [ + 373.1080163265306, + 681.11328 + ], + [ + 373.1080163265306, + 706.3708799999999 + ], + [ + 348.8040195918367, + 706.3708799999999 + ] + ] + }, + { + "text": "society,", + "box": [ + [ + 373.1080163265306, + 681.11328 + ], + [ + 437.91867428571425, + 681.11328 + ], + [ + 437.91867428571425, + 706.3708799999999 + ], + [ + 373.1080163265306, + 706.3708799999999 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 437.91867428571425, + 681.11328 + ], + [ + 462.22267102040814, + 681.11328 + ], + [ + 462.22267102040814, + 706.3708799999999 + ], + [ + 437.91867428571425, + 706.3708799999999 + ] + ] + }, + { + "text": "mole", + "box": [ + [ + 462.22267102040814, + 681.11328 + ], + [ + 494.62799999999993, + 681.11328 + ], + [ + 494.62799999999993, + 706.3708799999999 + ], + [ + 462.22267102040814, + 706.3708799999999 + ] + ] + }, + { + "text": "independent", + "box": [ + [ + 99.76751999999999, + 705.108 + ], + [ + 193.81933866666665, + 705.108 + ], + [ + 193.81933866666665, + 726.57696 + ], + [ + 99.76751999999999, + 726.57696 + ] + ] + }, + { + "text": "I'll", + "box": [ + [ + 193.81933866666665, + 705.108 + ], + [ + 228.01999999999998, + 705.108 + ], + [ + 228.01999999999998, + 726.57696 + ], + [ + 193.81933866666665, + 726.57696 + ] + ] + }, + { + "text": "be.", + "box": [ + [ + 228.01999999999998, + 705.108 + ], + [ + 253.67049599999999, + 705.108 + ], + [ + 253.67049599999999, + 726.57696 + ], + [ + 228.01999999999998, + 726.57696 + ] + ] + }, + { + "text": "As", + "box": [ + [ + 253.67049599999999, + 705.108 + ], + [ + 270.77082666666666, + 705.108 + ], + [ + 270.77082666666666, + 726.57696 + ], + [ + 253.67049599999999, + 726.57696 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 270.77082666666666, + 705.108 + ], + [ + 279.320992, + 705.108 + ], + [ + 279.320992, + 726.57696 + ], + [ + 270.77082666666666, + 726.57696 + ] + ] + }, + { + "text": "result,", + "box": [ + [ + 279.320992, + 705.108 + ], + [ + 339.1721493333333, + 705.108 + ], + [ + 339.1721493333333, + 726.57696 + ], + [ + 279.320992, + 726.57696 + ] + ] + }, + { + "text": "I", + "box": [ + [ + 339.1721493333333, + 705.108 + ], + [ + 347.72231466666665, + 705.108 + ], + [ + 347.72231466666665, + 726.57696 + ], + [ + 339.1721493333333, + 726.57696 + ] + ] + }, + { + "text": "would", + "box": [ + [ + 347.72231466666665, + 705.108 + ], + [ + 390.47314133333333, + 705.108 + ], + [ + 390.47314133333333, + 726.57696 + ], + [ + 347.72231466666665, + 726.57696 + ] + ] + }, + { + "text": "hitke", + "box": [ + [ + 390.47314133333333, + 705.108 + ], + [ + 433.223968, + 705.108 + ], + [ + 433.223968, + 726.57696 + ], + [ + 390.47314133333333, + 726.57696 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 433.223968, + 705.108 + ], + [ + 450.32429866666666, + 705.108 + ], + [ + 450.32429866666666, + 726.57696 + ], + [ + 433.223968, + 726.57696 + ] + ] + }, + { + "text": "have", + "box": [ + [ + 450.32429866666666, + 705.108 + ], + [ + 484.52495999999996, + 705.108 + ], + [ + 484.52495999999996, + 726.57696 + ], + [ + 450.32429866666666, + 726.57696 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 95.55792, + 727.41888 + ], + [ + 104.12938212765957, + 727.41888 + ], + [ + 104.12938212765957, + 753.5183999999999 + ], + [ + 95.55792, + 753.5183999999999 + ] + ] + }, + { + "text": "part-", + "box": [ + [ + 104.12938212765957, + 727.41888 + ], + [ + 146.98669276595743, + 727.41888 + ], + [ + 146.98669276595743, + 753.5183999999999 + ], + [ + 104.12938212765957, + 753.5183999999999 + ] + ] + }, + { + "text": "time", + "box": [ + [ + 146.98669276595743, + 727.41888 + ], + [ + 181.27254127659572, + 727.41888 + ], + [ + 181.27254127659572, + 753.5183999999999 + ], + [ + 146.98669276595743, + 753.5183999999999 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 181.27254127659572, + 727.41888 + ], + [ + 206.98692765957443, + 727.41888 + ], + [ + 206.98692765957443, + 753.5183999999999 + ], + [ + 181.27254127659572, + 753.5183999999999 + ] + ] + }, + { + "text": "m", + "box": [ + [ + 206.98692765957443, + 727.41888 + ], + [ + 215.558389787234, + 727.41888 + ], + [ + 215.558389787234, + 753.5183999999999 + ], + [ + 206.98692765957443, + 753.5183999999999 + ] + ] + }, + { + "text": "order", + "box": [ + [ + 215.558389787234, + 727.41888 + ], + [ + 258.4157004255319, + 727.41888 + ], + [ + 258.4157004255319, + 753.5183999999999 + ], + [ + 215.558389787234, + 753.5183999999999 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 258.4157004255319, + 727.41888 + ], + [ + 275.55862468085104, + 727.41888 + ], + [ + 275.55862468085104, + 753.5183999999999 + ], + [ + 258.4157004255319, + 753.5183999999999 + ] + ] + }, + { + "text": "adjust", + "box": [ + [ + 275.55862468085104, + 727.41888 + ], + [ + 326.9873974468085, + 727.41888 + ], + [ + 326.9873974468085, + 753.5183999999999 + ], + [ + 275.55862468085104, + 753.5183999999999 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 326.9873974468085, + 727.41888 + ], + [ + 352.7017838297872, + 727.41888 + ], + [ + 352.7017838297872, + 753.5183999999999 + ], + [ + 326.9873974468085, + 753.5183999999999 + ] + ] + }, + { + "text": "soclety", + "box": [ + [ + 352.7017838297872, + 727.41888 + ], + [ + 412.7020187234042, + 727.41888 + ], + [ + 412.7020187234042, + 753.5183999999999 + ], + [ + 352.7017838297872, + 753.5183999999999 + ] + ] + }, + { + "text": "earther", + "box": [ + [ + 412.7020187234042, + 727.41888 + ], + [ + 472.7022536170212, + 727.41888 + ], + [ + 472.7022536170212, + 753.5183999999999 + ], + [ + 412.7020187234042, + 753.5183999999999 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 472.7022536170212, + 727.41888 + ], + [ + 498.4166399999999, + 727.41888 + ], + [ + 498.4166399999999, + 753.5183999999999 + ], + [ + 472.7022536170212, + 753.5183999999999 + ] + ] + }, + { + "text": "gaining", + "box": [ + [ + 104.81903999999999, + 753.9393600000001 + ], + [ + 154.35199999999998, + 753.9393600000001 + ], + [ + 154.35199999999998, + 775.8292799999999 + ], + [ + 104.81903999999999, + 775.8292799999999 + ] + ] + }, + { + "text": "more", + "box": [ + [ + 154.35199999999998, + 753.9393600000001 + ], + [ + 182.65654857142854, + 753.9393600000001 + ], + [ + 182.65654857142854, + 775.8292799999999 + ], + [ + 154.35199999999998, + 775.8292799999999 + ] + ] + }, + { + "text": "explences.", + "box": [ + [ + 182.65654857142854, + 753.9393600000001 + ], + [ + 253.41791999999998, + 753.9393600000001 + ], + [ + 253.41791999999998, + 775.8292799999999 + ], + [ + 182.65654857142854, + 775.8292799999999 + ] + ] + }, + { + "text": "/1", + "box": [ + [ + 557.3510399999999, + 814.97856 + ], + [ + 573.7684800000001, + 814.97856 + ], + [ + 573.7684800000001, + 829.7121599999999 + ], + [ + 557.3510399999999, + 829.7121599999999 + ] + ] + }, + { + "text": "https://www.ceec.edu.tw/files/file_pool/1/0J116514996102279908/106-e-02-1.png", + "box": [ + [ + 22.31088, + 815.82048 + ], + [ + 289.62048, + 816.2414399999999 + ], + [ + 289.62048, + 829.2912 + ], + [ + 22.31088, + 828.87024 + ] + ] + } + ] +] \ No newline at end of file diff --git a/eat-rs/tests/fixtures/standard-test.pdf b/eat-rs/tests/fixtures/standard-test.pdf new file mode 100644 index 0000000..b07d4a2 Binary files /dev/null and b/eat-rs/tests/fixtures/standard-test.pdf differ diff --git a/eat-rs/tests/fixtures/standard-test_annotated.pdf b/eat-rs/tests/fixtures/standard-test_annotated.pdf new file mode 100644 index 0000000..4e2d925 Binary files /dev/null and b/eat-rs/tests/fixtures/standard-test_annotated.pdf differ diff --git a/eat-rs/tests/fixtures/standard-test_errors.json b/eat-rs/tests/fixtures/standard-test_errors.json new file mode 100644 index 0000000..2346854 --- /dev/null +++ b/eat-rs/tests/fixtures/standard-test_errors.json @@ -0,0 +1,38 @@ +[ + { + "original": "doing part-time job", + "type": "grammar", + "suggestion": "doing part-time jobs", + "page": 0 + }, + { + "original": "their parents burden", + "type": "grammar", + "suggestion": "their parents' burden", + "page": 0 + }, + { + "original": "their tuition or something else", + "type": "grammar", + "suggestion": "their tuition or other expenses", + "page": 0 + }, + { + "original": "part-time hob", + "type": "spelling", + "suggestion": "part-time job", + "page": 0 + }, + { + "original": "in sake of", + "type": "spelling", + "suggestion": "for the sake of", + "page": 0 + }, + { + "original": "costumers", + "type": "spelling", + "suggestion": "customers", + "page": 0 + } +] \ No newline at end of file diff --git a/eat-rs/tests/fixtures/standard-test_ocr.json b/eat-rs/tests/fixtures/standard-test_ocr.json new file mode 100644 index 0000000..831cc67 --- /dev/null +++ b/eat-rs/tests/fixtures/standard-test_ocr.json @@ -0,0 +1,3196 @@ +{ + "0": [ + { + "text": "Students", + "box": [ + [ + 72.0, + 72.35986328125 + ], + [ + 115.39299011230469, + 72.35986328125 + ], + [ + 115.39299011230469, + 84.64892578125 + ], + [ + 72.0, + 84.64892578125 + ] + ] + }, + { + "text": "doing", + "box": [ + [ + 118.44306945800781, + 72.35986328125 + ], + [ + 145.34117126464844, + 72.35986328125 + ], + [ + 145.34117126464844, + 84.64892578125 + ], + [ + 118.44306945800781, + 84.64892578125 + ] + ] + }, + { + "text": "part-time", + "box": [ + [ + 148.39248657226562, + 72.35986328125 + ], + [ + 191.76275634765625, + 72.35986328125 + ], + [ + 191.76275634765625, + 84.64892578125 + ], + [ + 148.39248657226562, + 84.64892578125 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 194.8140869140625, + 72.35986328125 + ], + [ + 209.4855194091797, + 72.35986328125 + ], + [ + 209.4855194091797, + 84.64892578125 + ], + [ + 194.8140869140625, + 84.64892578125 + ] + ] + }, + { + "text": "has", + "box": [ + [ + 212.53683471679688, + 72.35986328125 + ], + [ + 230.26348876953125, + 72.35986328125 + ], + [ + 230.26348876953125, + 84.64892578125 + ], + [ + 212.53683471679688, + 84.64892578125 + ] + ] + }, + { + "text": "become", + "box": [ + [ + 233.31356811523438, + 72.35986328125 + ], + [ + 272.4222412109375, + 72.35986328125 + ], + [ + 272.4222412109375, + 84.64892578125 + ], + [ + 233.31356811523438, + 84.64892578125 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 275.4735412597656, + 72.35986328125 + ], + [ + 281.58953857421875, + 72.35986328125 + ], + [ + 281.58953857421875, + 84.64892578125 + ], + [ + 275.4735412597656, + 84.64892578125 + ] + ] + }, + { + "text": "trend", + "box": [ + [ + 284.640869140625, + 72.35986328125 + ], + [ + 309.697998046875, + 72.35986328125 + ], + [ + 309.697998046875, + 84.64892578125 + ], + [ + 284.640869140625, + 84.64892578125 + ] + ] + }, + { + "text": "recently.", + "box": [ + [ + 312.74932861328125, + 72.35986328125 + ], + [ + 353.47967529296875, + 72.35986328125 + ], + [ + 353.47967529296875, + 84.64892578125 + ], + [ + 312.74932861328125, + 84.64892578125 + ] + ] + }, + { + "text": "Some", + "box": [ + [ + 356.52960205078125, + 72.35986328125 + ], + [ + 385.2472229003906, + 72.35986328125 + ], + [ + 385.2472229003906, + 84.64892578125 + ], + [ + 356.52960205078125, + 84.64892578125 + ] + ] + }, + { + "text": "students", + "box": [ + [ + 388.29852294921875, + 72.35986328125 + ], + [ + 429.8559265136719, + 72.35986328125 + ], + [ + 429.8559265136719, + 84.64892578125 + ], + [ + 388.29852294921875, + 84.64892578125 + ] + ] + }, + { + "text": "find", + "box": [ + [ + 432.906005859375, + 72.35986328125 + ], + [ + 450.6314392089844, + 72.35986328125 + ], + [ + 450.6314392089844, + 84.64892578125 + ], + [ + 432.906005859375, + 84.64892578125 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 453.6827392578125, + 72.35986328125 + ], + [ + 459.7987365722656, + 72.35986328125 + ], + [ + 459.7987365722656, + 84.64892578125 + ], + [ + 453.6827392578125, + 84.64892578125 + ] + ] + }, + { + "text": "part-time", + "box": [ + [ + 462.8500671386719, + 72.35986328125 + ], + [ + 506.2203369140625, + 72.35986328125 + ], + [ + 506.2203369140625, + 84.64892578125 + ], + [ + 462.8500671386719, + 84.64892578125 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 72.0, + 86.9061279296875 + ], + [ + 86.67144012451172, + 86.9061279296875 + ], + [ + 86.67144012451172, + 99.1951904296875 + ], + [ + 72.0, + 99.1951904296875 + ] + ] + }, + { + "text": "for", + "box": [ + [ + 89.7227554321289, + 86.9061279296875 + ], + [ + 102.55307006835938, + 86.9061279296875 + ], + [ + 102.55307006835938, + 99.1951904296875 + ], + [ + 89.7227554321289, + 99.1951904296875 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 105.60453796386719, + 86.9061279296875 + ], + [ + 126.38517761230469, + 86.9061279296875 + ], + [ + 126.38517761230469, + 99.1951904296875 + ], + [ + 105.60453796386719, + 99.1951904296875 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 129.4352569580078, + 86.9061279296875 + ], + [ + 152.6581268310547, + 86.9061279296875 + ], + [ + 152.6581268310547, + 99.1951904296875 + ], + [ + 129.4352569580078, + 99.1951904296875 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 155.7080841064453, + 86.9061279296875 + ], + [ + 164.87806701660156, + 86.9061279296875 + ], + [ + 164.87806701660156, + 99.1951904296875 + ], + [ + 155.7080841064453, + 99.1951904296875 + ] + ] + }, + { + "text": "help", + "box": [ + [ + 167.92938232421875, + 86.9061279296875 + ], + [ + 188.71414184570312, + 86.9061279296875 + ], + [ + 188.71414184570312, + 99.1951904296875 + ], + [ + 167.92938232421875, + 99.1951904296875 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 191.76547241210938, + 86.9061279296875 + ], + [ + 213.15121459960938, + 86.9061279296875 + ], + [ + 213.15121459960938, + 99.1951904296875 + ], + [ + 191.76547241210938, + 99.1951904296875 + ] + ] + }, + { + "text": "parents.", + "box": [ + [ + 216.2026824951172, + 86.9061279296875 + ], + [ + 255.92457580566406, + 86.9061279296875 + ], + [ + 255.92457580566406, + 99.1951904296875 + ], + [ + 216.2026824951172, + 99.1951904296875 + ] + ] + }, + { + "text": "Their", + "box": [ + [ + 258.97454833984375, + 86.9061279296875 + ], + [ + 284.0207824707031, + 86.9061279296875 + ], + [ + 284.0207824707031, + 99.1951904296875 + ], + [ + 258.97454833984375, + 99.1951904296875 + ] + ] + }, + { + "text": "family’s", + "box": [ + [ + 287.072265625, + 86.9061279296875 + ], + [ + 323.51983642578125, + 86.9061279296875 + ], + [ + 323.51983642578125, + 99.1951904296875 + ], + [ + 287.072265625, + 99.1951904296875 + ] + ] + }, + { + "text": "finance", + "box": [ + [ + 326.5699157714844, + 86.9061279296875 + ], + [ + 362.0180969238281, + 86.9061279296875 + ], + [ + 362.0180969238281, + 99.1951904296875 + ], + [ + 326.5699157714844, + 99.1951904296875 + ] + ] + }, + { + "text": "situation", + "box": [ + [ + 365.06939697265625, + 86.9061279296875 + ], + [ + 406.013671875, + 86.9061279296875 + ], + [ + 406.013671875, + 99.1951904296875 + ], + [ + 365.06939697265625, + 99.1951904296875 + ] + ] + }, + { + "text": "forced", + "box": [ + [ + 409.06500244140625, + 86.9061279296875 + ], + [ + 439.6181945800781, + 86.9061279296875 + ], + [ + 439.6181945800781, + 99.1951904296875 + ], + [ + 409.06500244140625, + 99.1951904296875 + ] + ] + }, + { + "text": "them", + "box": [ + [ + 442.66949462890625, + 86.9061279296875 + ], + [ + 467.1131591796875, + 86.9061279296875 + ], + [ + 467.1131591796875, + 99.1951904296875 + ], + [ + 442.66949462890625, + 99.1951904296875 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 470.1607360839844, + 86.9061279296875 + ], + [ + 479.3307189941406, + 86.9061279296875 + ], + [ + 479.3307189941406, + 99.1951904296875 + ], + [ + 470.1607360839844, + 99.1951904296875 + ] + ] + }, + { + "text": "do", + "box": [ + [ + 482.38201904296875, + 86.9061279296875 + ], + [ + 494.6113586425781, + 86.9061279296875 + ], + [ + 494.6113586425781, + 99.1951904296875 + ], + [ + 482.38201904296875, + 99.1951904296875 + ] + ] + }, + { + "text": "so.", + "box": [ + [ + 497.66265869140625, + 86.9061279296875 + ], + [ + 512.330078125, + 86.9061279296875 + ], + [ + 512.330078125, + 99.1951904296875 + ], + [ + 497.66265869140625, + 99.1951904296875 + ] + ] + }, + { + "text": "They", + "box": [ + [ + 72.0, + 101.452392578125 + ], + [ + 96.44113159179688, + 101.452392578125 + ], + [ + 96.44113159179688, + 113.741455078125 + ], + [ + 72.0, + 113.741455078125 + ] + ] + }, + { + "text": "have", + "box": [ + [ + 99.49120330810547, + 101.452392578125 + ], + [ + 123.3299560546875, + 101.452392578125 + ], + [ + 123.3299560546875, + 113.741455078125 + ], + [ + 99.49120330810547, + 113.741455078125 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 126.38127136230469, + 101.452392578125 + ], + [ + 135.55125427246094, + 101.452392578125 + ], + [ + 135.55125427246094, + 113.741455078125 + ], + [ + 126.38127136230469, + 113.741455078125 + ] + ] + }, + { + "text": "work", + "box": [ + [ + 138.60256958007812, + 101.452392578125 + ], + [ + 161.81459045410156, + 101.452392578125 + ], + [ + 161.81459045410156, + 113.741455078125 + ], + [ + 138.60256958007812, + 113.741455078125 + ] + ] + }, + { + "text": "in", + "box": [ + [ + 164.86465454101562, + 101.452392578125 + ], + [ + 173.4227752685547, + 101.452392578125 + ], + [ + 173.4227752685547, + 113.741455078125 + ], + [ + 164.86465454101562, + 113.741455078125 + ] + ] + }, + { + "text": "order", + "box": [ + [ + 176.47409057617188, + 101.452392578125 + ], + [ + 202.13755798339844, + 101.452392578125 + ], + [ + 202.13755798339844, + 113.741455078125 + ], + [ + 176.47409057617188, + 113.741455078125 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 205.18902587890625, + 101.452392578125 + ], + [ + 214.3590087890625, + 101.452392578125 + ], + [ + 214.3590087890625, + 113.741455078125 + ], + [ + 205.18902587890625, + 113.741455078125 + ] + ] + }, + { + "text": "reduce", + "box": [ + [ + 217.4103240966797, + 101.452392578125 + ], + [ + 251.02288818359375, + 101.452392578125 + ], + [ + 251.02288818359375, + 113.741455078125 + ], + [ + 217.4103240966797, + 113.741455078125 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 254.07420349121094, + 101.452392578125 + ], + [ + 275.4599304199219, + 101.452392578125 + ], + [ + 275.4599304199219, + 113.741455078125 + ], + [ + 254.07420349121094, + 113.741455078125 + ] + ] + }, + { + "text": "parents", + "box": [ + [ + 278.51141357421875, + 101.452392578125 + ], + [ + 315.1792297363281, + 101.452392578125 + ], + [ + 315.1792297363281, + 113.741455078125 + ], + [ + 278.51141357421875, + 113.741455078125 + ] + ] + }, + { + "text": "burden", + "box": [ + [ + 318.22930908203125, + 101.452392578125 + ], + [ + 352.4591064453125, + 101.452392578125 + ], + [ + 352.4591064453125, + 113.741455078125 + ], + [ + 318.22930908203125, + 113.741455078125 + ] + ] + }, + { + "text": "on", + "box": [ + [ + 355.5104064941406, + 101.452392578125 + ], + [ + 367.7397155761719, + 101.452392578125 + ], + [ + 367.7397155761719, + 113.741455078125 + ], + [ + 355.5104064941406, + 113.741455078125 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 370.7910461425781, + 101.452392578125 + ], + [ + 392.1767883300781, + 101.452392578125 + ], + [ + 392.1767883300781, + 113.741455078125 + ], + [ + 370.7910461425781, + 113.741455078125 + ] + ] + }, + { + "text": "tuition", + "box": [ + [ + 395.228271484375, + 101.452392578125 + ], + [ + 424.5631408691406, + 101.452392578125 + ], + [ + 424.5631408691406, + 113.741455078125 + ], + [ + 395.228271484375, + 113.741455078125 + ] + ] + }, + { + "text": "or", + "box": [ + [ + 427.61444091796875, + 101.452392578125 + ], + [ + 437.3907775878906, + 101.452392578125 + ], + [ + 437.3907775878906, + 113.741455078125 + ], + [ + 427.61444091796875, + 113.741455078125 + ] + ] + }, + { + "text": "something", + "box": [ + [ + 440.4422302246094, + 101.452392578125 + ], + [ + 491.1603088378906, + 101.452392578125 + ], + [ + 491.1603088378906, + 113.741455078125 + ], + [ + 440.4422302246094, + 113.741455078125 + ] + ] + }, + { + "text": "else.", + "box": [ + [ + 494.2116394042969, + 101.452392578125 + ], + [ + 517.4344482421875, + 101.452392578125 + ], + [ + 517.4344482421875, + 113.741455078125 + ], + [ + 494.2116394042969, + 113.741455078125 + ] + ] + }, + { + "text": "Other", + "box": [ + [ + 72.0, + 115.9986572265625 + ], + [ + 99.49372100830078, + 115.9986572265625 + ], + [ + 99.49372100830078, + 128.2877197265625 + ], + [ + 72.0, + 128.2877197265625 + ] + ] + }, + { + "text": "students", + "box": [ + [ + 102.54518127441406, + 115.9986572265625 + ], + [ + 144.10256958007812, + 115.9986572265625 + ], + [ + 144.10256958007812, + 128.2877197265625 + ], + [ + 102.54518127441406, + 128.2877197265625 + ] + ] + }, + { + "text": "do", + "box": [ + [ + 147.15264892578125, + 115.9986572265625 + ], + [ + 159.38197326660156, + 115.9986572265625 + ], + [ + 159.38197326660156, + 128.2877197265625 + ], + [ + 147.15264892578125, + 128.2877197265625 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 162.43328857421875, + 115.9986572265625 + ], + [ + 168.54928588867188, + 115.9986572265625 + ], + [ + 168.54928588867188, + 128.2877197265625 + ], + [ + 162.43328857421875, + 128.2877197265625 + ] + ] + }, + { + "text": "part-time", + "box": [ + [ + 171.60060119628906, + 115.9986572265625 + ], + [ + 214.97088623046875, + 115.9986572265625 + ], + [ + 214.97088623046875, + 128.2877197265625 + ], + [ + 171.60060119628906, + 128.2877197265625 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 218.02218627929688, + 115.9986572265625 + ], + [ + 232.69363403320312, + 115.9986572265625 + ], + [ + 232.69363403320312, + 128.2877197265625 + ], + [ + 218.02218627929688, + 128.2877197265625 + ] + ] + }, + { + "text": "not", + "box": [ + [ + 235.7449493408203, + 115.9986572265625 + ], + [ + 251.0296173095703, + 115.9986572265625 + ], + [ + 251.0296173095703, + 128.2877197265625 + ], + [ + 235.7449493408203, + 128.2877197265625 + ] + ] + }, + { + "text": "because", + "box": [ + [ + 254.07957458496094, + 115.9986572265625 + ], + [ + 295.6410827636719, + 115.9986572265625 + ], + [ + 295.6410827636719, + 128.2877197265625 + ], + [ + 254.07957458496094, + 128.2877197265625 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 298.6923828125, + 115.9986572265625 + ], + [ + 320.0781555175781, + 115.9986572265625 + ], + [ + 320.0781555175781, + 128.2877197265625 + ], + [ + 298.6923828125, + 128.2877197265625 + ] + ] + }, + { + "text": "family’s", + "box": [ + [ + 323.1296081542969, + 115.9986572265625 + ], + [ + 359.57720947265625, + 115.9986572265625 + ], + [ + 359.57720947265625, + 128.2877197265625 + ], + [ + 323.1296081542969, + 128.2877197265625 + ] + ] + }, + { + "text": "finance", + "box": [ + [ + 362.6272888183594, + 115.9986572265625 + ], + [ + 398.0754699707031, + 115.9986572265625 + ], + [ + 398.0754699707031, + 128.2877197265625 + ], + [ + 362.6272888183594, + 128.2877197265625 + ] + ] + }, + { + "text": "situation,", + "box": [ + [ + 401.12677001953125, + 115.9986572265625 + ], + [ + 445.1263732910156, + 115.9986572265625 + ], + [ + 445.1263732910156, + 128.2877197265625 + ], + [ + 401.12677001953125, + 128.2877197265625 + ] + ] + }, + { + "text": "but", + "box": [ + [ + 448.1763610839844, + 115.9986572265625 + ], + [ + 463.4610595703125, + 115.9986572265625 + ], + [ + 463.4610595703125, + 128.2877197265625 + ], + [ + 448.1763610839844, + 128.2877197265625 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 466.510986328125, + 115.9986572265625 + ], + [ + 487.2916259765625, + 115.9986572265625 + ], + [ + 487.2916259765625, + 128.2877197265625 + ], + [ + 466.510986328125, + 128.2877197265625 + ] + ] + }, + { + "text": "need", + "box": [ + [ + 490.3417053222656, + 115.9986572265625 + ], + [ + 514.7977294921875, + 115.9986572265625 + ], + [ + 514.7977294921875, + 128.2877197265625 + ], + [ + 490.3417053222656, + 128.2877197265625 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 72.0, + 130.544921875 + ], + [ + 81.16998291015625, + 130.544921875 + ], + [ + 81.16998291015625, + 142.833984375 + ], + [ + 72.0, + 142.833984375 + ] + ] + }, + { + "text": "buy", + "box": [ + [ + 84.22129821777344, + 130.544921875 + ], + [ + 101.94795227050781, + 130.544921875 + ], + [ + 101.94795227050781, + 142.833984375 + ], + [ + 84.22129821777344, + 142.833984375 + ] + ] + }, + { + "text": "things", + "box": [ + [ + 104.99803161621094, + 130.544921875 + ], + [ + 134.33412170410156, + 130.544921875 + ], + [ + 134.33412170410156, + 142.833984375 + ], + [ + 104.99803161621094, + 142.833984375 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 137.38418579101562, + 130.544921875 + ], + [ + 152.66751098632812, + 130.544921875 + ], + [ + 152.66751098632812, + 142.833984375 + ], + [ + 137.38418579101562, + 142.833984375 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 155.71881103515625, + 130.544921875 + ], + [ + 178.94168090820312, + 130.544921875 + ], + [ + 178.94168090820312, + 142.833984375 + ], + [ + 155.71881103515625, + 142.833984375 + ] + ] + }, + { + "text": "such", + "box": [ + [ + 181.9916534423828, + 130.544921875 + ], + [ + 205.21316528320312, + 130.544921875 + ], + [ + 205.21316528320312, + 142.833984375 + ], + [ + 181.9916534423828, + 142.833984375 + ] + ] + }, + { + "text": "as", + "box": [ + [ + 208.2644805908203, + 130.544921875 + ], + [ + 219.8778076171875, + 130.544921875 + ], + [ + 219.8778076171875, + 142.833984375 + ], + [ + 208.2644805908203, + 142.833984375 + ] + ] + }, + { + "text": "basketball", + "box": [ + [ + 222.92788696289062, + 130.544921875 + ], + [ + 272.4248352050781, + 130.544921875 + ], + [ + 272.4248352050781, + 142.833984375 + ], + [ + 222.92788696289062, + 142.833984375 + ] + ] + }, + { + "text": "shoes,", + "box": [ + [ + 275.47894287109375, + 130.544921875 + ], + [ + 307.8691101074219, + 130.544921875 + ], + [ + 307.8691101074219, + 142.833984375 + ], + [ + 275.47894287109375, + 142.833984375 + ] + ] + }, + { + "text": "smartphone", + "box": [ + [ + 310.9190673828125, + 130.544921875 + ], + [ + 368.9688415527344, + 130.544921875 + ], + [ + 368.9688415527344, + 142.833984375 + ], + [ + 310.9190673828125, + 142.833984375 + ] + ] + }, + { + "text": "or", + "box": [ + [ + 372.0201721191406, + 130.544921875 + ], + [ + 381.7964782714844, + 130.544921875 + ], + [ + 381.7964782714844, + 142.833984375 + ], + [ + 372.0201721191406, + 142.833984375 + ] + ] + }, + { + "text": "luxurious", + "box": [ + [ + 384.84796142578125, + 130.544921875 + ], + [ + 428.84210205078125, + 130.544921875 + ], + [ + 428.84210205078125, + 142.833984375 + ], + [ + 384.84796142578125, + 142.833984375 + ] + ] + }, + { + "text": "product.", + "box": [ + [ + 431.89215087890625, + 130.544921875 + ], + [ + 471.6140441894531, + 130.544921875 + ], + [ + 471.6140441894531, + 142.833984375 + ], + [ + 431.89215087890625, + 142.833984375 + ] + ] + }, + { + "text": "Their", + "box": [ + [ + 474.6640319824219, + 130.544921875 + ], + [ + 499.71026611328125, + 130.544921875 + ], + [ + 499.71026611328125, + 142.833984375 + ], + [ + 474.6640319824219, + 142.833984375 + ] + ] + }, + { + "text": "parents", + "box": [ + [ + 72.0, + 145.0911865234375 + ], + [ + 108.66778564453125, + 145.0911865234375 + ], + [ + 108.66778564453125, + 157.3802490234375 + ], + [ + 72.0, + 157.3802490234375 + ] + ] + }, + { + "text": "think", + "box": [ + [ + 111.71786499023438, + 145.0911865234375 + ], + [ + 134.94061279296875, + 145.0911865234375 + ], + [ + 134.94061279296875, + 157.3802490234375 + ], + [ + 111.71786499023438, + 157.3802490234375 + ] + ] + }, + { + "text": "these", + "box": [ + [ + 137.99069213867188, + 145.0911865234375 + ], + [ + 164.8834228515625, + 145.0911865234375 + ], + [ + 164.8834228515625, + 157.3802490234375 + ], + [ + 137.99069213867188, + 157.3802490234375 + ] + ] + }, + { + "text": "aren’t", + "box": [ + [ + 167.93475341796875, + 145.0911865234375 + ], + [ + 195.43533325195312, + 145.0911865234375 + ], + [ + 195.43533325195312, + 157.3802490234375 + ], + [ + 167.93475341796875, + 157.3802490234375 + ] + ] + }, + { + "text": "necessary", + "box": [ + [ + 198.48529052734375, + 145.0911865234375 + ], + [ + 248.58738708496094, + 145.0911865234375 + ], + [ + 248.58738708496094, + 157.3802490234375 + ], + [ + 198.48529052734375, + 157.3802490234375 + ] + ] + }, + { + "text": "things", + "box": [ + [ + 251.63746643066406, + 145.0911865234375 + ], + [ + 280.9735412597656, + 145.0911865234375 + ], + [ + 280.9735412597656, + 157.3802490234375 + ], + [ + 251.63746643066406, + 157.3802490234375 + ] + ] + }, + { + "text": "but", + "box": [ + [ + 284.02362060546875, + 145.0911865234375 + ], + [ + 299.3083190917969, + 145.0911865234375 + ], + [ + 299.3083190917969, + 157.3802490234375 + ], + [ + 284.02362060546875, + 157.3802490234375 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 302.3582763671875, + 145.0911865234375 + ], + [ + 323.138916015625, + 145.0911865234375 + ], + [ + 323.138916015625, + 157.3802490234375 + ], + [ + 302.3582763671875, + 157.3802490234375 + ] + ] + }, + { + "text": "still", + "box": [ + [ + 326.18896484375, + 145.0911865234375 + ], + [ + 342.0652770996094, + 145.0911865234375 + ], + [ + 342.0652770996094, + 157.3802490234375 + ], + [ + 326.18896484375, + 157.3802490234375 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 345.1193542480469, + 145.0911865234375 + ], + [ + 368.3422546386719, + 145.0911865234375 + ], + [ + 368.3422546386719, + 157.3802490234375 + ], + [ + 345.1193542480469, + 157.3802490234375 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 371.3921813964844, + 145.0911865234375 + ], + [ + 380.5621643066406, + 145.0911865234375 + ], + [ + 380.5621643066406, + 157.3802490234375 + ], + [ + 371.3921813964844, + 157.3802490234375 + ] + ] + }, + { + "text": "buy", + "box": [ + [ + 383.6134948730469, + 145.0911865234375 + ], + [ + 401.34014892578125, + 145.0911865234375 + ], + [ + 401.34014892578125, + 157.3802490234375 + ], + [ + 383.6134948730469, + 157.3802490234375 + ] + ] + }, + { + "text": "them.", + "box": [ + [ + 404.39019775390625, + 145.0911865234375 + ], + [ + 431.88543701171875, + 145.0911865234375 + ], + [ + 431.88543701171875, + 157.3802490234375 + ], + [ + 404.39019775390625, + 157.3802490234375 + ] + ] + }, + { + "text": "So", + "box": [ + [ + 434.9354248046875, + 145.0911865234375 + ], + [ + 448.38311767578125, + 145.0911865234375 + ], + [ + 448.38311767578125, + 157.3802490234375 + ], + [ + 434.9354248046875, + 157.3802490234375 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 451.4344177246094, + 145.0911865234375 + ], + [ + 472.2150573730469, + 145.0911865234375 + ], + [ + 472.2150573730469, + 157.3802490234375 + ], + [ + 451.4344177246094, + 157.3802490234375 + ] + ] + }, + { + "text": "find", + "box": [ + [ + 475.2651672363281, + 145.0911865234375 + ], + [ + 492.9906005859375, + 145.0911865234375 + ], + [ + 492.9906005859375, + 157.3802490234375 + ], + [ + 475.2651672363281, + 157.3802490234375 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 496.0418701171875, + 145.0911865234375 + ], + [ + 502.1578674316406, + 145.0911865234375 + ], + [ + 502.1578674316406, + 157.3802490234375 + ], + [ + 496.0418701171875, + 157.3802490234375 + ] + ] + }, + { + "text": "part-time", + "box": [ + [ + 72.0, + 159.637451171875 + ], + [ + 115.37028503417969, + 159.637451171875 + ], + [ + 115.37028503417969, + 171.926513671875 + ], + [ + 72.0, + 171.926513671875 + ] + ] + }, + { + "text": "hob.", + "box": [ + [ + 118.42160034179688, + 159.637451171875 + ], + [ + 139.81959533691406, + 159.637451171875 + ], + [ + 139.81959533691406, + 171.926513671875 + ], + [ + 118.42160034179688, + 171.926513671875 + ] + ] + }, + { + "text": "Still", + "box": [ + [ + 142.8695526123047, + 159.637451171875 + ], + [ + 160.5814666748047, + 159.637451171875 + ], + [ + 160.5814666748047, + 171.926513671875 + ], + [ + 142.8695526123047, + 171.926513671875 + ] + ] + }, + { + "text": "others", + "box": [ + [ + 163.63555908203125, + 159.637451171875 + ], + [ + 194.1900177001953, + 159.637451171875 + ], + [ + 194.1900177001953, + 171.926513671875 + ], + [ + 163.63555908203125, + 171.926513671875 + ] + ] + }, + { + "text": "do", + "box": [ + [ + 197.24008178710938, + 159.637451171875 + ], + [ + 209.46942138671875, + 159.637451171875 + ], + [ + 209.46942138671875, + 171.926513671875 + ], + [ + 197.24008178710938, + 171.926513671875 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 212.52073669433594, + 159.637451171875 + ], + [ + 218.63673400878906, + 159.637451171875 + ], + [ + 218.63673400878906, + 171.926513671875 + ], + [ + 212.52073669433594, + 171.926513671875 + ] + ] + }, + { + "text": "part-time", + "box": [ + [ + 221.68804931640625, + 159.637451171875 + ], + [ + 265.0583190917969, + 159.637451171875 + ], + [ + 265.0583190917969, + 171.926513671875 + ], + [ + 221.68804931640625, + 171.926513671875 + ] + ] + }, + { + "text": "job", + "box": [ + [ + 268.1096496582031, + 159.637451171875 + ], + [ + 282.7810974121094, + 159.637451171875 + ], + [ + 282.7810974121094, + 171.926513671875 + ], + [ + 268.1096496582031, + 171.926513671875 + ] + ] + }, + { + "text": "in", + "box": [ + [ + 285.8323974609375, + 159.637451171875 + ], + [ + 294.3905334472656, + 159.637451171875 + ], + [ + 294.3905334472656, + 171.926513671875 + ], + [ + 285.8323974609375, + 171.926513671875 + ] + ] + }, + { + "text": "sake", + "box": [ + [ + 297.44183349609375, + 159.637451171875 + ], + [ + 320.6633605957031, + 159.637451171875 + ], + [ + 320.6633605957031, + 171.926513671875 + ], + [ + 297.44183349609375, + 171.926513671875 + ] + ] + }, + { + "text": "of", + "box": [ + [ + 323.71466064453125, + 159.637451171875 + ], + [ + 332.885986328125, + 159.637451171875 + ], + [ + 332.885986328125, + 171.926513671875 + ], + [ + 323.71466064453125, + 171.926513671875 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 335.93597412109375, + 159.637451171875 + ], + [ + 356.71661376953125, + 159.637451171875 + ], + [ + 356.71661376953125, + 171.926513671875 + ], + [ + 335.93597412109375, + 171.926513671875 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 359.76666259765625, + 159.637451171875 + ], + [ + 382.9895324707031, + 159.637451171875 + ], + [ + 382.9895324707031, + 171.926513671875 + ], + [ + 359.76666259765625, + 171.926513671875 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 386.03948974609375, + 159.637451171875 + ], + [ + 395.2095031738281, + 159.637451171875 + ], + [ + 395.2095031738281, + 171.926513671875 + ], + [ + 386.03948974609375, + 171.926513671875 + ] + ] + }, + { + "text": "increase", + "box": [ + [ + 398.26080322265625, + 159.637451171875 + ], + [ + 439.81158447265625, + 159.637451171875 + ], + [ + 439.81158447265625, + 171.926513671875 + ], + [ + 398.26080322265625, + 171.926513671875 + ] + ] + }, + { + "text": "their", + "box": [ + [ + 442.86285400390625, + 159.637451171875 + ], + [ + 464.24859619140625, + 159.637451171875 + ], + [ + 464.24859619140625, + 171.926513671875 + ], + [ + 442.86285400390625, + 171.926513671875 + ] + ] + }, + { + "text": "social", + "box": [ + [ + 467.3000793457031, + 159.637451171875 + ], + [ + 495.40301513671875, + 159.637451171875 + ], + [ + 495.40301513671875, + 171.926513671875 + ], + [ + 467.3000793457031, + 171.926513671875 + ] + ] + }, + { + "text": "experiences.", + "box": [ + [ + 72.0, + 174.1837158203125 + ], + [ + 134.328857421875, + 174.1837158203125 + ], + [ + 134.328857421875, + 186.4727783203125 + ], + [ + 72.0, + 186.4727783203125 + ] + ] + }, + { + "text": "They", + "box": [ + [ + 137.3788299560547, + 174.1837158203125 + ], + [ + 161.8199462890625, + 174.1837158203125 + ], + [ + 161.8199462890625, + 186.4727783203125 + ], + [ + 137.3788299560547, + 186.4727783203125 + ] + ] + }, + { + "text": "want", + "box": [ + [ + 164.87002563476562, + 174.1837158203125 + ], + [ + 188.0928955078125, + 174.1837158203125 + ], + [ + 188.0928955078125, + 186.4727783203125 + ], + [ + 164.87002563476562, + 186.4727783203125 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 191.14285278320312, + 174.1837158203125 + ], + [ + 200.31283569335938, + 174.1837158203125 + ], + [ + 200.31283569335938, + 186.4727783203125 + ], + [ + 191.14285278320312, + 186.4727783203125 + ] + ] + }, + { + "text": "get", + "box": [ + [ + 203.36415100097656, + 174.1837158203125 + ], + [ + 218.64881896972656, + 174.1837158203125 + ], + [ + 218.64881896972656, + 186.4727783203125 + ], + [ + 203.36415100097656, + 186.4727783203125 + ] + ] + }, + { + "text": "in", + "box": [ + [ + 221.6987762451172, + 174.1837158203125 + ], + [ + 230.25689697265625, + 174.1837158203125 + ], + [ + 230.25689697265625, + 186.4727783203125 + ], + [ + 221.6987762451172, + 186.4727783203125 + ] + ] + }, + { + "text": "touch", + "box": [ + [ + 233.30819702148438, + 174.1837158203125 + ], + [ + 260.2009582519531, + 174.1837158203125 + ], + [ + 260.2009582519531, + 186.4727783203125 + ], + [ + 233.30819702148438, + 186.4727783203125 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 263.25225830078125, + 174.1837158203125 + ], + [ + 282.80255126953125, + 174.1837158203125 + ], + [ + 282.80255126953125, + 186.4727783203125 + ], + [ + 263.25225830078125, + 186.4727783203125 + ] + ] + }, + { + "text": "the", + "box": [ + [ + 285.8538818359375, + 174.1837158203125 + ], + [ + 301.1371765136719, + 174.1837158203125 + ], + [ + 301.1371765136719, + 186.4727783203125 + ], + [ + 285.8538818359375, + 186.4727783203125 + ] + ] + }, + { + "text": "society", + "box": [ + [ + 304.1884765625, + 174.1837158203125 + ], + [ + 338.4034423828125, + 174.1837158203125 + ], + [ + 338.4034423828125, + 186.4727783203125 + ], + [ + 304.1884765625, + 186.4727783203125 + ] + ] + }, + { + "text": "earlier", + "box": [ + [ + 341.4535217285156, + 174.1837158203125 + ], + [ + 372.0011901855469, + 174.1837158203125 + ], + [ + 372.0011901855469, + 186.4727783203125 + ], + [ + 341.4535217285156, + 186.4727783203125 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 375.05267333984375, + 174.1837158203125 + ], + [ + 393.3953552246094, + 174.1837158203125 + ], + [ + 393.3953552246094, + 186.4727783203125 + ], + [ + 375.05267333984375, + 186.4727783203125 + ] + ] + }, + { + "text": "can", + "box": [ + [ + 396.4466552734375, + 174.1837158203125 + ], + [ + 414.1720886230469, + 174.1837158203125 + ], + [ + 414.1720886230469, + 186.4727783203125 + ], + [ + 396.4466552734375, + 186.4727783203125 + ] + ] + }, + { + "text": "learn", + "box": [ + [ + 417.223388671875, + 174.1837158203125 + ], + [ + 441.6686706542969, + 174.1837158203125 + ], + [ + 441.6686706542969, + 186.4727783203125 + ], + [ + 417.223388671875, + 186.4727783203125 + ] + ] + }, + { + "text": "a", + "box": [ + [ + 444.719970703125, + 174.1837158203125 + ], + [ + 450.8359680175781, + 174.1837158203125 + ], + [ + 450.8359680175781, + 186.4727783203125 + ], + [ + 444.719970703125, + 186.4727783203125 + ] + ] + }, + { + "text": "lot", + "box": [ + [ + 453.88726806640625, + 174.1837158203125 + ], + [ + 465.5007629394531, + 174.1837158203125 + ], + [ + 465.5007629394531, + 186.4727783203125 + ], + [ + 453.88726806640625, + 186.4727783203125 + ] + ] + }, + { + "text": "of", + "box": [ + [ + 468.5506896972656, + 174.1837158203125 + ], + [ + 477.7220458984375, + 174.1837158203125 + ], + [ + 477.7220458984375, + 186.4727783203125 + ], + [ + 468.5506896972656, + 186.4727783203125 + ] + ] + }, + { + "text": "things", + "box": [ + [ + 480.77197265625, + 174.1837158203125 + ], + [ + 510.1080322265625, + 174.1837158203125 + ], + [ + 510.1080322265625, + 186.4727783203125 + ], + [ + 480.77197265625, + 186.4727783203125 + ] + ] + }, + { + "text": "while", + "box": [ + [ + 72.0, + 188.72998046875 + ], + [ + 97.0517578125, + 188.72998046875 + ], + [ + 97.0517578125, + 201.01904296875 + ], + [ + 72.0, + 201.01904296875 + ] + ] + }, + { + "text": "working", + "box": [ + [ + 100.10307312011719, + 188.72998046875 + ], + [ + 137.98263549804688, + 188.72998046875 + ], + [ + 137.98263549804688, + 201.01904296875 + ], + [ + 100.10307312011719, + 201.01904296875 + ] + ] + }, + { + "text": "such", + "box": [ + [ + 141.033935546875, + 188.72998046875 + ], + [ + 164.25546264648438, + 188.72998046875 + ], + [ + 164.25546264648438, + 201.01904296875 + ], + [ + 141.033935546875, + 201.01904296875 + ] + ] + }, + { + "text": "as", + "box": [ + [ + 167.30677795410156, + 188.72998046875 + ], + [ + 178.92010498046875, + 188.72998046875 + ], + [ + 178.92010498046875, + 201.01904296875 + ], + [ + 167.30677795410156, + 201.01904296875 + ] + ] + }, + { + "text": "how", + "box": [ + [ + 181.97018432617188, + 188.72998046875 + ], + [ + 202.1388397216797, + 188.72998046875 + ], + [ + 202.1388397216797, + 201.01904296875 + ], + [ + 181.97018432617188, + 201.01904296875 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 205.18902587890625, + 188.72998046875 + ], + [ + 214.3590087890625, + 188.72998046875 + ], + [ + 214.3590087890625, + 201.01904296875 + ], + [ + 205.18902587890625, + 201.01904296875 + ] + ] + }, + { + "text": "interact", + "box": [ + [ + 217.4103240966797, + 188.72998046875 + ], + [ + 253.4609832763672, + 188.72998046875 + ], + [ + 253.4609832763672, + 201.01904296875 + ], + [ + 217.4103240966797, + 201.01904296875 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 256.5109558105469, + 188.72998046875 + ], + [ + 276.0612487792969, + 188.72998046875 + ], + [ + 276.0612487792969, + 201.01904296875 + ], + [ + 256.5109558105469, + 201.01904296875 + ] + ] + }, + { + "text": "costumers,", + "box": [ + [ + 279.112548828125, + 188.72998046875 + ], + [ + 332.8699035644531, + 188.72998046875 + ], + [ + 332.8699035644531, + 201.01904296875 + ], + [ + 279.112548828125, + 201.01904296875 + ] + ] + }, + { + "text": "boss,", + "box": [ + [ + 335.91986083984375, + 188.72998046875 + ], + [ + 362.19671630859375, + 188.72998046875 + ], + [ + 362.19671630859375, + 201.01904296875 + ], + [ + 335.91986083984375, + 201.01904296875 + ] + ] + }, + { + "text": "and", + "box": [ + [ + 365.24664306640625, + 188.72998046875 + ], + [ + 383.5893249511719, + 188.72998046875 + ], + [ + 383.5893249511719, + 201.01904296875 + ], + [ + 365.24664306640625, + 201.01904296875 + ] + ] + }, + { + "text": "colleagues,", + "box": [ + [ + 386.640625, + 188.72998046875 + ], + [ + 442.2550354003906, + 188.72998046875 + ], + [ + 442.2550354003906, + 201.01904296875 + ], + [ + 386.640625, + 201.01904296875 + ] + ] + }, + { + "text": "or", + "box": [ + [ + 445.30499267578125, + 188.72998046875 + ], + [ + 455.0813293457031, + 188.72998046875 + ], + [ + 455.0813293457031, + 201.01904296875 + ], + [ + 445.30499267578125, + 201.01904296875 + ] + ] + }, + { + "text": "how", + "box": [ + [ + 458.1328125, + 188.72998046875 + ], + [ + 478.3014831542969, + 188.72998046875 + ], + [ + 478.3014831542969, + 201.01904296875 + ], + [ + 458.1328125, + 201.01904296875 + ] + ] + }, + { + "text": "to", + "box": [ + [ + 481.35162353515625, + 188.72998046875 + ], + [ + 490.5216064453125, + 188.72998046875 + ], + [ + 490.5216064453125, + 201.01904296875 + ], + [ + 481.35162353515625, + 201.01904296875 + ] + ] + }, + { + "text": "deal", + "box": [ + [ + 493.57293701171875, + 188.72998046875 + ], + [ + 514.3549194335938, + 188.72998046875 + ], + [ + 514.3549194335938, + 201.01904296875 + ], + [ + 493.57293701171875, + 201.01904296875 + ] + ] + }, + { + "text": "with", + "box": [ + [ + 72.0, + 203.2762451171875 + ], + [ + 91.55029296875, + 203.2762451171875 + ], + [ + 91.55029296875, + 215.5653076171875 + ], + [ + 72.0, + 215.5653076171875 + ] + ] + }, + { + "text": "tricky", + "box": [ + [ + 94.60160827636719, + 203.2762451171875 + ], + [ + 120.25038146972656, + 203.2762451171875 + ], + [ + 120.25038146972656, + 215.5653076171875 + ], + [ + 94.60160827636719, + 215.5653076171875 + ] + ] + }, + { + "text": "problems", + "box": [ + [ + 123.30045318603516, + 203.2762451171875 + ], + [ + 168.51295471191406, + 203.2762451171875 + ], + [ + 168.51295471191406, + 215.5653076171875 + ], + [ + 123.30045318603516, + 215.5653076171875 + ] + ] + }, + { + "text": "they", + "box": [ + [ + 171.56301879882812, + 203.2762451171875 + ], + [ + 192.3436737060547, + 203.2762451171875 + ], + [ + 192.3436737060547, + 215.5653076171875 + ], + [ + 171.56301879882812, + 215.5653076171875 + ] + ] + }, + { + "text": "encountering", + "box": [ + [ + 195.39373779296875, + 203.2762451171875 + ], + [ + 258.95574951171875, + 203.2762451171875 + ], + [ + 258.95574951171875, + 215.5653076171875 + ], + [ + 195.39373779296875, + 215.5653076171875 + ] + ] + }, + { + "text": "at", + "box": [ + [ + 262.0070495605469, + 203.2762451171875 + ], + [ + 271.1783752441406, + 203.2762451171875 + ], + [ + 271.1783752441406, + 215.5653076171875 + ], + [ + 262.0070495605469, + 215.5653076171875 + ] + ] + }, + { + "text": "work.", + "box": [ + [ + 274.22833251953125, + 203.2762451171875 + ], + [ + 300.4944763183594, + 203.2762451171875 + ], + [ + 300.4944763183594, + 215.5653076171875 + ], + [ + 274.22833251953125, + 215.5653076171875 + ] + ] + } + ] +} \ No newline at end of file diff --git a/eat-rs/vendor/fonts/NotoSansCJKtc-Regular.otf b/eat-rs/vendor/fonts/NotoSansCJKtc-Regular.otf new file mode 100644 index 0000000..f9376ba Binary files /dev/null and b/eat-rs/vendor/fonts/NotoSansCJKtc-Regular.otf differ diff --git a/eat-rs/vendor/pdfium-macos-arm64/LICENSE b/eat-rs/vendor/pdfium-macos-arm64/LICENSE new file mode 100644 index 0000000..6ae1fc2 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/LICENSE @@ -0,0 +1,9 @@ +Copyright 2014-2025 Benoit Blanchon + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +This package also includes third-party software. See the licenses/ directory for their respective licenses. diff --git a/eat-rs/vendor/pdfium-macos-arm64/PDFiumConfig.cmake b/eat-rs/vendor/pdfium-macos-arm64/PDFiumConfig.cmake new file mode 100644 index 0000000..3cd9f22 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/PDFiumConfig.cmake @@ -0,0 +1,61 @@ +# PDFium Package Configuration for CMake +# +# To use PDFium in your CMake project: +# +# 1. set the environment variable PDFium_DIR to the folder containing this file. +# 2. in your CMakeLists.txt, add +# find_package(PDFium) +# 3. then link your executable with PDFium +# target_link_libraries(my_exe pdfium) + +include(FindPackageHandleStandardArgs) + +find_path(PDFium_INCLUDE_DIR + NAMES "fpdfview.h" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "include" +) + +set(PDFium_VERSION "159.0.8138.0") + +if(WIN32) + find_file(PDFium_LIBRARY + NAMES "pdfium.dll" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "bin") + + find_file(PDFium_IMPLIB + NAMES "pdfium.dll.lib" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "lib") + + add_library(pdfium SHARED IMPORTED) + set_target_properties(pdfium + PROPERTIES + IMPORTED_LOCATION "${PDFium_LIBRARY}" + IMPORTED_IMPLIB "${PDFium_IMPLIB}" + INTERFACE_INCLUDE_DIRECTORIES "${PDFium_INCLUDE_DIR};${PDFium_INCLUDE_DIR}/cpp" + ) + + find_package_handle_standard_args(PDFium + REQUIRED_VARS PDFium_LIBRARY PDFium_IMPLIB PDFium_INCLUDE_DIR + VERSION_VAR PDFium_VERSION + ) +else() + find_library(PDFium_LIBRARY + NAMES "pdfium" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "lib") + + add_library(pdfium SHARED IMPORTED) + set_target_properties(pdfium + PROPERTIES + IMPORTED_LOCATION "${PDFium_LIBRARY}" + INTERFACE_INCLUDE_DIRECTORIES "${PDFium_INCLUDE_DIR};${PDFium_INCLUDE_DIR}/cpp" + ) + + find_package_handle_standard_args(PDFium + REQUIRED_VARS PDFium_LIBRARY PDFium_INCLUDE_DIR + VERSION_VAR PDFium_VERSION + ) +endif() diff --git a/eat-rs/vendor/pdfium-macos-arm64/README.md b/eat-rs/vendor/pdfium-macos-arm64/README.md new file mode 100644 index 0000000..8314e22 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/README.md @@ -0,0 +1,7 @@ +# Vendored pdfium (macOS arm64) + +Prebuilt binary from https://github.com/bblanchon/pdfium-binaries (latest release, +asset `pdfium-mac-arm64.tgz`). Loaded at runtime via `Pdfium::bind_to_library`; +path resolution order: `$EAT_PDFIUM_LIB` → beside the executable (installed-app +layout) → this vendored path (dev). Other platforms: download the matching +asset and adjust `EatPdf::bind()` candidates. diff --git a/eat-rs/vendor/pdfium-macos-arm64/VERSION b/eat-rs/vendor/pdfium-macos-arm64/VERSION new file mode 100644 index 0000000..5df5591 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/VERSION @@ -0,0 +1,4 @@ +MAJOR=159 +MINOR=0 +BUILD=8138 +PATCH=0 diff --git a/eat-rs/vendor/pdfium-macos-arm64/args.gn b/eat-rs/vendor/pdfium-macos-arm64/args.gn new file mode 100644 index 0000000..c8f72c0 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/args.gn @@ -0,0 +1,10 @@ +clang_use_chrome_plugins = false +is_component_build = false +is_debug = false +pdf_enable_v8 = false +pdf_enable_xfa = false +pdf_is_standalone = true +pdf_use_partition_alloc = false +target_cpu = "arm64" +target_os = "mac" +treat_warnings_as_errors = false diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/cpp/fpdf_deleters.h b/eat-rs/vendor/pdfium-macos-arm64/include/cpp/fpdf_deleters.h new file mode 100644 index 0000000..55b85d9 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/cpp/fpdf_deleters.h @@ -0,0 +1,86 @@ +// Copyright 2017 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_CPP_FPDF_DELETERS_H_ +#define PUBLIC_CPP_FPDF_DELETERS_H_ + +#include "../fpdf_annot.h" +#include "../fpdf_dataavail.h" +#include "../fpdf_edit.h" +#include "../fpdf_formfill.h" +#include "../fpdf_javascript.h" +#include "../fpdf_structtree.h" +#include "../fpdf_text.h" +#include "../fpdf_transformpage.h" +#include "../fpdfview.h" + +// Custom deleters for using FPDF_* types with std::unique_ptr<>. + +struct FPDFAnnotationDeleter { + inline void operator()(FPDF_ANNOTATION annot) { FPDFPage_CloseAnnot(annot); } +}; + +struct FPDFAvailDeleter { + inline void operator()(FPDF_AVAIL avail) { FPDFAvail_Destroy(avail); } +}; + +struct FPDFBitmapDeleter { + inline void operator()(FPDF_BITMAP bitmap) { FPDFBitmap_Destroy(bitmap); } +}; + +struct FPDFClipPathDeleter { + inline void operator()(FPDF_CLIPPATH clip_path) { + FPDF_DestroyClipPath(clip_path); + } +}; + +struct FPDFDocumentDeleter { + inline void operator()(FPDF_DOCUMENT doc) { FPDF_CloseDocument(doc); } +}; + +struct FPDFFontDeleter { + inline void operator()(FPDF_FONT font) { FPDFFont_Close(font); } +}; + +struct FPDFFormHandleDeleter { + inline void operator()(FPDF_FORMHANDLE form) { + FPDFDOC_ExitFormFillEnvironment(form); + } +}; + +struct FPDFJavaScriptActionDeleter { + inline void operator()(FPDF_JAVASCRIPT_ACTION javascript) { + FPDFDoc_CloseJavaScriptAction(javascript); + } +}; + +struct FPDFPageDeleter { + inline void operator()(FPDF_PAGE page) { FPDF_ClosePage(page); } +}; + +struct FPDFPageLinkDeleter { + inline void operator()(FPDF_PAGELINK pagelink) { + FPDFLink_CloseWebLinks(pagelink); + } +}; + +struct FPDFPageObjectDeleter { + inline void operator()(FPDF_PAGEOBJECT object) { + FPDFPageObj_Destroy(object); + } +}; + +struct FPDFStructTreeDeleter { + inline void operator()(FPDF_STRUCTTREE tree) { FPDF_StructTree_Close(tree); } +}; + +struct FPDFTextFindDeleter { + inline void operator()(FPDF_SCHHANDLE handle) { FPDFText_FindClose(handle); } +}; + +struct FPDFTextPageDeleter { + inline void operator()(FPDF_TEXTPAGE text) { FPDFText_ClosePage(text); } +}; + +#endif // PUBLIC_CPP_FPDF_DELETERS_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/cpp/fpdf_scopers.h b/eat-rs/vendor/pdfium-macos-arm64/include/cpp/fpdf_scopers.h new file mode 100644 index 0000000..34cf9c4 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/cpp/fpdf_scopers.h @@ -0,0 +1,67 @@ +// Copyright 2018 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_CPP_FPDF_SCOPERS_H_ +#define PUBLIC_CPP_FPDF_SCOPERS_H_ + +#include +#include + +#include "fpdf_deleters.h" + +// Versions of FPDF types that clean up the object at scope exit. + +using ScopedFPDFAnnotation = + std::unique_ptr::type, + FPDFAnnotationDeleter>; + +using ScopedFPDFAvail = + std::unique_ptr::type, FPDFAvailDeleter>; + +using ScopedFPDFBitmap = + std::unique_ptr::type, FPDFBitmapDeleter>; + +using ScopedFPDFClipPath = + std::unique_ptr::type, + FPDFClipPathDeleter>; + +using ScopedFPDFDocument = + std::unique_ptr::type, + FPDFDocumentDeleter>; + +using ScopedFPDFFont = + std::unique_ptr::type, FPDFFontDeleter>; + +using ScopedFPDFFormHandle = + std::unique_ptr::type, + FPDFFormHandleDeleter>; + +using ScopedFPDFJavaScriptAction = + std::unique_ptr::type, + FPDFJavaScriptActionDeleter>; + +using ScopedFPDFPage = + std::unique_ptr::type, FPDFPageDeleter>; + +using ScopedFPDFPageLink = + std::unique_ptr::type, + FPDFPageLinkDeleter>; + +using ScopedFPDFPageObject = + std::unique_ptr::type, + FPDFPageObjectDeleter>; + +using ScopedFPDFStructTree = + std::unique_ptr::type, + FPDFStructTreeDeleter>; + +using ScopedFPDFTextFind = + std::unique_ptr::type, + FPDFTextFindDeleter>; + +using ScopedFPDFTextPage = + std::unique_ptr::type, + FPDFTextPageDeleter>; + +#endif // PUBLIC_CPP_FPDF_SCOPERS_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_annot.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_annot.h new file mode 100644 index 0000000..b452cfa --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_annot.h @@ -0,0 +1,1044 @@ +// Copyright 2017 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_FPDF_ANNOT_H_ +#define PUBLIC_FPDF_ANNOT_H_ + +#include + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +// NOLINTNEXTLINE(build/include) +#include "fpdf_formfill.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#define FPDF_ANNOT_UNKNOWN 0 +#define FPDF_ANNOT_TEXT 1 +#define FPDF_ANNOT_LINK 2 +#define FPDF_ANNOT_FREETEXT 3 +#define FPDF_ANNOT_LINE 4 +#define FPDF_ANNOT_SQUARE 5 +#define FPDF_ANNOT_CIRCLE 6 +#define FPDF_ANNOT_POLYGON 7 +#define FPDF_ANNOT_POLYLINE 8 +#define FPDF_ANNOT_HIGHLIGHT 9 +#define FPDF_ANNOT_UNDERLINE 10 +#define FPDF_ANNOT_SQUIGGLY 11 +#define FPDF_ANNOT_STRIKEOUT 12 +#define FPDF_ANNOT_STAMP 13 +#define FPDF_ANNOT_CARET 14 +#define FPDF_ANNOT_INK 15 +#define FPDF_ANNOT_POPUP 16 +#define FPDF_ANNOT_FILEATTACHMENT 17 +#define FPDF_ANNOT_SOUND 18 +#define FPDF_ANNOT_MOVIE 19 +#define FPDF_ANNOT_WIDGET 20 +#define FPDF_ANNOT_SCREEN 21 +#define FPDF_ANNOT_PRINTERMARK 22 +#define FPDF_ANNOT_TRAPNET 23 +#define FPDF_ANNOT_WATERMARK 24 +#define FPDF_ANNOT_THREED 25 +#define FPDF_ANNOT_RICHMEDIA 26 +#define FPDF_ANNOT_XFAWIDGET 27 +#define FPDF_ANNOT_REDACT 28 + +// Refer to PDF Reference (6th edition) table 8.16 for all annotation flags. +#define FPDF_ANNOT_FLAG_NONE 0 +#define FPDF_ANNOT_FLAG_INVISIBLE (1 << 0) +#define FPDF_ANNOT_FLAG_HIDDEN (1 << 1) +#define FPDF_ANNOT_FLAG_PRINT (1 << 2) +#define FPDF_ANNOT_FLAG_NOZOOM (1 << 3) +#define FPDF_ANNOT_FLAG_NOROTATE (1 << 4) +#define FPDF_ANNOT_FLAG_NOVIEW (1 << 5) +#define FPDF_ANNOT_FLAG_READONLY (1 << 6) +#define FPDF_ANNOT_FLAG_LOCKED (1 << 7) +#define FPDF_ANNOT_FLAG_TOGGLENOVIEW (1 << 8) + +#define FPDF_ANNOT_APPEARANCEMODE_NORMAL 0 +#define FPDF_ANNOT_APPEARANCEMODE_ROLLOVER 1 +#define FPDF_ANNOT_APPEARANCEMODE_DOWN 2 +#define FPDF_ANNOT_APPEARANCEMODE_COUNT 3 + +// Refer to PDF Reference version 1.7 table 8.70 for field flags common to all +// interactive form field types. +#define FPDF_FORMFLAG_NONE 0 +#define FPDF_FORMFLAG_READONLY (1 << 0) +#define FPDF_FORMFLAG_REQUIRED (1 << 1) +#define FPDF_FORMFLAG_NOEXPORT (1 << 2) + +// Refer to PDF Reference version 1.7 table 8.77 for field flags specific to +// interactive form text fields. +#define FPDF_FORMFLAG_TEXT_MULTILINE (1 << 12) +#define FPDF_FORMFLAG_TEXT_PASSWORD (1 << 13) + +// Refer to PDF Reference version 1.7 table 8.79 for field flags specific to +// interactive form choice fields. +#define FPDF_FORMFLAG_CHOICE_COMBO (1 << 17) +#define FPDF_FORMFLAG_CHOICE_EDIT (1 << 18) +#define FPDF_FORMFLAG_CHOICE_MULTI_SELECT (1 << 21) + +// Additional actions type of form field: +// K, on key stroke, JavaScript action. +// F, on format, JavaScript action. +// V, on validate, JavaScript action. +// C, on calculate, JavaScript action. +#define FPDF_ANNOT_AACTION_KEY_STROKE 12 +#define FPDF_ANNOT_AACTION_FORMAT 13 +#define FPDF_ANNOT_AACTION_VALIDATE 14 +#define FPDF_ANNOT_AACTION_CALCULATE 15 + +typedef enum FPDFANNOT_COLORTYPE { + FPDFANNOT_COLORTYPE_Color = 0, + FPDFANNOT_COLORTYPE_InteriorColor +} FPDFANNOT_COLORTYPE; + +// Experimental API. +// Check if an annotation subtype is currently supported for creation. +// Currently supported subtypes: +// - circle +// - fileattachment +// - freetext +// - highlight +// - ink +// - link +// - popup +// - square, +// - squiggly +// - stamp +// - strikeout +// - text +// - underline +// +// subtype - the subtype to be checked. +// +// Returns true if this subtype supported. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_IsSupportedSubtype(FPDF_ANNOTATION_SUBTYPE subtype); + +// Experimental API. +// Create an annotation in |page| of the subtype |subtype|. If the specified +// subtype is illegal or unsupported, then a new annotation will not be created. +// Must call FPDFPage_CloseAnnot() when the annotation returned by this +// function is no longer needed. +// +// page - handle to a page. +// subtype - the subtype of the new annotation. +// +// Returns a handle to the new annotation object, or NULL on failure. +FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV +FPDFPage_CreateAnnot(FPDF_PAGE page, FPDF_ANNOTATION_SUBTYPE subtype); + +// Experimental API. +// Get the number of annotations in |page|. +// +// page - handle to a page. +// +// Returns the number of annotations in |page|. +FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotCount(FPDF_PAGE page); + +// Experimental API. +// Get annotation in |page| at |index|. Must call FPDFPage_CloseAnnot() when the +// annotation returned by this function is no longer needed. +// +// page - handle to a page. +// index - the index of the annotation. +// +// Returns a handle to the annotation object, or NULL on failure. +FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFPage_GetAnnot(FPDF_PAGE page, + int index); + +// Experimental API. +// Get the index of |annot| in |page|. This is the opposite of +// FPDFPage_GetAnnot(). +// +// page - handle to the page that the annotation is on. +// annot - handle to an annotation. +// +// Returns the index of |annot|, or -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotIndex(FPDF_PAGE page, + FPDF_ANNOTATION annot); + +// Experimental API. +// Close an annotation. Must be called when the annotation returned by +// FPDFPage_CreateAnnot() or FPDFPage_GetAnnot() is no longer needed. This +// function does not remove the annotation from the document. +// +// annot - handle to an annotation. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_CloseAnnot(FPDF_ANNOTATION annot); + +// Experimental API. +// Remove the annotation in |page| at |index|. +// +// page - handle to a page. +// index - the index of the annotation. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_RemoveAnnot(FPDF_PAGE page, + int index); + +// Experimental API. +// Get the subtype of an annotation. +// +// annot - handle to an annotation. +// +// Returns the annotation subtype. +FPDF_EXPORT FPDF_ANNOTATION_SUBTYPE FPDF_CALLCONV +FPDFAnnot_GetSubtype(FPDF_ANNOTATION annot); + +// Experimental API. +// Check if an annotation subtype is currently supported for object extraction, +// update, and removal. +// Currently supported subtypes: ink and stamp. +// +// subtype - the subtype to be checked. +// +// Returns true if this subtype supported. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_IsObjectSupportedSubtype(FPDF_ANNOTATION_SUBTYPE subtype); + +// Experimental API. +// Update |obj| in |annot|. |obj| must be in |annot| already and must have +// been retrieved by FPDFAnnot_GetObject(). Currently, only ink and stamp +// annotations are supported by this API. Also note that only path, image, and +// text objects have APIs for modification; see FPDFPath_*(), FPDFText_*(), and +// FPDFImageObj_*(). +// +// annot - handle to an annotation. +// obj - handle to the object that |annot| needs to update. +// +// Return true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_UpdateObject(FPDF_ANNOTATION annot, FPDF_PAGEOBJECT obj); + +// Experimental API. +// Add a new InkStroke, represented by an array of points, to the InkList of +// |annot|. The API creates an InkList if one doesn't already exist in |annot|. +// This API works only for ink annotations. Please refer to ISO 32000-1:2008 +// spec, section 12.5.6.13. +// +// annot - handle to an annotation. +// points - pointer to a FS_POINTF array representing input points. +// point_count - number of elements in |points| array. This should not exceed +// the maximum value that can be represented by an int32_t). +// +// Returns the 0-based index at which the new InkStroke is added in the InkList +// of the |annot|. Returns -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_AddInkStroke(FPDF_ANNOTATION annot, + const FS_POINTF* points, + size_t point_count); + +// Experimental API. +// Removes an InkList in |annot|. +// This API works only for ink annotations. +// +// annot - handle to an annotation. +// +// Return true on successful removal of /InkList entry from context of the +// non-null ink |annot|. Returns false on failure. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_RemoveInkList(FPDF_ANNOTATION annot); + +// Experimental API. +// Add |obj| to |annot|. |obj| must have been created by +// FPDFPageObj_CreateNew{Path|Rect}() or FPDFPageObj_New{Text|Image}Obj(), and +// will be owned by |annot|. Note that an |obj| cannot belong to more than one +// |annot|. Currently, only ink and stamp annotations are supported by this API. +// Also note that only path, image, and text objects have APIs for creation. +// +// annot - handle to an annotation. +// obj - handle to the object that is to be added to |annot|. +// +// Return true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_AppendObject(FPDF_ANNOTATION annot, FPDF_PAGEOBJECT obj); + +// Experimental API. +// Get the total number of objects in |annot|, including path objects, text +// objects, external objects, image objects, and shading objects. +// +// annot - handle to an annotation. +// +// Returns the number of objects in |annot|. +FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetObjectCount(FPDF_ANNOTATION annot); + +// Experimental API. +// Get the object in |annot| at |index|. +// +// annot - handle to an annotation. +// index - the index of the object. +// +// Return a handle to the object, or NULL on failure. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFAnnot_GetObject(FPDF_ANNOTATION annot, int index); + +// Experimental API. +// Remove the object in |annot| at |index|. +// +// annot - handle to an annotation. +// index - the index of the object to be removed. +// +// Return true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_RemoveObject(FPDF_ANNOTATION annot, int index); + +// Experimental API. +// Set the color of an annotation. Fails when called on annotations with +// appearance streams already defined; instead use +// FPDFPageObj_Set{Stroke|Fill}Color(). +// +// annot - handle to an annotation. +// type - type of the color to be set. +// R, G, B - buffer to hold the RGB value of the color. Ranges from 0 to 255. +// A - buffer to hold the opacity. Ranges from 0 to 255. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetColor(FPDF_ANNOTATION annot, + FPDFANNOT_COLORTYPE type, + unsigned int R, + unsigned int G, + unsigned int B, + unsigned int A); + +// Experimental API. +// Get the color of an annotation. If no color is specified, default to yellow +// for highlight annotation, black for all else. Fails when called on +// annotations with appearance streams already defined; instead use +// FPDFPageObj_Get{Stroke|Fill}Color(). +// +// annot - handle to an annotation. +// type - type of the color requested. +// R, G, B - buffer to hold the RGB value of the color. Ranges from 0 to 255. +// A - buffer to hold the opacity. Ranges from 0 to 255. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetColor(FPDF_ANNOTATION annot, + FPDFANNOT_COLORTYPE type, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + +// Experimental API. +// Check if the annotation is of a type that has attachment points +// (i.e. quadpoints). Quadpoints are the vertices of the rectangle that +// encompasses the texts affected by the annotation. They provide the +// coordinates in the page where the annotation is attached. Only text markup +// annotations (i.e. highlight, strikeout, squiggly, and underline) and link +// annotations have quadpoints. +// +// annot - handle to an annotation. +// +// Returns true if the annotation is of a type that has quadpoints, false +// otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_HasAttachmentPoints(FPDF_ANNOTATION annot); + +// Experimental API. +// Replace the attachment points (i.e. quadpoints) set of an annotation at +// |quad_index|. This index needs to be within the result of +// FPDFAnnot_CountAttachmentPoints(). +// If the annotation's appearance stream is defined and this annotation is of a +// type with quadpoints, then update the bounding box too if the new quadpoints +// define a bigger one. +// +// annot - handle to an annotation. +// quad_index - index of the set of quadpoints. +// quad_points - the quadpoints to be set. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetAttachmentPoints(FPDF_ANNOTATION annot, + size_t quad_index, + const FS_QUADPOINTSF* quad_points); + +// Experimental API. +// Append to the list of attachment points (i.e. quadpoints) of an annotation. +// If the annotation's appearance stream is defined and this annotation is of a +// type with quadpoints, then update the bounding box too if the new quadpoints +// define a bigger one. +// +// annot - handle to an annotation. +// quad_points - the quadpoints to be set. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_AppendAttachmentPoints(FPDF_ANNOTATION annot, + const FS_QUADPOINTSF* quad_points); + +// Experimental API. +// Get the number of sets of quadpoints of an annotation. +// +// annot - handle to an annotation. +// +// Returns the number of sets of quadpoints, or 0 on failure. +FPDF_EXPORT size_t FPDF_CALLCONV +FPDFAnnot_CountAttachmentPoints(FPDF_ANNOTATION annot); + +// Experimental API. +// Get the attachment points (i.e. quadpoints) of an annotation. +// +// annot - handle to an annotation. +// quad_index - index of the set of quadpoints. +// quad_points - receives the quadpoints; must not be NULL. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_GetAttachmentPoints(FPDF_ANNOTATION annot, + size_t quad_index, + FS_QUADPOINTSF* quad_points); + +// Experimental API. +// Set the annotation rectangle defining the location of the annotation. +// +// annot - handle to an annotation. +// rect - the annotation rectangle to be set. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetRect(FPDF_ANNOTATION annot, + const FS_RECTF* rect); + +// Experimental API. +// Get the annotation rectangle defining the location of the annotation. +// +// annot - handle to an annotation. +// rect - receives the rectangle; must not be NULL. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetRect(FPDF_ANNOTATION annot, + FS_RECTF* rect); + +// Experimental API. +// Get the vertices of a polygon or polyline annotation. |buffer| is an array of +// points of the annotation. If |length| is less than the returned length, or +// |annot| or |buffer| is NULL, |buffer| will not be modified. +// +// annot - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot() +// buffer - buffer for holding the points. +// length - length of the buffer in points. +// +// Returns the number of points if the annotation is of type polygon or +// polyline, 0 otherwise. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetVertices(FPDF_ANNOTATION annot, + FS_POINTF* buffer, + unsigned long length); + +// Experimental API. +// Get the number of paths in the ink list of an ink annotation. +// +// annot - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot() +// +// Returns the number of paths in the ink list if the annotation is of type ink, +// 0 otherwise. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetInkListCount(FPDF_ANNOTATION annot); + +// Experimental API. +// Get a path in the ink list of an ink annotation. |buffer| is an array of +// points of the path. If |length| is less than the returned length, or |annot| +// or |buffer| is NULL, |buffer| will not be modified. +// +// annot - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot() +// path_index - index of the path +// buffer - buffer for holding the points. +// length - length of the buffer in points. +// +// Returns the number of points of the path if the annotation is of type ink, 0 +// otherwise. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetInkListPath(FPDF_ANNOTATION annot, + unsigned long path_index, + FS_POINTF* buffer, + unsigned long length); + +// Experimental API. +// Get the starting and ending coordinates of a line annotation. +// +// annot - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot() +// start - starting point +// end - ending point +// +// Returns true if the annotation is of type line, |start| and |end| are not +// NULL, false otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetLine(FPDF_ANNOTATION annot, + FS_POINTF* start, + FS_POINTF* end); + +// Experimental API. +// Set the characteristics of the annotation's border (rounded rectangle). +// +// annot - handle to an annotation +// horizontal_radius - horizontal corner radius, in default user space units +// vertical_radius - vertical corner radius, in default user space units +// border_width - border width, in default user space units +// +// Returns true if setting the border for |annot| succeeds, false otherwise. +// +// If |annot| contains an appearance stream that overrides the border values, +// then the appearance stream will be removed on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetBorder(FPDF_ANNOTATION annot, + float horizontal_radius, + float vertical_radius, + float border_width); + +// Experimental API. +// Get the characteristics of the annotation's border (rounded rectangle). +// +// annot - handle to an annotation +// horizontal_radius - horizontal corner radius, in default user space units +// vertical_radius - vertical corner radius, in default user space units +// border_width - border width, in default user space units +// +// Returns true if |horizontal_radius|, |vertical_radius| and |border_width| are +// not NULL, false otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_GetBorder(FPDF_ANNOTATION annot, + float* horizontal_radius, + float* vertical_radius, + float* border_width); + +// Experimental API. +// Get the JavaScript of an event of the annotation's additional actions. +// |buffer| is only modified if |buflen| is large enough to hold the whole +// JavaScript string. If |buflen| is smaller, the total size of the JavaScript +// is still returned, but nothing is copied. If there is no JavaScript for +// |event| in |annot|, an empty string is written to |buf| and 2 is returned, +// denoting the size of the null terminator in the buffer. On other errors, +// nothing is written to |buffer| and 0 is returned. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// event - event type, one of the FPDF_ANNOT_AACTION_* values. +// buffer - buffer for holding the value string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes, including the 2-byte +// null terminator. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetFormAdditionalActionJavaScript(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + int event, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Check if |annot|'s dictionary has |key| as a key. +// +// annot - handle to an annotation. +// key - the key to look for, encoded in UTF-8. +// +// Returns true if |key| exists. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_HasKey(FPDF_ANNOTATION annot, + FPDF_BYTESTRING key); + +// Experimental API. +// Get the type of the value corresponding to |key| in |annot|'s dictionary. +// +// annot - handle to an annotation. +// key - the key to look for, encoded in UTF-8. +// +// Returns the type of the dictionary value. +FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV +FPDFAnnot_GetValueType(FPDF_ANNOTATION annot, FPDF_BYTESTRING key); + +// Experimental API. +// Set the string value corresponding to |key| in |annot|'s dictionary, +// overwriting the existing value if any. The value type would be +// FPDF_OBJECT_STRING after this function call succeeds. +// +// annot - handle to an annotation. +// key - the key to the dictionary entry to be set, encoded in UTF-8. +// value - the string value to be set, encoded in UTF-16LE. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetStringValue(FPDF_ANNOTATION annot, + FPDF_BYTESTRING key, + FPDF_WIDESTRING value); + +// Experimental API. +// Get the string value corresponding to |key| in |annot|'s dictionary. |buffer| +// is only modified if |buflen| is longer than the length of contents. Note that +// if |key| does not exist in the dictionary or if |key|'s corresponding value +// in the dictionary is not a string (i.e. the value is not of type +// FPDF_OBJECT_STRING or FPDF_OBJECT_NAME), then an empty string would be copied +// to |buffer| and the return value would be 2. On other errors, nothing would +// be added to |buffer| and the return value would be 0. +// +// annot - handle to an annotation. +// key - the key to the requested dictionary entry, encoded in UTF-8. +// buffer - buffer for holding the value string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetStringValue(FPDF_ANNOTATION annot, + FPDF_BYTESTRING key, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Get the float value corresponding to |key| in |annot|'s dictionary. Writes +// value to |value| and returns True if |key| exists in the dictionary and +// |key|'s corresponding value is a number (FPDF_OBJECT_NUMBER), False +// otherwise. +// +// annot - handle to an annotation. +// key - the key to the requested dictionary entry, encoded in UTF-8. +// value - receives the value, must not be NULL. +// +// Returns True if value found, False otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_GetNumberValue(FPDF_ANNOTATION annot, + FPDF_BYTESTRING key, + float* value); + +// Experimental API. +// Set the AP (appearance string) in |annot|'s dictionary for a given +// |appearanceMode|. +// +// annot - handle to an annotation. +// appearanceMode - the appearance mode (normal, rollover or down) for which +// to get the AP. +// value - the string value to be set, encoded in UTF-16LE. If +// nullptr is passed, the AP is cleared for that mode. If the +// mode is Normal, APs for all modes are cleared. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetAP(FPDF_ANNOTATION annot, + FPDF_ANNOT_APPEARANCEMODE appearanceMode, + FPDF_WIDESTRING value); + +// Experimental API. +// Get the AP (appearance string) from |annot|'s dictionary for a given +// |appearanceMode|. +// |buffer| is only modified if |buflen| is large enough to hold the whole AP +// string. If |buflen| is smaller, the total size of the AP is still returned, +// but nothing is copied. +// If there is no appearance stream for |annot| in |appearanceMode|, an empty +// string is written to |buf| and 2 is returned. +// On other errors, nothing is written to |buffer| and 0 is returned. +// +// annot - handle to an annotation. +// appearanceMode - the appearance mode (normal, rollover or down) for which +// to get the AP. +// buffer - buffer for holding the value string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetAP(FPDF_ANNOTATION annot, + FPDF_ANNOT_APPEARANCEMODE appearanceMode, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Get the annotation corresponding to |key| in |annot|'s dictionary. Common +// keys for linking annotations include "IRT" and "Popup". Must call +// FPDFPage_CloseAnnot() when the annotation returned by this function is no +// longer needed. +// +// annot - handle to an annotation. +// key - the key to the requested dictionary entry, encoded in UTF-8. +// +// Returns a handle to the linked annotation object, or NULL on failure. +FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV +FPDFAnnot_GetLinkedAnnot(FPDF_ANNOTATION annot, FPDF_BYTESTRING key); + +// Experimental API. +// Get the annotation flags of |annot|. +// +// annot - handle to an annotation. +// +// Returns the annotation flags. +FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFlags(FPDF_ANNOTATION annot); + +// Experimental API. +// Set the |annot|'s flags to be of the value |flags|. +// +// annot - handle to an annotation. +// flags - the flag values to be set. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetFlags(FPDF_ANNOTATION annot, + int flags); + +// Experimental API. +// Get the annotation flags of |annot|. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// +// Returns the annotation flags specific to interactive forms. +FPDF_EXPORT int FPDF_CALLCONV +FPDFAnnot_GetFormFieldFlags(FPDF_FORMHANDLE handle, + FPDF_ANNOTATION annot); + +// Experimental API. +// Sets the form field flags for an interactive form annotation. +// +// handle - the handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// flags - the form field flags to be set. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetFormFieldFlags(FPDF_FORMHANDLE handle, + FPDF_ANNOTATION annot, + int flags); + +// Experimental API. +// Retrieves an interactive form annotation whose rectangle contains a given +// point on a page. Must call FPDFPage_CloseAnnot() when the annotation returned +// is no longer needed. +// +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - handle to the page, returned by FPDF_LoadPage function. +// point - position in PDF "user space". +// +// Returns the interactive form annotation whose rectangle contains the given +// coordinates on the page. If there is no such annotation, return NULL. +FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV +FPDFAnnot_GetFormFieldAtPoint(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + const FS_POINTF* point); + +// Experimental API. +// Gets the name of |annot|, which is an interactive form annotation. +// |buffer| is only modified if |buflen| is longer than the length of contents. +// In case of error, nothing will be added to |buffer| and the return value will +// be 0. Note that return value of empty string is 2 for "\0\0". +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// buffer - buffer for holding the name string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetFormFieldName(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Gets the alternate name of |annot|, which is an interactive form annotation. +// |buffer| is only modified if |buflen| is longer than the length of contents. +// In case of error, nothing will be added to |buffer| and the return value will +// be 0. Note that return value of empty string is 2 for "\0\0". +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// buffer - buffer for holding the alternate name string, encoded in +// UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetFormFieldAlternateName(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Gets the form field type of |annot|, which is an interactive form annotation. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// +// Returns the type of the form field (one of the FPDF_FORMFIELD_* values) on +// success. Returns -1 on error. +// See field types in fpdf_formfill.h. +FPDF_EXPORT int FPDF_CALLCONV +FPDFAnnot_GetFormFieldType(FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot); + +// Experimental API. +// Gets the value of |annot|, which is an interactive form annotation. +// |buffer| is only modified if |buflen| is longer than the length of contents. +// In case of error, nothing will be added to |buffer| and the return value will +// be 0. Note that return value of empty string is 2 for "\0\0". +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// buffer - buffer for holding the value string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetFormFieldValue(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Get the number of options in the |annot|'s "Opt" dictionary. Intended for +// use with listbox and combobox widget annotations. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// +// Returns the number of options in "Opt" dictionary on success. Return value +// will be -1 if annotation does not have an "Opt" dictionary or other error. +FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetOptionCount(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot); + +// Experimental API. +// Get the string value for the label of the option at |index| in |annot|'s +// "Opt" dictionary. Intended for use with listbox and combobox widget +// annotations. |buffer| is only modified if |buflen| is longer than the length +// of contents. If index is out of range or in case of other error, nothing +// will be added to |buffer| and the return value will be 0. Note that +// return value of empty string is 2 for "\0\0". +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// index - numeric index of the option in the "Opt" array +// buffer - buffer for holding the value string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +// If |annot| does not have an "Opt" array, |index| is out of range or if any +// other error occurs, returns 0. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetOptionLabel(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + int index, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Determine whether or not the option at |index| in |annot|'s "Opt" dictionary +// is selected. Intended for use with listbox and combobox widget annotations. +// +// handle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// index - numeric index of the option in the "Opt" array. +// +// Returns true if the option at |index| in |annot|'s "Opt" dictionary is +// selected, false otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_IsOptionSelected(FPDF_FORMHANDLE handle, + FPDF_ANNOTATION annot, + int index); + +// Experimental API. +// Get the float value of the font size for an |annot| with variable text. +// If 0, the font is to be auto-sized: its size is computed as a function of +// the height of the annotation rectangle. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// value - Required. Float which will be set to font size on success. +// +// Returns true if the font size was set in |value|, false on error or if +// |value| not provided. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + float* value); + +// Experimental API. +// Set the text color of an annotation. +// +// handle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// R - the red component for the text color. +// G - the green component for the text color. +// B - the blue component for the text color. +// +// Returns true if successful. +// +// Currently supported subtypes: freetext. +// The range for the color components is 0 to 255. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetFontColor(FPDF_FORMHANDLE handle, + FPDF_ANNOTATION annot, + unsigned int R, + unsigned int G, + unsigned int B); + +// Experimental API. +// Get the RGB value of the font color for an |annot| with variable text. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// R, G, B - buffer to hold the RGB value of the color. Ranges from 0 to 255. +// +// Returns true if the font color was set, false on error or if the font +// color was not provided. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_GetFontColor(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + unsigned int* R, + unsigned int* G, + unsigned int* B); + +// Experimental API. +// Determine if |annot| is a form widget that is checked. Intended for use with +// checkbox and radio button widgets. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// +// Returns true if |annot| is a form widget and is checked, false otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsChecked(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot); + +// Experimental API. +// Set the list of focusable annotation subtypes. Annotations of subtype +// FPDF_ANNOT_WIDGET are by default focusable. New subtypes set using this API +// will override the existing subtypes. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// subtypes - list of annotation subtype which can be tabbed over. +// count - total number of annotation subtype in list. +// Returns true if list of annotation subtype is set successfully, false +// otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetFocusableSubtypes(FPDF_FORMHANDLE hHandle, + const FPDF_ANNOTATION_SUBTYPE* subtypes, + size_t count); + +// Experimental API. +// Get the count of focusable annotation subtypes as set by host +// for a |hHandle|. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// Returns the count of focusable annotation subtypes or -1 on error. +// Note : Annotations of type FPDF_ANNOT_WIDGET are by default focusable. +FPDF_EXPORT int FPDF_CALLCONV +FPDFAnnot_GetFocusableSubtypesCount(FPDF_FORMHANDLE hHandle); + +// Experimental API. +// Get the list of focusable annotation subtype as set by host. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// subtypes - receives the list of annotation subtype which can be tabbed +// over. Caller must have allocated |subtypes| more than or +// equal to the count obtained from +// FPDFAnnot_GetFocusableSubtypesCount() API. +// count - size of |subtypes|. +// Returns true on success and set list of annotation subtype to |subtypes|, +// false otherwise. +// Note : Annotations of type FPDF_ANNOT_WIDGET are by default focusable. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_GetFocusableSubtypes(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION_SUBTYPE* subtypes, + size_t count); + +// Experimental API. +// Gets FPDF_LINK object for |annot|. Intended to use for link annotations. +// +// annot - handle to an annotation. +// +// Returns FPDF_LINK from the FPDF_ANNOTATION and NULL on failure, +// if the input annot is NULL or input annot's subtype is not link. +FPDF_EXPORT FPDF_LINK FPDF_CALLCONV FPDFAnnot_GetLink(FPDF_ANNOTATION annot); + +// Experimental API. +// Gets the count of annotations in the |annot|'s control group. +// A group of interactive form annotations is collectively called a form +// control group. Here, |annot|, an interactive form annotation, should be +// either a radio button or a checkbox. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// +// Returns number of controls in its control group or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFAnnot_GetFormControlCount(FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot); + +// Experimental API. +// Gets the index of |annot| in |annot|'s control group. +// A group of interactive form annotations is collectively called a form +// control group. Here, |annot|, an interactive form annotation, should be +// either a radio button or a checkbox. +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - handle to an annotation. +// +// Returns index of a given |annot| in its control group or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFAnnot_GetFormControlIndex(FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot); + +// Experimental API. +// Gets the export value of |annot| which is an interactive form annotation. +// Intended for use with radio button and checkbox widget annotations. +// |buffer| is only modified if |buflen| is longer than the length of contents. +// In case of error, nothing will be added to |buffer| and the return value +// will be 0. Note that return value of empty string is 2 for "\0\0". +// +// hHandle - handle to the form fill module, returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - handle to an interactive form annotation. +// buffer - buffer for holding the value string, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the string value in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAnnot_GetFormFieldExportValue(FPDF_FORMHANDLE hHandle, + FPDF_ANNOTATION annot, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Add a URI action to |annot|, overwriting the existing action, if any. +// +// annot - handle to a link annotation. +// uri - the URI to be set, encoded in 7-bit ASCII. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetURI(FPDF_ANNOTATION annot, + const char* uri); + +// Experimental API. +// Get the attachment from |annot|. +// +// annot - handle to a file annotation. +// +// Returns the handle to the attachment object, or NULL on failure. +FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV +FPDFAnnot_GetFileAttachment(FPDF_ANNOTATION annot); + +// Experimental API. +// Add an embedded file with |name| to |annot|. +// +// annot - handle to a file annotation. +// name - name of the new attachment. +// +// Returns a handle to the new attachment object, or NULL on failure. +FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV +FPDFAnnot_AddFileAttachment(FPDF_ANNOTATION annot, FPDF_WIDESTRING name); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_ANNOT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_attachment.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_attachment.h new file mode 100644 index 0000000..58908ca --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_attachment.h @@ -0,0 +1,247 @@ +// Copyright 2017 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_FPDF_ATTACHMENT_H_ +#define PUBLIC_FPDF_ATTACHMENT_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Experimental API. +// Get the number of embedded files in |document|. +// +// document - handle to a document. +// +// Returns the number of embedded files in |document|. +FPDF_EXPORT int FPDF_CALLCONV +FPDFDoc_GetAttachmentCount(FPDF_DOCUMENT document); + +// Experimental API. +// Add an embedded file with |name| in |document|. If |name| is empty, or if +// |name| is the name of a existing embedded file in |document|, or if +// |document|'s embedded file name tree is too deep (i.e. |document| has too +// many embedded files already), then a new attachment will not be added. +// +// document - handle to a document. +// name - name of the new attachment. +// +// Returns a handle to the new attachment object, or NULL on failure. +FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV +FPDFDoc_AddAttachment(FPDF_DOCUMENT document, FPDF_WIDESTRING name); + +// Experimental API. +// Get the embedded attachment at |index| in |document|. Note that the returned +// attachment handle is only valid while |document| is open. +// +// document - handle to a document. +// index - the index of the requested embedded file. +// +// Returns the handle to the attachment object, or NULL on failure. +FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV +FPDFDoc_GetAttachment(FPDF_DOCUMENT document, int index); + +// Experimental API. +// Delete the embedded attachment at |index| in |document|. Note that this does +// not remove the attachment data from the PDF file; it simply removes the +// file's entry in the embedded files name tree so that it does not appear in +// the attachment list. This behavior may change in the future. +// +// document - handle to a document. +// index - the index of the embedded file to be deleted. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFDoc_DeleteAttachment(FPDF_DOCUMENT document, int index); + +// Experimental API. +// Get the name of the |attachment| file. |buffer| is only modified if |buflen| +// is longer than the length of the file name. On errors, |buffer| is unmodified +// and the returned length is 0. +// +// attachment - handle to an attachment. +// buffer - buffer for holding the file name, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the file name in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAttachment_GetName(FPDF_ATTACHMENT attachment, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Check if the params dictionary of |attachment| has |key| as a key. +// +// attachment - handle to an attachment. +// key - the key to look for, encoded in UTF-8. +// +// Returns true if |key| exists. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAttachment_HasKey(FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key); + +// Experimental API. +// Get the type of the value corresponding to |key| in the params dictionary of +// the embedded |attachment|. +// +// attachment - handle to an attachment. +// key - the key to look for, encoded in UTF-8. +// +// Returns the type of the dictionary value. +FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV +FPDFAttachment_GetValueType(FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key); + +// Experimental API. +// Set the string value corresponding to |key| in the params dictionary of the +// embedded file |attachment|, overwriting the existing value if any. The value +// type should be FPDF_OBJECT_STRING after this function call succeeds. +// +// attachment - handle to an attachment. +// key - the key to the dictionary entry, encoded in UTF-8. +// value - the string value to be set, encoded in UTF-16LE. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAttachment_SetStringValue(FPDF_ATTACHMENT attachment, + FPDF_BYTESTRING key, + FPDF_WIDESTRING value); + +// Experimental API. +// Get the string value corresponding to |key| in the params dictionary of the +// embedded file |attachment|. |buffer| is only modified if |buflen| is longer +// than the length of the string value. Note that if |key| does not exist in the +// dictionary or if |key|'s corresponding value in the dictionary is not a +// string (i.e. the value is not of type FPDF_OBJECT_STRING or +// FPDF_OBJECT_NAME), then an empty string would be copied to |buffer| and the +// return value would be 2. On other errors, nothing would be added to |buffer| +// and the return value would be 0. +// +// attachment - handle to an attachment. +// key - the key to the requested string value, encoded in UTF-8. +// buffer - buffer for holding the string value encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the dictionary value string in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAttachment_GetStringValue(FPDF_ATTACHMENT attachment, + FPDF_BYTESTRING key, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Sets the string value corresponding to "/Desc" in the file specification +// dictionary (ISO 32000-1:2008 section 7.11.3) of the embedded file +// |attachment| to the string value. +// +// attachment - handle to an attachment. +// value - the string value to be set as /Desc, encoded in UTF-16LE. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAttachment_SetDescription(FPDF_ATTACHMENT attachment, + FPDF_WIDESTRING value); + +// Experimental API. +// Gets the string value corresponding to "/Desc" in the file specification +// dictionary (ISO 32000-1:2008 section 7.11.3) of the embedded file +// |attachment|. Similarly to the above APIs, |buffer| is only modified if +// |buflen| is longer than the length of the string's value. If the key doesn't +// exist, or is not a string then 2 is returned by the API, alongside an empty +// string. Other errors return 0 instead. +// +// attachment - handle to an attachment. +// buffer - buffer for holding the string value encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the description string in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAttachment_GetDescription(FPDF_ATTACHMENT attachment, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Set the file data of |attachment|, overwriting the existing file data if any. +// The creation date and checksum will be updated, while all other dictionary +// entries will be deleted. Note that only contents with |len| smaller than +// INT_MAX is supported. +// +// attachment - handle to an attachment. +// contents - buffer holding the file data to write to |attachment|. +// len - length of file data in bytes. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAttachment_SetFile(FPDF_ATTACHMENT attachment, + FPDF_DOCUMENT document, + const void* contents, + unsigned long len); + +// Experimental API. +// Get the file data of |attachment|. +// When the attachment file data is readable, true is returned, and |out_buflen| +// is updated to indicate the file data size. |buffer| is only modified if +// |buflen| is non-null and long enough to contain the entire file data. Callers +// must check both the return value and the input |buflen| is no less than the +// returned |out_buflen| before using the data. +// +// Otherwise, when the attachment file data is unreadable or when |out_buflen| +// is null, false is returned and |buffer| and |out_buflen| remain unmodified. +// +// attachment - handle to an attachment. +// buffer - buffer for holding the file data from |attachment|. +// buflen - length of the buffer in bytes. +// out_buflen - pointer to the variable that will receive the minimum buffer +// size to contain the file data of |attachment|. +// +// Returns true on success, false otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAttachment_GetFile(FPDF_ATTACHMENT attachment, + void* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Get the MIME type (Subtype) of the embedded file |attachment|. |buffer| is +// only modified if |buflen| is longer than the length of the MIME type string. +// If the Subtype is not found or if there is no file stream, an empty string +// would be copied to |buffer| and the return value would be 2. On other errors, +// nothing would be added to |buffer| and the return value would be 0. +// +// attachment - handle to an attachment. +// buffer - buffer for holding the MIME type string encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the MIME type string in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAttachment_GetSubtype(FPDF_ATTACHMENT attachment, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Get the associated file relationship string (the /AFRelationship entry in +// the file specification dictionary of the embedded file |attachment|; PDF +// 2.0, ISO 32000-2:2020, Table 43), e.g. "Source", "Data", "Alternative", +// "Supplement" or "Unspecified". |buffer| is only modified if |buflen| is +// longer than the length of the relationship name. If the /AFRelationship +// entry is absent or is not a name, an empty string is copied to |buffer| and +// the return value is 2. On other errors, |buffer| is not modified and the +// return value is 0. +// +// attachment - handle to an attachment. +// buffer - buffer for holding the relationship name encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the relationship name in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAttachment_GetAFRelationship(FPDF_ATTACHMENT attachment, + FPDF_WCHAR* buffer, + unsigned long buflen); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_ATTACHMENT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_catalog.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_catalog.h new file mode 100644 index 0000000..fdbe674 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_catalog.h @@ -0,0 +1,65 @@ +// Copyright 2017 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_FPDF_CATALOG_H_ +#define PUBLIC_FPDF_CATALOG_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Experimental API. +// +// Determine if |document| represents a tagged PDF. +// +// For the definition of tagged PDF, See (see 10.7 "Tagged PDF" in PDF +// Reference 1.7). +// +// document - handle to a document. +// +// Returns |true| iff |document| is a tagged PDF. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFCatalog_IsTagged(FPDF_DOCUMENT document); + +// Experimental API. +// Gets the language of |document| from the catalog's /Lang entry. +// +// document - handle to a document. +// buffer - a buffer for the language string. May be NULL. +// buflen - the length of the buffer, in bytes. May be 0. +// +// Returns the number of bytes in the language string, including the +// trailing NUL character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +// +// If |document| has no /Lang entry, an empty string is written to |buffer| and +// 2 is returned. On error, nothing is written to |buffer| and 0 is returned. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFCatalog_GetLanguage(FPDF_DOCUMENT document, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Sets the language of |document| to |language|. +// +// document - handle to a document. +// language - the language to set to. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFCatalog_SetLanguage(FPDF_DOCUMENT document, FPDF_WIDESTRING language); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_CATALOG_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_dataavail.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_dataavail.h new file mode 100644 index 0000000..004d9be --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_dataavail.h @@ -0,0 +1,204 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_DATAAVAIL_H_ +#define PUBLIC_FPDF_DATAAVAIL_H_ + +#include + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#define PDF_LINEARIZATION_UNKNOWN -1 +#define PDF_NOT_LINEARIZED 0 +#define PDF_LINEARIZED 1 + +#define PDF_DATA_ERROR -1 +#define PDF_DATA_NOTAVAIL 0 +#define PDF_DATA_AVAIL 1 + +#define PDF_FORM_ERROR -1 +#define PDF_FORM_NOTAVAIL 0 +#define PDF_FORM_AVAIL 1 +#define PDF_FORM_NOTEXIST 2 + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Interface for checking whether sections of the file are available. +typedef struct _FX_FILEAVAIL { + // Version number of the interface. Must be 1. + int version; + + // Reports if the specified data section is currently available. A section is + // available if all bytes in the section are available. + // + // Interface Version: 1 + // Implementation Required: Yes + // + // pThis - pointer to the interface structure. + // offset - the offset of the data section in the file. + // size - the size of the data section. + // + // Returns true if the specified data section at |offset| of |size| + // is available. + FPDF_BOOL (*IsDataAvail)(struct _FX_FILEAVAIL* pThis, + size_t offset, + size_t size); +} FX_FILEAVAIL; + +// Create a document availability provider. +// +// file_avail - pointer to file availability interface. +// file - pointer to a file access interface. +// +// Returns a handle to the document availability provider, or NULL on error. +// +// FPDFAvail_Destroy() must be called when done with the availability provider. +FPDF_EXPORT FPDF_AVAIL FPDF_CALLCONV FPDFAvail_Create(FX_FILEAVAIL* file_avail, + FPDF_FILEACCESS* file); + +// Destroy the |avail| document availability provider. +// +// avail - handle to document availability provider to be destroyed. +FPDF_EXPORT void FPDF_CALLCONV FPDFAvail_Destroy(FPDF_AVAIL avail); + +// Download hints interface. Used to receive hints for further downloading. +typedef struct _FX_DOWNLOADHINTS { + // Version number of the interface. Must be 1. + int version; + + // Add a section to be downloaded. + // + // Interface Version: 1 + // Implementation Required: Yes + // + // pThis - pointer to the interface structure. + // offset - the offset of the hint reported to be downloaded. + // size - the size of the hint reported to be downloaded. + // + // The |offset| and |size| of the section may not be unique. Part of the + // section might be already available. The download manager must deal with + // overlapping sections. + void (*AddSegment)(struct _FX_DOWNLOADHINTS* pThis, + size_t offset, + size_t size); +} FX_DOWNLOADHINTS; + +// Checks if the document is ready for loading, if not, gets download hints. +// +// avail - handle to document availability provider. +// hints - pointer to a download hints interface. +// +// Returns one of: +// PDF_DATA_ERROR: A common error is returned. Data availability unknown. +// PDF_DATA_NOTAVAIL: Data not yet available. +// PDF_DATA_AVAIL: Data available. +// +// Applications should call this function whenever new data arrives, and process +// all the generated download hints, if any, until the function returns +// |PDF_DATA_ERROR| or |PDF_DATA_AVAIL|. +// if hints is nullptr, the function just check current document availability. +// +// Once all data is available, call FPDFAvail_GetDocument() to get a document +// handle. +FPDF_EXPORT int FPDF_CALLCONV FPDFAvail_IsDocAvail(FPDF_AVAIL avail, + FX_DOWNLOADHINTS* hints); + +// Get document from the availability provider. +// +// avail - handle to document availability provider. +// password - password for decrypting the PDF file. Optional. +// +// Returns a handle to the document. +// +// When FPDFAvail_IsDocAvail() returns TRUE, call FPDFAvail_GetDocument() to +// retrieve the document handle. +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDFAvail_GetDocument(FPDF_AVAIL avail, FPDF_BYTESTRING password); + +// Get the page number for the first available page in a linearized PDF. +// +// doc - document handle. +// +// Returns the zero-based index for the first available page. +// +// For most linearized PDFs, the first available page will be the first page, +// however, some PDFs might make another page the first available page. +// For non-linearized PDFs, this function will always return zero. +FPDF_EXPORT int FPDF_CALLCONV FPDFAvail_GetFirstPageNum(FPDF_DOCUMENT doc); + +// Check if |page_index| is ready for loading, if not, get the +// |FX_DOWNLOADHINTS|. +// +// avail - handle to document availability provider. +// page_index - index number of the page. Zero for the first page. +// hints - pointer to a download hints interface. Populated if +// |page_index| is not available. +// +// Returns one of: +// PDF_DATA_ERROR: A common error is returned. Data availability unknown. +// PDF_DATA_NOTAVAIL: Data not yet available. +// PDF_DATA_AVAIL: Data available. +// +// This function can be called only after FPDFAvail_GetDocument() is called. +// Applications should call this function whenever new data arrives and process +// all the generated download |hints|, if any, until this function returns +// |PDF_DATA_ERROR| or |PDF_DATA_AVAIL|. Applications can then perform page +// loading. +// if hints is nullptr, the function just check current availability of +// specified page. +FPDF_EXPORT int FPDF_CALLCONV FPDFAvail_IsPageAvail(FPDF_AVAIL avail, + int page_index, + FX_DOWNLOADHINTS* hints); + +// Check if form data is ready for initialization, if not, get the +// |FX_DOWNLOADHINTS|. +// +// avail - handle to document availability provider. +// hints - pointer to a download hints interface. Populated if form is not +// ready for initialization. +// +// Returns one of: +// PDF_FORM_ERROR: A common eror, in general incorrect parameters. +// PDF_FORM_NOTAVAIL: Data not available. +// PDF_FORM_AVAIL: Data available. +// PDF_FORM_NOTEXIST: No form data. +// +// This function can be called only after FPDFAvail_GetDocument() is called. +// The application should call this function whenever new data arrives and +// process all the generated download |hints|, if any, until the function +// |PDF_FORM_ERROR|, |PDF_FORM_AVAIL| or |PDF_FORM_NOTEXIST|. +// if hints is nullptr, the function just check current form availability. +// +// Applications can then perform page loading. It is recommend to call +// FPDFDOC_InitFormFillEnvironment() when |PDF_FORM_AVAIL| is returned. +FPDF_EXPORT int FPDF_CALLCONV FPDFAvail_IsFormAvail(FPDF_AVAIL avail, + FX_DOWNLOADHINTS* hints); + +// Check whether a document is a linearized PDF. +// +// avail - handle to document availability provider. +// +// Returns one of: +// PDF_LINEARIZED +// PDF_NOT_LINEARIZED +// PDF_LINEARIZATION_UNKNOWN +// +// FPDFAvail_IsLinearized() will return |PDF_LINEARIZED| or |PDF_NOT_LINEARIZED| +// when we have 1k of data. If the files size less than 1k, it returns +// |PDF_LINEARIZATION_UNKNOWN| as there is insufficient information to determine +// if the PDF is linearlized. +FPDF_EXPORT int FPDF_CALLCONV FPDFAvail_IsLinearized(FPDF_AVAIL avail); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_DATAAVAIL_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_doc.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_doc.h new file mode 100644 index 0000000..a609ca9 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_doc.h @@ -0,0 +1,467 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_DOC_H_ +#define PUBLIC_FPDF_DOC_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Unsupported action type. +#define PDFACTION_UNSUPPORTED 0 +// Go to a destination within current document. +#define PDFACTION_GOTO 1 +// Go to a destination within another document. +#define PDFACTION_REMOTEGOTO 2 +// URI, including web pages and other Internet resources. +#define PDFACTION_URI 3 +// Launch an application or open a file. +#define PDFACTION_LAUNCH 4 +// Go to a destination in an embedded file. +#define PDFACTION_EMBEDDEDGOTO 5 + +// View destination fit types. See pdfmark reference v9, page 48. +#define PDFDEST_VIEW_UNKNOWN_MODE 0 +#define PDFDEST_VIEW_XYZ 1 +#define PDFDEST_VIEW_FIT 2 +#define PDFDEST_VIEW_FITH 3 +#define PDFDEST_VIEW_FITV 4 +#define PDFDEST_VIEW_FITR 5 +#define PDFDEST_VIEW_FITB 6 +#define PDFDEST_VIEW_FITBH 7 +#define PDFDEST_VIEW_FITBV 8 + +// The file identifier entry type. See section 14.4 "File Identifiers" of the +// ISO 32000-1:2008 spec. +typedef enum { + FILEIDTYPE_PERMANENT = 0, + FILEIDTYPE_CHANGING = 1 +} FPDF_FILEIDTYPE; + +// Get the first child of |bookmark|, or the first top-level bookmark item. +// +// document - handle to the document. +// bookmark - handle to the current bookmark. Pass NULL for the first top +// level item. +// +// Returns a handle to the first child of |bookmark| or the first top-level +// bookmark item. NULL if no child or top-level bookmark found. +// Note that another name for the bookmarks is the document outline, as +// described in ISO 32000-1:2008, section 12.3.3. +FPDF_EXPORT FPDF_BOOKMARK FPDF_CALLCONV +FPDFBookmark_GetFirstChild(FPDF_DOCUMENT document, FPDF_BOOKMARK bookmark); + +// Get the next sibling of |bookmark|. +// +// document - handle to the document. +// bookmark - handle to the current bookmark. +// +// Returns a handle to the next sibling of |bookmark|, or NULL if this is the +// last bookmark at this level. +// +// Note that the caller is responsible for handling circular bookmark +// references, as may arise from malformed documents. +FPDF_EXPORT FPDF_BOOKMARK FPDF_CALLCONV +FPDFBookmark_GetNextSibling(FPDF_DOCUMENT document, FPDF_BOOKMARK bookmark); + +// Get the title of |bookmark|. +// +// bookmark - handle to the bookmark. +// buffer - buffer for the title. May be NULL. +// buflen - the length of the buffer in bytes. May be 0. +// +// Returns the number of bytes in the title, including the terminating NUL +// character. The number of bytes is returned regardless of the |buffer| and +// |buflen| parameters. +// +// Regardless of the platform, the |buffer| is always in UTF-16LE encoding. The +// string is terminated by a UTF16 NUL character. If |buflen| is less than the +// required length, or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFBookmark_GetTitle(FPDF_BOOKMARK bookmark, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Get the number of chlidren of |bookmark|. +// +// bookmark - handle to the bookmark. +// +// Returns a signed integer that represents the number of sub-items the given +// bookmark has. If the value is positive, child items shall be shown by default +// (open state). If the value is negative, child items shall be hidden by +// default (closed state). Please refer to PDF 32000-1:2008, Table 153. +// Returns 0 if the bookmark has no children or is invalid. +FPDF_EXPORT int FPDF_CALLCONV FPDFBookmark_GetCount(FPDF_BOOKMARK bookmark); + +// Find the bookmark with |title| in |document|. +// +// document - handle to the document. +// title - the UTF-16LE encoded Unicode title for which to search. +// +// Returns the handle to the bookmark, or NULL if |title| can't be found. +// +// FPDFBookmark_Find() will always return the first bookmark found even if +// multiple bookmarks have the same |title|. +FPDF_EXPORT FPDF_BOOKMARK FPDF_CALLCONV +FPDFBookmark_Find(FPDF_DOCUMENT document, FPDF_WIDESTRING title); + +// Get the destination associated with |bookmark|. +// +// document - handle to the document. +// bookmark - handle to the bookmark. +// +// Returns the handle to the destination data, or NULL if no destination is +// associated with |bookmark|. +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV +FPDFBookmark_GetDest(FPDF_DOCUMENT document, FPDF_BOOKMARK bookmark); + +// Get the action associated with |bookmark|. +// +// bookmark - handle to the bookmark. +// +// Returns the handle to the action data, or NULL if no action is associated +// with |bookmark|. +// If this function returns a valid handle, it is valid as long as |bookmark| is +// valid. +// If this function returns NULL, FPDFBookmark_GetDest() should be called to get +// the |bookmark| destination data. +FPDF_EXPORT FPDF_ACTION FPDF_CALLCONV +FPDFBookmark_GetAction(FPDF_BOOKMARK bookmark); + +// Experimental API. +// Get the color of a bookmark. +// +// bookmark - handle to a bookmark. +// R - pointer to a float to receive the red component [0.0 - 1.0]. +// G - pointer to a float to receive the green component [0.0 - 1.0]. +// B - pointer to a float to receive the blue component [0.0 - 1.0]. +// +// Returns TRUE on success, in which case |R|, |G|, and |B| are updated. +// Returns FALSE on failure, if the bookmark is invalid, output for R, G and B +// aren't in the range or if the bookmark does not specify a color. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFBookmark_GetColor(FPDF_BOOKMARK bookmark, float* R, float* G, float* B); + +// Experimental API. +// Get the text style of a bookmark. +// +// bookmark - handle to a bookmark. +// +// Returns the style as an integer, in line with ISO 32000-1:2008 Table 154. +// The first bit is used to represent if the text is italic and the second +// bit is used to represent if the text is bold. Returns 0 if the bookmark +// doesn't have styling or if the handle is invalid. Parsing this value to +// apply styles remains the responsibility of the embedder. +FPDF_EXPORT int FPDF_CALLCONV FPDFBookmark_GetStyle(FPDF_BOOKMARK bookmark); + +// Get the type of |action|. +// +// action - handle to the action. +// +// Returns one of: +// PDFACTION_UNSUPPORTED +// PDFACTION_GOTO +// PDFACTION_REMOTEGOTO +// PDFACTION_URI +// PDFACTION_LAUNCH +FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAction_GetType(FPDF_ACTION action); + +// Get the destination of |action|. +// +// document - handle to the document. +// action - handle to the action. |action| must be a |PDFACTION_GOTO| or +// |PDFACTION_REMOTEGOTO|. +// +// Returns a handle to the destination data, or NULL on error, typically +// because the arguments were bad or the action was of the wrong type. +// +// In the case of |PDFACTION_REMOTEGOTO|, you must first call +// FPDFAction_GetFilePath(), then load the document at that path, then pass +// the document handle from that document as |document| to FPDFAction_GetDest(). +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDFAction_GetDest(FPDF_DOCUMENT document, + FPDF_ACTION action); + +// Get the file path of |action|. +// +// action - handle to the action. |action| must be a |PDFACTION_LAUNCH| or +// |PDFACTION_REMOTEGOTO|. +// buffer - a buffer for output the path string. May be NULL. +// buflen - the length of the buffer, in bytes. May be 0. +// +// Returns the number of bytes in the file path, including the trailing NUL +// character, or 0 on error, typically because the arguments were bad or the +// action was of the wrong type. +// +// Regardless of the platform, the |buffer| is always in UTF-8 encoding. +// If |buflen| is less than the returned length, or |buffer| is NULL, |buffer| +// will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAction_GetFilePath(FPDF_ACTION action, void* buffer, unsigned long buflen); + +// Get the URI path of |action|. +// +// document - handle to the document. +// action - handle to the action. Must be a |PDFACTION_URI|. +// buffer - a buffer for the path string. May be NULL. +// buflen - the length of the buffer, in bytes. May be 0. +// +// Returns the number of bytes in the URI path, including the trailing NUL +// character, or 0 on error, typically because the arguments were bad or the +// action was of the wrong type. +// +// The |buffer| may contain badly encoded data. The caller should validate the +// output. e.g. Check to see if it is UTF-8. +// +// If |buflen| is less than the returned length, or |buffer| is NULL, |buffer| +// will not be modified. +// +// Historically, the documentation for this API claimed |buffer| is always +// encoded in 7-bit ASCII, but did not actually enforce it. +// https://pdfium.googlesource.com/pdfium.git/+/d609e84cee2e14a18333247485af91df48a40592 +// added that enforcement, but that did not work well for real world PDFs that +// used UTF-8. As of this writing, this API reverted back to its original +// behavior prior to commit d609e84cee. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFAction_GetURIPath(FPDF_DOCUMENT document, + FPDF_ACTION action, + void* buffer, + unsigned long buflen); + +// Get the page index of |dest|. +// +// document - handle to the document. +// dest - handle to the destination. +// +// Returns the 0-based page index containing |dest|. Returns -1 on error. +FPDF_EXPORT int FPDF_CALLCONV FPDFDest_GetDestPageIndex(FPDF_DOCUMENT document, + FPDF_DEST dest); + +// Experimental API. +// Get the view (fit type) specified by |dest|. +// +// dest - handle to the destination. +// pNumParams - receives the number of view parameters, which is at most 4. +// pParams - buffer to write the view parameters. Must be at least 4 +// FS_FLOATs long. +// Returns one of the PDFDEST_VIEW_* constants, PDFDEST_VIEW_UNKNOWN_MODE if +// |dest| does not specify a view. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFDest_GetView(FPDF_DEST dest, unsigned long* pNumParams, FS_FLOAT* pParams); + +// Get the (x, y, zoom) location of |dest| in the destination page, if the +// destination is in [page /XYZ x y zoom] syntax. +// +// dest - handle to the destination. +// hasXVal - out parameter; true if the x value is not null +// hasYVal - out parameter; true if the y value is not null +// hasZoomVal - out parameter; true if the zoom value is not null +// x - out parameter; the x coordinate, in page coordinates. +// y - out parameter; the y coordinate, in page coordinates. +// zoom - out parameter; the zoom value. +// Returns TRUE on successfully reading the /XYZ value. +// +// Note the [x, y, zoom] values are only set if the corresponding hasXVal, +// hasYVal or hasZoomVal flags are true. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFDest_GetLocationInPage(FPDF_DEST dest, + FPDF_BOOL* hasXVal, + FPDF_BOOL* hasYVal, + FPDF_BOOL* hasZoomVal, + FS_FLOAT* x, + FS_FLOAT* y, + FS_FLOAT* zoom); + +// Find a link at point (|x|,|y|) on |page|. +// +// page - handle to the document page. +// x - the x coordinate, in the page coordinate system. +// y - the y coordinate, in the page coordinate system. +// +// Returns a handle to the link, or NULL if no link found at the given point. +// +// You can convert coordinates from screen coordinates to page coordinates using +// FPDF_DeviceToPage(). +FPDF_EXPORT FPDF_LINK FPDF_CALLCONV FPDFLink_GetLinkAtPoint(FPDF_PAGE page, + double x, + double y); + +// Find the Z-order of link at point (|x|,|y|) on |page|. +// +// page - handle to the document page. +// x - the x coordinate, in the page coordinate system. +// y - the y coordinate, in the page coordinate system. +// +// Returns the Z-order of the link, or -1 if no link found at the given point. +// Larger Z-order numbers are closer to the front. +// +// You can convert coordinates from screen coordinates to page coordinates using +// FPDF_DeviceToPage(). +FPDF_EXPORT int FPDF_CALLCONV FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, + double x, + double y); + +// Get destination info for |link|. +// +// document - handle to the document. +// link - handle to the link. +// +// Returns a handle to the destination, or NULL if there is no destination +// associated with the link. In this case, you should call FPDFLink_GetAction() +// to retrieve the action associated with |link|. +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDFLink_GetDest(FPDF_DOCUMENT document, + FPDF_LINK link); + +// Get action info for |link|. +// +// link - handle to the link. +// +// Returns a handle to the action associated to |link|, or NULL if no action. +// If this function returns a valid handle, it is valid as long as |link| is +// valid. +FPDF_EXPORT FPDF_ACTION FPDF_CALLCONV FPDFLink_GetAction(FPDF_LINK link); + +// Enumerates all the link annotations in |page|. +// +// page - handle to the page. +// start_pos - the start position, should initially be 0 and is updated with +// the next start position on return. +// link_annot - the link handle for |startPos|. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFLink_Enumerate(FPDF_PAGE page, + int* start_pos, + FPDF_LINK* link_annot); + +// Experimental API. +// Gets FPDF_ANNOTATION object for |link_annot|. +// +// page - handle to the page in which FPDF_LINK object is present. +// link_annot - handle to link annotation. +// +// Returns FPDF_ANNOTATION from the FPDF_LINK and NULL on failure, +// if the input link annot or page is NULL. +FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV +FPDFLink_GetAnnot(FPDF_PAGE page, FPDF_LINK link_annot); + +// Get the rectangle for |link_annot|. +// +// link_annot - handle to the link annotation. +// rect - the annotation rectangle. +// +// Returns true on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFLink_GetAnnotRect(FPDF_LINK link_annot, + FS_RECTF* rect); + +// Get the count of quadrilateral points to the |link_annot|. +// +// link_annot - handle to the link annotation. +// +// Returns the count of quadrilateral points. +FPDF_EXPORT int FPDF_CALLCONV FPDFLink_CountQuadPoints(FPDF_LINK link_annot); + +// Get the quadrilateral points for the specified |quad_index| in |link_annot|. +// +// link_annot - handle to the link annotation. +// quad_index - the specified quad point index. +// quad_points - receives the quadrilateral points. +// +// Returns true on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFLink_GetQuadPoints(FPDF_LINK link_annot, + int quad_index, + FS_QUADPOINTSF* quad_points); + +// Experimental API +// Gets an additional-action from |page|. +// +// page - handle to the page, as returned by FPDF_LoadPage(). +// aa_type - the type of the page object's addtional-action, defined +// in public/fpdf_formfill.h +// +// Returns the handle to the action data, or NULL if there is no +// additional-action of type |aa_type|. +// If this function returns a valid handle, it is valid as long as |page| is +// valid. +FPDF_EXPORT FPDF_ACTION FPDF_CALLCONV FPDF_GetPageAAction(FPDF_PAGE page, + int aa_type); + +// Experimental API. +// Get the file identifer defined in the trailer of |document|. +// +// document - handle to the document. +// id_type - the file identifier type to retrieve. +// buffer - a buffer for the file identifier. May be NULL. +// buflen - the length of the buffer, in bytes. May be 0. +// +// Returns the number of bytes in the file identifier, including the NUL +// terminator. +// +// The |buffer| is always a byte string. The |buffer| is followed by a NUL +// terminator. If |buflen| is less than the returned length, or |buffer| is +// NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetFileIdentifier(FPDF_DOCUMENT document, + FPDF_FILEIDTYPE id_type, + void* buffer, + unsigned long buflen); + +// Get meta-data |tag| content from |document|. +// +// document - handle to the document. +// tag - the tag to retrieve. The tag can be one of: +// Title, Author, Subject, Keywords, Creator, Producer, +// CreationDate, or ModDate. +// For detailed explanations of these tags and their respective +// values, please refer to PDF Reference 1.6, section 10.2.1, +// 'Document Information Dictionary'. +// buffer - a buffer for the tag. May be NULL. +// buflen - the length of the buffer, in bytes. May be 0. +// +// Returns the number of bytes in the tag, including trailing zeros, on success. +// Returns 0 if |document| or |tag| is NULL. Returns 0 if |document| does not +// have an /Info dictionary. Returns 2 for an empty string if |tag| is not in +// the /Info dictionary, +// +// The |buffer| is always encoded in UTF-16LE. The |buffer| is followed by two +// bytes of zeros indicating the end of the string. If |buflen| is less than +// the returned length, or |buffer| is NULL, |buffer| will not be modified. +// +// For linearized files, FPDFAvail_IsFormAvail must be called before this, and +// it must have returned PDF_FORM_AVAIL or PDF_FORM_NOTEXIST. Before that, there +// is no guarantee the metadata has been loaded. +FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetMetaText(FPDF_DOCUMENT document, + FPDF_BYTESTRING tag, + void* buffer, + unsigned long buflen); + +// Get the page label for |page_index| from |document|. +// +// document - handle to the document. +// page_index - the 0-based index of the page. +// buffer - a buffer for the page label. May be NULL. +// buflen - the length of the buffer, in bytes. May be 0. +// +// Returns the number of bytes in the page label, including trailing zeros. +// +// The |buffer| is always encoded in UTF-16LE. The |buffer| is followed by two +// bytes of zeros indicating the end of the string. If |buflen| is less than +// the returned length, or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetPageLabel(FPDF_DOCUMENT document, + int page_index, + void* buffer, + unsigned long buflen); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_DOC_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_edit.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_edit.h new file mode 100644 index 0000000..77fa19c --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_edit.h @@ -0,0 +1,1801 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_EDIT_H_ +#define PUBLIC_FPDF_EDIT_H_ + +#include + +// NOLINTNEXTLINE(build/include_directory) +#include "fpdfview.h" + +#define FPDF_ARGB(a, r, g, b) \ + ((uint32_t)(((uint32_t)(b)&0xff) | (((uint32_t)(g)&0xff) << 8) | \ + (((uint32_t)(r)&0xff) << 16) | (((uint32_t)(a)&0xff) << 24))) +#define FPDF_GetBValue(argb) ((uint8_t)(argb)) +#define FPDF_GetGValue(argb) ((uint8_t)(((uint16_t)(argb)) >> 8)) +#define FPDF_GetRValue(argb) ((uint8_t)((argb) >> 16)) +#define FPDF_GetAValue(argb) ((uint8_t)((argb) >> 24)) + +// Refer to PDF Reference version 1.7 table 4.12 for all color space families. +#define FPDF_COLORSPACE_UNKNOWN 0 +#define FPDF_COLORSPACE_DEVICEGRAY 1 +#define FPDF_COLORSPACE_DEVICERGB 2 +#define FPDF_COLORSPACE_DEVICECMYK 3 +#define FPDF_COLORSPACE_CALGRAY 4 +#define FPDF_COLORSPACE_CALRGB 5 +#define FPDF_COLORSPACE_LAB 6 +#define FPDF_COLORSPACE_ICCBASED 7 +#define FPDF_COLORSPACE_SEPARATION 8 +#define FPDF_COLORSPACE_DEVICEN 9 +#define FPDF_COLORSPACE_INDEXED 10 +#define FPDF_COLORSPACE_PATTERN 11 + +// The page object constants. +#define FPDF_PAGEOBJ_UNKNOWN 0 +#define FPDF_PAGEOBJ_TEXT 1 +#define FPDF_PAGEOBJ_PATH 2 +#define FPDF_PAGEOBJ_IMAGE 3 +#define FPDF_PAGEOBJ_SHADING 4 +#define FPDF_PAGEOBJ_FORM 5 + +// The path segment constants. +#define FPDF_SEGMENT_UNKNOWN -1 +#define FPDF_SEGMENT_LINETO 0 +#define FPDF_SEGMENT_BEZIERTO 1 +#define FPDF_SEGMENT_MOVETO 2 + +#define FPDF_FILLMODE_NONE 0 +#define FPDF_FILLMODE_ALTERNATE 1 +#define FPDF_FILLMODE_WINDING 2 + +#define FPDF_FONT_TYPE1 1 +#define FPDF_FONT_TRUETYPE 2 + +#define FPDF_LINECAP_BUTT 0 +#define FPDF_LINECAP_ROUND 1 +#define FPDF_LINECAP_PROJECTING_SQUARE 2 + +#define FPDF_LINEJOIN_MITER 0 +#define FPDF_LINEJOIN_ROUND 1 +#define FPDF_LINEJOIN_BEVEL 2 + +// See FPDF_SetPrintMode() for descriptions. +#define FPDF_PRINTMODE_EMF 0 +#define FPDF_PRINTMODE_TEXTONLY 1 +#define FPDF_PRINTMODE_POSTSCRIPT2 2 +#define FPDF_PRINTMODE_POSTSCRIPT3 3 +#define FPDF_PRINTMODE_POSTSCRIPT2_PASSTHROUGH 4 +#define FPDF_PRINTMODE_POSTSCRIPT3_PASSTHROUGH 5 +#define FPDF_PRINTMODE_EMF_IMAGE_MASKS 6 +#define FPDF_PRINTMODE_POSTSCRIPT3_TYPE42 7 +#define FPDF_PRINTMODE_POSTSCRIPT3_TYPE42_PASSTHROUGH 8 + +typedef struct FPDF_IMAGEOBJ_METADATA { + // The image width in pixels. + unsigned int width; + // The image height in pixels. + unsigned int height; + // The image's horizontal pixel-per-inch. + float horizontal_dpi; + // The image's vertical pixel-per-inch. + float vertical_dpi; + // The number of bits used to represent each pixel. + unsigned int bits_per_pixel; + // The image's colorspace. See above for the list of FPDF_COLORSPACE_*. + int colorspace; + // The image's marked content ID. Useful for pairing with associated alt-text. + // A value of -1 indicates no ID. + int marked_content_id; +} FPDF_IMAGEOBJ_METADATA; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Create a new PDF document. +// +// Returns a handle to a new document, or NULL on failure. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_CreateNewDocument(); + +// Create a new PDF page. +// +// document - handle to document. +// page_index - suggested 0-based index of the page to create. If it is larger +// than document's current last index(L), the created page index +// is the next available index -- L+1. +// width - the page width in points. +// height - the page height in points. +// +// Returns the handle to the new page or NULL on failure. +// +// The page should be closed with FPDF_ClosePage() when finished as +// with any other page in the document. +FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDFPage_New(FPDF_DOCUMENT document, + int page_index, + double width, + double height); + +// Delete the page at |page_index|. +// +// document - handle to document. +// page_index - the index of the page to delete. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_Delete(FPDF_DOCUMENT document, + int page_index); + +// Experimental API. +// Move the given pages to a new index position. +// +// page_indices - the ordered list of pages to move. No duplicates allowed. +// page_indices_len - the number of elements in |page_indices| +// dest_page_index - the new index position to which the pages in +// |page_indices| are moved. +// +// Returns TRUE on success. If it returns FALSE, the document may be left in an +// indeterminate state. +// +// Example: The PDF document starts out with pages [A, B, C, D], with indices +// [0, 1, 2, 3]. +// +// > Move(doc, [3, 2], 2, 1); // returns true +// > // The document has pages [A, D, C, B]. +// > +// > Move(doc, [0, 4, 3], 3, 1); // returns false +// > // Returned false because index 4 is out of range. +// > +// > Move(doc, [0, 3, 1], 3, 2); // returns false +// > // Returned false because index 2 is out of range for 3 page indices. +// > +// > Move(doc, [2, 2], 2, 0); // returns false +// > // Returned false because [2, 2] contains duplicates. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_MovePages(FPDF_DOCUMENT document, + const int* page_indices, + unsigned long page_indices_len, + int dest_page_index); + +// Get the rotation of |page|. +// +// page - handle to a page +// +// Returns one of the following indicating the page rotation: +// 0 - No rotation. +// 1 - Rotated 90 degrees clockwise. +// 2 - Rotated 180 degrees clockwise. +// 3 - Rotated 270 degrees clockwise. +// +// Or returns -1 on error. +FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetRotation(FPDF_PAGE page); + +// Set rotation for |page|. +// +// page - handle to a page. +// rotate - the rotation value, one of: +// 0 - No rotation. +// 1 - Rotated 90 degrees clockwise. +// 2 - Rotated 180 degrees clockwise. +// 3 - Rotated 270 degrees clockwise. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetRotation(FPDF_PAGE page, int rotate); + +// Insert |page_object| into |page|. +// +// page - Handle to a page. +// page_object - Handle to a page object. FPDFPage_InsertObject() takes +// ownership. Ownership of |page_object| transfers to |page| on +// success. |page_object| is freed on failure. Null +// |page_object| causes a failure. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT page_object); + +// Insert |page_object| into |page| at the specified |index|. +// +// page - handle to a page +// page_object - handle to a page object as previously obtained by +// FPDFPageObj_CreateNew{Path|Rect}() or +// FPDFPageObj_New{Text|Image}Obj(). Ownership of the object +// is transferred back to PDFium. +// index - the index position to insert the object at. If index equals +// the current object count, the object will be appended to the +// end. If index is greater than the object count, the function +// will fail and return false. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPage_InsertObjectAtIndex(FPDF_PAGE page, + FPDF_PAGEOBJECT page_object, + size_t index); + +// Experimental API. +// Remove |page_object| from |page|. +// +// page - handle to a page +// page_object - handle to a page object to be removed. +// +// Returns TRUE on success. +// +// Ownership is transferred to the caller. Call FPDFPageObj_Destroy() to free +// it. +// Note that when removing a |page_object| of type FPDF_PAGEOBJ_TEXT, all +// FPDF_TEXTPAGE handles for |page| are no longer valid. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPage_RemoveObject(FPDF_PAGE page, FPDF_PAGEOBJECT page_object); + +// Get number of page objects inside |page|. +// +// page - handle to a page. +// +// Returns the number of objects in |page|. +FPDF_EXPORT int FPDF_CALLCONV FPDFPage_CountObjects(FPDF_PAGE page); + +// Get object in |page| at |index|. +// +// page - handle to a page. +// index - the index of a page object. +// +// Returns the handle to the page object, or NULL on failed. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPage_GetObject(FPDF_PAGE page, + int index); + +// Checks if |page| contains transparency. +// +// page - handle to a page. +// +// Returns TRUE if |page| contains transparency. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_HasTransparency(FPDF_PAGE page); + +// Generate the content of |page|. +// +// page - handle to a page. +// +// Returns TRUE on success. +// +// Before you save the page to a file, or reload the page, you must call +// |FPDFPage_GenerateContent| or any changes to |page| will be lost. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GenerateContent(FPDF_PAGE page); + +// Destroy |page_object| by releasing its resources. |page_object| must have +// been created by FPDFPageObj_CreateNew{Path|Rect}() or +// FPDFPageObj_New{Text|Image}Obj(). This function must be called on +// newly-created objects if they are not added to a page through +// FPDFPage_InsertObject() or to an annotation through FPDFAnnot_AppendObject(). +// +// page_object - handle to a page object. +FPDF_EXPORT void FPDF_CALLCONV FPDFPageObj_Destroy(FPDF_PAGEOBJECT page_object); + +// Checks if |page_object| contains transparency. +// +// page_object - handle to a page object. +// +// Returns TRUE if |page_object| contains transparency. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT page_object); + +// Get type of |page_object|. +// +// page_object - handle to a page object. +// +// Returns one of the FPDF_PAGEOBJ_* values on success, FPDF_PAGEOBJ_UNKNOWN on +// error. +FPDF_EXPORT int FPDF_CALLCONV FPDFPageObj_GetType(FPDF_PAGEOBJECT page_object); + +// Experimental API. +// Gets active state for |page_object| within page. +// +// page_object - handle to a page object. +// active - pointer to variable that will receive if the page object is +// active. This is a required parameter. Not filled if FALSE +// is returned. +// +// For page objects where |active| is filled with FALSE, the |page_object| is +// treated as if it wasn't in the document even though it is still held +// internally. +// +// Returns TRUE if the operation succeeded, FALSE if it failed. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetIsActive(FPDF_PAGEOBJECT page_object, FPDF_BOOL* active); + +// Experimental API. +// Sets if |page_object| is active within page. +// +// page_object - handle to a page object. +// active - a boolean specifying if the object is active. +// +// Returns TRUE on success. +// +// Page objects all start in the active state by default, and remain in that +// state unless this function is called. +// +// When |active| is false, this makes the |page_object| be treated as if it +// wasn't in the document even though it is still held internally. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetIsActive(FPDF_PAGEOBJECT page_object, FPDF_BOOL active); + +// Transform |page_object| by the given matrix. +// +// page_object - handle to a page object. +// a - matrix value. +// b - matrix value. +// c - matrix value. +// d - matrix value. +// e - matrix value. +// f - matrix value. +// +// The matrix is composed as: +// |a c e| +// |b d f| +// and can be used to scale, rotate, shear and translate the |page_object|. +FPDF_EXPORT void FPDF_CALLCONV +FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object, + double a, + double b, + double c, + double d, + double e, + double f); + +// Experimental API. +// Transform |page_object| by the given matrix. +// +// page_object - handle to a page object. +// matrix - the transform matrix. +// +// Returns TRUE on success. +// +// This can be used to scale, rotate, shear and translate the |page_object|. +// It is an improved version of FPDFPageObj_Transform() that does not do +// unnecessary double to float conversions, and only uses 1 parameter for the +// matrix. It also returns whether the operation succeeded or not. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_TransformF(FPDF_PAGEOBJECT page_object, const FS_MATRIX* matrix); + +// Experimental API. +// Get the transform matrix of a page object. +// +// page_object - handle to a page object. +// matrix - pointer to struct to receive the matrix value. +// +// The matrix is composed as: +// |a c e| +// |b d f| +// and used to scale, rotate, shear and translate the page object. +// +// For page objects outside form objects, the matrix values are relative to the +// page that contains it. +// For page objects inside form objects, the matrix values are relative to the +// form that contains it. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetMatrix(FPDF_PAGEOBJECT page_object, FS_MATRIX* matrix); + +// Experimental API. +// Set the transform matrix of a page object. +// +// page_object - handle to a page object. +// matrix - pointer to struct with the matrix value. +// +// The matrix is composed as: +// |a c e| +// |b d f| +// and can be used to scale, rotate, shear and translate the page object. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetMatrix(FPDF_PAGEOBJECT page_object, const FS_MATRIX* matrix); + +// Transform all annotations in |page|. +// +// page - handle to a page. +// a - matrix value. +// b - matrix value. +// c - matrix value. +// d - matrix value. +// e - matrix value. +// f - matrix value. +// +// The matrix is composed as: +// |a c e| +// |b d f| +// and can be used to scale, rotate, shear and translate the |page| annotations. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_TransformAnnots(FPDF_PAGE page, + double a, + double b, + double c, + double d, + double e, + double f); + +// Create a new image object. +// +// document - handle to a document. +// +// Returns a handle to a new image object. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFPageObj_NewImageObj(FPDF_DOCUMENT document); + +// Experimental API. +// Get the marked content ID for the object. +// +// page_object - handle to a page object. +// +// Returns the page object's marked content ID, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObj_GetMarkedContentID(FPDF_PAGEOBJECT page_object); + +// Experimental API. +// Get number of content marks in |page_object|. +// +// page_object - handle to a page object. +// +// Returns the number of content marks in |page_object|, or -1 in case of +// failure. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObj_CountMarks(FPDF_PAGEOBJECT page_object); + +// Experimental API. +// Get content mark in |page_object| at |index|. +// +// page_object - handle to a page object. +// index - the index of a page object. +// +// Returns the handle to the content mark, or NULL on failure. The handle is +// still owned by the library, and it should not be freed directly. It becomes +// invalid if the page object is destroyed, either directly or indirectly by +// unloading the page. +FPDF_EXPORT FPDF_PAGEOBJECTMARK FPDF_CALLCONV +FPDFPageObj_GetMark(FPDF_PAGEOBJECT page_object, unsigned long index); + +// Experimental API. +// Add a new content mark to a |page_object|. +// +// page_object - handle to a page object. +// name - the name (tag) of the mark. +// +// Returns the handle to the content mark, or NULL on failure. The handle is +// still owned by the library, and it should not be freed directly. It becomes +// invalid if the page object is destroyed, either directly or indirectly by +// unloading the page. +FPDF_EXPORT FPDF_PAGEOBJECTMARK FPDF_CALLCONV +FPDFPageObj_AddMark(FPDF_PAGEOBJECT page_object, FPDF_BYTESTRING name); + +// Experimental API. +// Add an existing content mark to a |page_object|. If consecutive page objects +// have the same |mark|, the generated PDF will contain a single mark that spans +// all of them. If the page objects are not consecutive, multiple copies of the +// |mark| are inserted in the PDF. +// +// page_object - handle to a page object. +// mark - handle to a mark object. +// +// Returns true on success, or false on failure. The handles are all owned by +// the library. The |page_object| and |mark| params must be associated with the +// same document. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_AddExistingMark(FPDF_PAGEOBJECT page_object, + FPDF_PAGEOBJECTMARK mark); + +// Experimental API. +// Removes a content |mark| from a |page_object|. +// The mark handle will be invalid after the removal. +// +// page_object - handle to a page object. +// mark - handle to a content mark in that object to remove. +// +// Returns TRUE if the operation succeeded, FALSE if it failed. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_RemoveMark(FPDF_PAGEOBJECT page_object, FPDF_PAGEOBJECTMARK mark); + +// Experimental API. +// Get the name of a content mark. +// +// mark - handle to a content mark. +// buffer - buffer for holding the returned name in UTF-16LE. This is only +// modified if |buflen| is large enough to store the name. +// Optional, pass null to just retrieve the size of the buffer +// needed. +// buflen - length of the buffer in bytes. +// out_buflen - pointer to variable that will receive the minimum buffer size +// in bytes to contain the name. This is a required parameter. +// Not filled if FALSE is returned. +// +// Returns TRUE if the operation succeeded, FALSE if it failed. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_GetName(FPDF_PAGEOBJECTMARK mark, + FPDF_WCHAR* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Get the number of key/value pair parameters in |mark|. +// +// mark - handle to a content mark. +// +// Returns the number of key/value pair parameters |mark|, or -1 in case of +// failure. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObjMark_CountParams(FPDF_PAGEOBJECTMARK mark); + +// Experimental API. +// Get the key of a property in a content mark. +// +// mark - handle to a content mark. +// index - index of the property. +// buffer - buffer for holding the returned key in UTF-16LE. This is only +// modified if |buflen| is large enough to store the key. +// Optional, pass null to just retrieve the size of the buffer +// needed. +// buflen - length of the buffer in bytes. +// out_buflen - pointer to variable that will receive the minimum buffer size +// in bytes to contain the name. This is a required parameter. +// Not filled if FALSE is returned. +// +// Returns TRUE if the operation was successful, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_GetParamKey(FPDF_PAGEOBJECTMARK mark, + unsigned long index, + FPDF_WCHAR* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Get the type of the value of a property in a content mark by key. +// +// mark - handle to a content mark. +// key - string key of the property. +// +// Returns the type of the value, or FPDF_OBJECT_UNKNOWN in case of failure. +FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV +FPDFPageObjMark_GetParamValueType(FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key); + +// Experimental API. +// Get the value of a number property in a content mark by key as int. +// FPDFPageObjMark_GetParamValueType() should have returned FPDF_OBJECT_NUMBER +// for this property. +// +// mark - handle to a content mark. +// key - string key of the property. +// out_value - pointer to variable that will receive the value. Not filled if +// false is returned. +// +// Returns TRUE if the key maps to a number value, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_GetParamIntValue(FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + int* out_value); + +// Experimental API. +// Get the value of a number property in a content mark by key as float. +// FPDFPageObjMark_GetParamValueType() should have returned FPDF_OBJECT_NUMBER +// for this property. +// +// mark - handle to a content mark. +// key - string key of the property. +// out_value - pointer to variable that will receive the value. Not filled if +// false is returned. +// +// Returns TRUE if the key maps to a number value, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_GetParamFloatValue(FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + float* out_value); + +// Experimental API. +// Get the value of a string property in a content mark by key. +// +// mark - handle to a content mark. +// key - string key of the property. +// buffer - buffer for holding the returned value in UTF-16LE. This is +// only modified if |buflen| is large enough to store the value. +// Optional, pass null to just retrieve the size of the buffer +// needed. +// buflen - length of the buffer in bytes. +// out_buflen - pointer to variable that will receive the minimum buffer size +// in bytes to contain the name. This is a required parameter. +// Not filled if FALSE is returned. +// +// Returns TRUE if the key maps to a string/blob value, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_GetParamStringValue(FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + FPDF_WCHAR* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Get the value of a blob property in a content mark by key. +// +// mark - handle to a content mark. +// key - string key of the property. +// buffer - buffer for holding the returned value. This is only modified +// if |buflen| is large enough to store the value. +// Optional, pass null to just retrieve the size of the buffer +// needed. +// buflen - length of the buffer in bytes. +// out_buflen - pointer to variable that will receive the minimum buffer size +// in bytes to contain the name. This is a required parameter. +// Not filled if FALSE is returned. +// +// Returns TRUE if the key maps to a string/blob value, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_GetParamBlobValue(FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + unsigned char* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Set the value of an int property in a content mark by key. If a parameter +// with key |key| exists, its value is set to |value|. Otherwise, it is added as +// a new parameter. +// +// document - handle to the document. +// page_object - handle to the page object with the mark. +// mark - handle to a content mark. +// key - string key of the property. +// value - int value to set. +// +// Returns TRUE if the operation succeeded, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_SetIntParam(FPDF_DOCUMENT document, + FPDF_PAGEOBJECT page_object, + FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + int value); + +// Experimental API. +// Set the value of a float property in a content mark by key. If a parameter +// with key |key| exists, its value is set to |value|. Otherwise, it is added as +// a new parameter. +// +// document - handle to the document. +// page_object - handle to the page object with the mark. +// mark - handle to a content mark. +// key - string key of the property. +// value - float value to set. +// +// Returns TRUE if the operation succeeded, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_SetFloatParam(FPDF_DOCUMENT document, + FPDF_PAGEOBJECT page_object, + FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + float value); + +// Experimental API. +// Set the value of a string property in a content mark by key. If a parameter +// with key |key| exists, its value is set to |value|. Otherwise, it is added as +// a new parameter. +// +// document - handle to the document. +// page_object - handle to the page object with the mark. +// mark - handle to a content mark. +// key - string key of the property. +// value - string value to set. +// +// Returns TRUE if the operation succeeded, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_SetStringParam(FPDF_DOCUMENT document, + FPDF_PAGEOBJECT page_object, + FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + FPDF_BYTESTRING value); + +// Experimental API. +// Set the value of a blob property in a content mark by key. If a parameter +// with key |key| exists, its value is set to |value|. Otherwise, it is added as +// a new parameter. +// +// document - handle to the document. +// page_object - handle to the page object with the mark. +// mark - handle to a content mark. +// key - string key of the property. +// value - pointer to blob value to set. +// value_len - size in bytes of |value|. +// +// Returns TRUE if the operation succeeded, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_SetBlobParam(FPDF_DOCUMENT document, + FPDF_PAGEOBJECT page_object, + FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key, + const unsigned char* value, + unsigned long value_len); + +// Experimental API. +// Removes a property from a content mark by key. +// +// page_object - handle to the page object with the mark. +// mark - handle to a content mark. +// key - string key of the property. +// +// Returns TRUE if the operation succeeded, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObjMark_RemoveParam(FPDF_PAGEOBJECT page_object, + FPDF_PAGEOBJECTMARK mark, + FPDF_BYTESTRING key); + +// Load an image from a JPEG image file and then set it into |image_object|. +// +// pages - pointer to the start of all loaded pages, may be NULL. +// count - number of |pages|, may be 0. +// image_object - handle to an image object. +// file_access - file access handler which specifies the JPEG image file. +// +// Returns TRUE on success. +// +// The image object might already have an associated image, which is shared and +// cached by the loaded pages. In that case, we need to clear the cached image +// for all the loaded pages. Pass |pages| and page count (|count|) to this API +// to clear the image cache. If the image is not previously shared, or NULL is a +// valid |pages| value. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, + int count, + FPDF_PAGEOBJECT image_object, + FPDF_FILEACCESS* file_access); + +// Load an image from a JPEG image file and then set it into |image_object|. +// +// pages - pointer to the start of all loaded pages, may be NULL. +// count - number of |pages|, may be 0. +// image_object - handle to an image object. +// file_access - file access handler which specifies the JPEG image file. +// +// Returns TRUE on success. +// +// The image object might already have an associated image, which is shared and +// cached by the loaded pages. In that case, we need to clear the cached image +// for all the loaded pages. Pass |pages| and page count (|count|) to this API +// to clear the image cache. If the image is not previously shared, or NULL is a +// valid |pages| value. This function loads the JPEG image inline, so the image +// content is copied to the file. This allows |file_access| and its associated +// data to be deleted after this function returns. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_LoadJpegFileInline(FPDF_PAGE* pages, + int count, + FPDF_PAGEOBJECT image_object, + FPDF_FILEACCESS* file_access); + +// TODO(thestig): Start deprecating this once FPDFPageObj_SetMatrix() is stable. +// +// Set the transform matrix of |image_object|. +// +// image_object - handle to an image object. +// a - matrix value. +// b - matrix value. +// c - matrix value. +// d - matrix value. +// e - matrix value. +// f - matrix value. +// +// The matrix is composed as: +// |a c e| +// |b d f| +// and can be used to scale, rotate, shear and translate the |image_object|. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_SetMatrix(FPDF_PAGEOBJECT image_object, + double a, + double b, + double c, + double d, + double e, + double f); + +// Set |bitmap| to |image_object|. +// +// pages - pointer to the start of all loaded pages, may be NULL. +// count - number of |pages|, may be 0. +// image_object - handle to an image object. +// bitmap - handle of the bitmap. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_SetBitmap(FPDF_PAGE* pages, + int count, + FPDF_PAGEOBJECT image_object, + FPDF_BITMAP bitmap); + +// Get a bitmap rasterization of |image_object|. FPDFImageObj_GetBitmap() only +// operates on |image_object| and does not take the associated image mask into +// account. It also ignores the matrix for |image_object|. +// The returned bitmap will be owned by the caller, and FPDFBitmap_Destroy() +// must be called on the returned bitmap when it is no longer needed. +// +// image_object - handle to an image object. +// +// Returns the bitmap. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV +FPDFImageObj_GetBitmap(FPDF_PAGEOBJECT image_object); + +// Experimental API. +// Get a bitmap rasterization of |image_object| that takes the image mask and +// image matrix into account. To render correctly, the caller must provide the +// |document| associated with |image_object|. If there is a |page| associated +// with |image_object|, the caller should provide that as well. +// The returned bitmap will be owned by the caller, and FPDFBitmap_Destroy() +// must be called on the returned bitmap when it is no longer needed. +// +// document - handle to a document associated with |image_object|. +// page - handle to an optional page associated with |image_object|. +// image_object - handle to an image object. +// +// Returns the bitmap or NULL on failure. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV +FPDFImageObj_GetRenderedBitmap(FPDF_DOCUMENT document, + FPDF_PAGE page, + FPDF_PAGEOBJECT image_object); + +// Get the decoded image data of |image_object|. The decoded data is the +// uncompressed image data, i.e. the raw image data after having all filters +// applied. |buffer| is only modified if |buflen| is longer than the length of +// the decoded image data. +// +// image_object - handle to an image object. +// buffer - buffer for holding the decoded image data. +// buflen - length of the buffer in bytes. +// +// Returns the length of the decoded image data. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFImageObj_GetImageDataDecoded(FPDF_PAGEOBJECT image_object, + void* buffer, + unsigned long buflen); + +// Get the raw image data of |image_object|. The raw data is the image data as +// stored in the PDF without applying any filters. |buffer| is only modified if +// |buflen| is longer than the length of the raw image data. +// +// image_object - handle to an image object. +// buffer - buffer for holding the raw image data. +// buflen - length of the buffer in bytes. +// +// Returns the length of the raw image data. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFImageObj_GetImageDataRaw(FPDF_PAGEOBJECT image_object, + void* buffer, + unsigned long buflen); + +// Get the number of filters (i.e. decoders) of the image in |image_object|. +// +// image_object - handle to an image object. +// +// Returns the number of |image_object|'s filters. +FPDF_EXPORT int FPDF_CALLCONV +FPDFImageObj_GetImageFilterCount(FPDF_PAGEOBJECT image_object); + +// Get the filter at |index| of |image_object|'s list of filters. Note that the +// filters need to be applied in order, i.e. the first filter should be applied +// first, then the second, etc. |buffer| is only modified if |buflen| is longer +// than the length of the filter string. +// +// image_object - handle to an image object. +// index - the index of the filter requested. +// buffer - buffer for holding filter string, encoded in UTF-8. +// buflen - length of the buffer. +// +// Returns the length of the filter string. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFImageObj_GetImageFilter(FPDF_PAGEOBJECT image_object, + int index, + void* buffer, + unsigned long buflen); + +// Get the image metadata of |image_object|, including dimension, DPI, bits per +// pixel, and colorspace. If the |image_object| is not an image object or if it +// does not have an image, then the return value will be false. Otherwise, +// failure to retrieve any specific parameter would result in its value being 0. +// +// image_object - handle to an image object. +// page - handle to the page that |image_object| is on. Required for +// retrieving the image's bits per pixel and colorspace. +// metadata - receives the image metadata; must not be NULL. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_GetImageMetadata(FPDF_PAGEOBJECT image_object, + FPDF_PAGE page, + FPDF_IMAGEOBJ_METADATA* metadata); + +// Experimental API. +// Get the image size in pixels. Faster method to get only image size. +// +// image_object - handle to an image object. +// width - receives the image width in pixels; must not be NULL. +// height - receives the image height in pixels; must not be NULL. +// +// Returns true if successful. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_GetImagePixelSize(FPDF_PAGEOBJECT image_object, + unsigned int* width, + unsigned int* height); + +// Experimental API. +// Get ICC profile decoded data of |image_object|. If the |image_object| is not +// an image object or if it does not have an image, then the return value will +// be false. It also returns false if the |image_object| has no ICC profile. +// |buffer| is only modified if ICC profile exists and |buflen| is longer than +// the length of the ICC profile decoded data. +// +// image_object - handle to an image object; must not be NULL. +// page - handle to the page containing |image_object|; must not be +// NULL. Required for retrieving the image's colorspace. +// buffer - Buffer to receive ICC profile data; may be NULL if querying +// required size via |out_buflen|. +// buflen - Length of the buffer in bytes. Ignored if |buffer| is NULL. +// out_buflen - Pointer to receive the ICC profile data size in bytes; must +// not be NULL. Will be set if this API returns true. +// +// Returns true if |out_buflen| is not null and an ICC profile exists for the +// given |image_object|. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFImageObj_GetIccProfileDataDecoded(FPDF_PAGEOBJECT image_object, + FPDF_PAGE page, + uint8_t* buffer, + size_t buflen, + size_t* out_buflen); + +// Create a new path object at an initial position. +// +// x - initial horizontal position. +// y - initial vertical position. +// +// Returns a handle to a new path object. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewPath(float x, + float y); + +// Create a closed path consisting of a rectangle. +// +// x - horizontal position for the left boundary of the rectangle. +// y - vertical position for the bottom boundary of the rectangle. +// w - width of the rectangle. +// h - height of the rectangle. +// +// Returns a handle to the new path object. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewRect(float x, + float y, + float w, + float h); + +// Get the bounding box of |page_object|. +// +// page_object - handle to a page object. +// left - pointer where the left coordinate will be stored +// bottom - pointer where the bottom coordinate will be stored +// right - pointer where the right coordinate will be stored +// top - pointer where the top coordinate will be stored +// +// On success, returns TRUE and fills in the 4 coordinates. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetBounds(FPDF_PAGEOBJECT page_object, + float* left, + float* bottom, + float* right, + float* top); + +// Experimental API. +// Get the quad points that bounds |page_object|. +// +// page_object - handle to a page object. +// quad_points - pointer where the quadrilateral points will be stored. +// +// On success, returns TRUE and fills in |quad_points|. +// +// Similar to FPDFPageObj_GetBounds(), this returns the bounds of a page +// object. When the object is rotated by a non-multiple of 90 degrees, this API +// returns a tighter bound that cannot be represented with just the 4 sides of +// a rectangle. +// +// Currently only works the following |page_object| types: FPDF_PAGEOBJ_TEXT and +// FPDF_PAGEOBJ_IMAGE. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetRotatedBounds(FPDF_PAGEOBJECT page_object, + FS_QUADPOINTSF* quad_points); + +// Set the blend mode of |page_object|. +// +// page_object - handle to a page object. +// blend_mode - string containing the blend mode. +// +// Blend mode can be one of following: Color, ColorBurn, ColorDodge, Darken, +// Difference, Exclusion, HardLight, Hue, Lighten, Luminosity, Multiply, Normal, +// Overlay, Saturation, Screen, SoftLight +FPDF_EXPORT void FPDF_CALLCONV +FPDFPageObj_SetBlendMode(FPDF_PAGEOBJECT page_object, + FPDF_BYTESTRING blend_mode); + +// Set the stroke RGBA of a page object. Range of values: 0 - 255. +// +// page_object - the handle to the page object. +// R - the red component for the object's stroke color. +// G - the green component for the object's stroke color. +// B - the blue component for the object's stroke color. +// A - the stroke alpha for the object. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetStrokeColor(FPDF_PAGEOBJECT page_object, + unsigned int R, + unsigned int G, + unsigned int B, + unsigned int A); + +// Get the stroke RGBA of a page object. Range of values: 0 - 255. +// +// page_object - the handle to the page object. +// R - the red component of the path stroke color. +// G - the green component of the object's stroke color. +// B - the blue component of the object's stroke color. +// A - the stroke alpha of the object. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetStrokeColor(FPDF_PAGEOBJECT page_object, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + +// Set the stroke width of a page object. +// +// path - the handle to the page object. +// width - the width of the stroke. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetStrokeWidth(FPDF_PAGEOBJECT page_object, float width); + +// Get the stroke width of a page object. +// +// path - the handle to the page object. +// width - the width of the stroke. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetStrokeWidth(FPDF_PAGEOBJECT page_object, float* width); + +// Get the line join of |page_object|. +// +// page_object - handle to a page object. +// +// Returns the line join, or -1 on failure. +// Line join can be one of following: FPDF_LINEJOIN_MITER, FPDF_LINEJOIN_ROUND, +// FPDF_LINEJOIN_BEVEL +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObj_GetLineJoin(FPDF_PAGEOBJECT page_object); + +// Set the line join of |page_object|. +// +// page_object - handle to a page object. +// line_join - line join +// +// Line join can be one of following: FPDF_LINEJOIN_MITER, FPDF_LINEJOIN_ROUND, +// FPDF_LINEJOIN_BEVEL +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetLineJoin(FPDF_PAGEOBJECT page_object, int line_join); + +// Get the line cap of |page_object|. +// +// page_object - handle to a page object. +// +// Returns the line cap, or -1 on failure. +// Line cap can be one of following: FPDF_LINECAP_BUTT, FPDF_LINECAP_ROUND, +// FPDF_LINECAP_PROJECTING_SQUARE +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObj_GetLineCap(FPDF_PAGEOBJECT page_object); + +// Set the line cap of |page_object|. +// +// page_object - handle to a page object. +// line_cap - line cap +// +// Line cap can be one of following: FPDF_LINECAP_BUTT, FPDF_LINECAP_ROUND, +// FPDF_LINECAP_PROJECTING_SQUARE +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetLineCap(FPDF_PAGEOBJECT page_object, int line_cap); + +// Set the fill RGBA of a page object. Range of values: 0 - 255. +// +// page_object - the handle to the page object. +// R - the red component for the object's fill color. +// G - the green component for the object's fill color. +// B - the blue component for the object's fill color. +// A - the fill alpha for the object. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetFillColor(FPDF_PAGEOBJECT page_object, + unsigned int R, + unsigned int G, + unsigned int B, + unsigned int A); + +// Get the fill RGBA of a page object. Range of values: 0 - 255. +// +// page_object - the handle to the page object. +// R - the red component of the object's fill color. +// G - the green component of the object's fill color. +// B - the blue component of the object's fill color. +// A - the fill alpha of the object. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetFillColor(FPDF_PAGEOBJECT page_object, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + +// Experimental API. +// Get the line dash |phase| of |page_object|. +// +// page_object - handle to a page object. +// phase - pointer where the dashing phase will be stored. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetDashPhase(FPDF_PAGEOBJECT page_object, float* phase); + +// Experimental API. +// Set the line dash phase of |page_object|. +// +// page_object - handle to a page object. +// phase - line dash phase. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetDashPhase(FPDF_PAGEOBJECT page_object, float phase); + +// Experimental API. +// Get the line dash array of |page_object|. +// +// page_object - handle to a page object. +// +// Returns the line dash array size or -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObj_GetDashCount(FPDF_PAGEOBJECT page_object); + +// Experimental API. +// Get the line dash array of |page_object|. +// +// page_object - handle to a page object. +// dash_array - pointer where the dashing array will be stored. +// dash_count - number of elements in |dash_array|. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_GetDashArray(FPDF_PAGEOBJECT page_object, + float* dash_array, + size_t dash_count); + +// Experimental API. +// Set the line dash array of |page_object|. +// +// page_object - handle to a page object. +// dash_array - the dash array. +// dash_count - number of elements in |dash_array|. +// phase - the line dash phase. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_SetDashArray(FPDF_PAGEOBJECT page_object, + const float* dash_array, + size_t dash_count, + float phase); + +// Experimental API. +// Get a bitmap rasterization of the stroke pattern of |page_object|. +// To render correctly, the caller must provide the |document| associated with +// |page_object|. The returned bitmap will be owned by the caller, and +// FPDFBitmap_Destroy() must be called on the returned bitmap when it is no +// longer needed. +// +// document - handle to the document containing |page_object|. +// page_object - handle to a page object. +// +// Returns the bitmap, or NULL if the stroke is not a tiling pattern or on +// failure. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV +FPDFPageObj_GetRenderedStrokePattern(FPDF_DOCUMENT document, + FPDF_PAGEOBJECT page_object); + +// Experimental API. +// Get a bitmap rasterization of the fill pattern of |page_object|. +// To render correctly, the caller must provide the |document| associated with +// |page_object|. The returned bitmap will be owned by the caller, and +// FPDFBitmap_Destroy() must be called on the returned bitmap when it is no +// longer needed. +// +// document - handle to the document containing |page_object|. +// page_object - handle to a page object. +// +// Returns the bitmap, or NULL if the fill is not a tiling pattern or on +// failure. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV +FPDFPageObj_GetRenderedFillPattern(FPDF_DOCUMENT document, + FPDF_PAGEOBJECT page_object); + +// Get number of segments inside |path|. +// +// path - handle to a path. +// +// A segment is a command, created by e.g. FPDFPath_MoveTo(), +// FPDFPath_LineTo() or FPDFPath_BezierTo(). +// +// Returns the number of objects in |path| or -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV FPDFPath_CountSegments(FPDF_PAGEOBJECT path); + +// Get segment in |path| at |index|. +// +// path - handle to a path. +// index - the index of a segment. +// +// Returns the handle to the segment, or NULL on faiure. +FPDF_EXPORT FPDF_PATHSEGMENT FPDF_CALLCONV +FPDFPath_GetPathSegment(FPDF_PAGEOBJECT path, int index); + +// Get coordinates of |segment|. +// +// segment - handle to a segment. +// x - the horizontal position of the segment. +// y - the vertical position of the segment. +// +// Returns TRUE on success, otherwise |x| and |y| is not set. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPathSegment_GetPoint(FPDF_PATHSEGMENT segment, float* x, float* y); + +// Get type of |segment|. +// +// segment - handle to a segment. +// +// Returns one of the FPDF_SEGMENT_* values on success, +// FPDF_SEGMENT_UNKNOWN on error. +FPDF_EXPORT int FPDF_CALLCONV FPDFPathSegment_GetType(FPDF_PATHSEGMENT segment); + +// Gets if the |segment| closes the current subpath of a given path. +// +// segment - handle to a segment. +// +// Returns close flag for non-NULL segment, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPathSegment_GetClose(FPDF_PATHSEGMENT segment); + +// Move a path's current point. +// +// path - the handle to the path object. +// x - the horizontal position of the new current point. +// y - the vertical position of the new current point. +// +// Note that no line will be created between the previous current point and the +// new one. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_MoveTo(FPDF_PAGEOBJECT path, + float x, + float y); + +// Add a line between the current point and a new point in the path. +// +// path - the handle to the path object. +// x - the horizontal position of the new point. +// y - the vertical position of the new point. +// +// The path's current point is changed to (x, y). +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_LineTo(FPDF_PAGEOBJECT path, + float x, + float y); + +// Add a cubic Bezier curve to the given path, starting at the current point. +// +// path - the handle to the path object. +// x1 - the horizontal position of the first Bezier control point. +// y1 - the vertical position of the first Bezier control point. +// x2 - the horizontal position of the second Bezier control point. +// y2 - the vertical position of the second Bezier control point. +// x3 - the horizontal position of the ending point of the Bezier curve. +// y3 - the vertical position of the ending point of the Bezier curve. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_BezierTo(FPDF_PAGEOBJECT path, + float x1, + float y1, + float x2, + float y2, + float x3, + float y3); + +// Experimental API. +// Get the two control points of a cubic Bezier segment in |path| at |index|. +// +// path - handle to a path. +// index - the index of the endpoint of a cubic Bezier segment. +// first_control_point - the first control point. +// second_control_point - the second control point. +// +// Returns TRUE on success. Returns FALSE when |path| is not a valid path, +// |index| is out of bounds, the indexed segment is not the endpoint of a cubic +// Bezier segment, or either output pointer is NULL. On failure, the output +// parameters are not modified. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPath_GetBezierControlPoints(FPDF_PAGEOBJECT path, + size_t index, + FS_POINTF* first_control_point, + FS_POINTF* second_control_point); + +// Close the current subpath of a given path. +// +// path - the handle to the path object. +// +// This will add a line between the current point and the initial point of the +// subpath, thus terminating the current subpath. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_Close(FPDF_PAGEOBJECT path); + +// Set the drawing mode of a path. +// +// path - the handle to the path object. +// fillmode - the filling mode to be set: one of the FPDF_FILLMODE_* flags. +// stroke - a boolean specifying if the path should be stroked or not. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_SetDrawMode(FPDF_PAGEOBJECT path, + int fillmode, + FPDF_BOOL stroke); + +// Get the drawing mode of a path. +// +// path - the handle to the path object. +// fillmode - the filling mode of the path: one of the FPDF_FILLMODE_* flags. +// stroke - a boolean specifying if the path is stroked or not. +// +// Returns TRUE on success +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_GetDrawMode(FPDF_PAGEOBJECT path, + int* fillmode, + FPDF_BOOL* stroke); + +// Create a new text object using one of the standard PDF fonts. +// +// document - handle to the document. +// font - string containing the font name, without spaces. +// font_size - the font size for the new text object. +// +// Returns a handle to a new text object, or NULL on failure +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFPageObj_NewTextObj(FPDF_DOCUMENT document, + FPDF_BYTESTRING font, + float font_size); + +// Set the text for a text object. If it had text, it will be replaced. +// +// text_object - handle to the text object. +// text - the UTF-16LE encoded string containing the text to be added. +// +// Returns TRUE on success. Fails if |text_object| is null or if |text| is +// empty. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_SetText(FPDF_PAGEOBJECT text_object, FPDF_WIDESTRING text); + +// Experimental API. +// Set the text using charcodes for a text object. If it had text, it will be +// replaced. +// +// text_object - handle to the text object. +// charcodes - pointer to an array of charcodes to be added. +// count - number of elements in |charcodes|. +// +// Returns TRUE on success. Fails if |text_object| or |charcodes| is null, or +// |count| is 0. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_SetCharcodes(FPDF_PAGEOBJECT text_object, + const uint32_t* charcodes, + size_t count); + +// Experimental API. +// Set the character positions for a text object. +// +// text_object - handle to the text object. +// positions - pointer to an array of character positions to be set. +// count - number of elements in |positions|. +// +// The |positions| array specifies the position in points for each character +// except the first one. The first character has an implied position value of 0. +// All positions are relative to the origin of the text object. The direction is +// either horizontal or vertical, depending on the direction of text in +// |text_object|. +// +// For a text object with N characters, |count| must be N - 1. Therefore this +// API fails when N <= 1. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_SetPositions(FPDF_PAGEOBJECT text_object, + const float* positions, + size_t count); + +// Returns a font object loaded from a stream of data. The font is loaded +// into the document. Various font data structures, such as the ToUnicode data, +// are auto-generated based on the inputs. +// +// document - handle to the document. +// data - the stream of font data, which will be copied by the font object. +// size - the size of the font data, in bytes. +// font_type - FPDF_FONT_TYPE1 or FPDF_FONT_TRUETYPE depending on the font type. +// cid - a boolean specifying if the font is a CID font or not. +// +// The loaded font can be closed using FPDFFont_Close(). +// +// Returns NULL on failure +FPDF_EXPORT FPDF_FONT FPDF_CALLCONV FPDFText_LoadFont(FPDF_DOCUMENT document, + const uint8_t* data, + uint32_t size, + int font_type, + FPDF_BOOL cid); + +// Experimental API. +// Loads one of the standard 14 fonts per PDF spec 1.7 page 416. The preferred +// way of using font style is using a dash to separate the name from the style, +// for example 'Helvetica-BoldItalic'. +// +// document - handle to the document. +// font - string containing the font name, without spaces. +// +// The loaded font can be closed using FPDFFont_Close(). +// +// Returns NULL on failure. +FPDF_EXPORT FPDF_FONT FPDF_CALLCONV +FPDFText_LoadStandardFont(FPDF_DOCUMENT document, FPDF_BYTESTRING font); + +// Experimental API. +// Returns a font object loaded from a stream of data for a type 2 CID font. The +// font is loaded into the document. Unlike FPDFText_LoadFont(), the ToUnicode +// data and the CIDToGIDMap data are caller provided, instead of auto-generated. +// +// document - handle to the document. +// font_data - the stream of font data, which will be copied by +// the font object. +// font_data_size - the size of the font data, in bytes. +// to_unicode_cmap - the ToUnicode data. +// cid_to_gid_map_data - the stream of CIDToGIDMap data. +// cid_to_gid_map_data_size - the size of the CIDToGIDMap data, in bytes. +// +// The loaded font can be closed using FPDFFont_Close(). +// +// Returns NULL on failure. +FPDF_EXPORT FPDF_FONT FPDF_CALLCONV +FPDFText_LoadCidType2Font(FPDF_DOCUMENT document, + const uint8_t* font_data, + uint32_t font_data_size, + FPDF_BYTESTRING to_unicode_cmap, + const uint8_t* cid_to_gid_map_data, + uint32_t cid_to_gid_map_data_size); + +// Get the font size of a text object. +// +// text - handle to a text. +// size - pointer to the font size of the text object, measured in points +// (about 1/72 inch) +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFTextObj_GetFontSize(FPDF_PAGEOBJECT text, float* size); + +// Experimental API. +// Set the font size of a text object. +// +// text - handle to a text page object. +// size - the new font size, measured in points (1/72 inch). Must be +// non-negative; zero is permitted to mirror +// FPDFPageObj_NewTextObj() with size 0. +// +// Returns TRUE on success. Returns FALSE when |text| is not a text +// page object, or when |size| is negative. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFTextObj_SetFontSize(FPDF_PAGEOBJECT text, float size); + +// Close a loaded PDF font. +// +// font - Handle to the loaded font. +FPDF_EXPORT void FPDF_CALLCONV FPDFFont_Close(FPDF_FONT font); + +// Create a new text object using a loaded font. +// +// document - handle to the document. +// font - handle to the font object. +// font_size - the font size for the new text object. +// +// Returns a handle to a new text object, or NULL on failure +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFPageObj_CreateTextObj(FPDF_DOCUMENT document, + FPDF_FONT font, + float font_size); + +// Get the text rendering mode of a text object. +// +// text - the handle to the text object. +// +// Returns one of the known FPDF_TEXT_RENDERMODE enum values on success, +// FPDF_TEXTRENDERMODE_UNKNOWN on error. +FPDF_EXPORT FPDF_TEXT_RENDERMODE FPDF_CALLCONV +FPDFTextObj_GetTextRenderMode(FPDF_PAGEOBJECT text); + +// Experimental API. +// Set the text rendering mode of a text object. +// +// text - the handle to the text object. +// render_mode - the FPDF_TEXT_RENDERMODE enum value to be set (cannot set to +// FPDF_TEXTRENDERMODE_UNKNOWN). +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFTextObj_SetTextRenderMode(FPDF_PAGEOBJECT text, + FPDF_TEXT_RENDERMODE render_mode); + +// Get the text of a text object. +// +// text_object - the handle to the text object. +// text_page - the handle to the text page. +// buffer - the address of a buffer that receives the text. +// length - the size, in bytes, of |buffer|. +// +// Returns the number of bytes in the text (including the trailing NUL +// character) on success, 0 on error. +// +// Regardless of the platform, the |buffer| is always in UTF-16LE encoding. +// If |length| is less than the returned length, or |buffer| is NULL, |buffer| +// will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFTextObj_GetText(FPDF_PAGEOBJECT text_object, + FPDF_TEXTPAGE text_page, + FPDF_WCHAR* buffer, + unsigned long length); + +// Experimental API. +// Get a bitmap rasterization of |text_object|. To render correctly, the caller +// must provide the |document| associated with |text_object|. If there is a +// |page| associated with |text_object|, the caller should provide that as well. +// The returned bitmap will be owned by the caller, and FPDFBitmap_Destroy() +// must be called on the returned bitmap when it is no longer needed. +// +// document - handle to a document associated with |text_object|. +// page - handle to an optional page associated with |text_object|. +// text_object - handle to a text object. +// scale - the scaling factor, which must be greater than 0. +// +// Returns the bitmap or NULL on failure. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV +FPDFTextObj_GetRenderedBitmap(FPDF_DOCUMENT document, + FPDF_PAGE page, + FPDF_PAGEOBJECT text_object, + float scale); + +// Experimental API. +// Get the font of a text object. +// +// text - the handle to the text object. +// +// Returns a handle to the font object held by |text| which retains ownership. +FPDF_EXPORT FPDF_FONT FPDF_CALLCONV FPDFTextObj_GetFont(FPDF_PAGEOBJECT text); + +// Experimental API. +// Get the base name of a font. +// +// font - the handle to the font object. +// buffer - the address of a buffer that receives the base font name. +// length - the size, in bytes, of |buffer|. +// +// Returns the number of bytes in the base name (including the trailing NUL +// character) on success, 0 on error. The base name is typically the font's +// PostScript name. See descriptions of "BaseFont" in ISO 32000-1:2008 spec. +// +// Regardless of the platform, the |buffer| is always in UTF-8 encoding. +// If |length| is less than the returned length, or |buffer| is NULL, |buffer| +// will not be modified. +FPDF_EXPORT size_t FPDF_CALLCONV FPDFFont_GetBaseFontName(FPDF_FONT font, + char* buffer, + size_t length); + +// Experimental API. +// Get the family name of a font. +// +// font - the handle to the font object. +// buffer - the address of a buffer that receives the font name. +// length - the size, in bytes, of |buffer|. +// +// Returns the number of bytes in the family name (including the trailing NUL +// character) on success, 0 on error. +// +// Regardless of the platform, the |buffer| is always in UTF-8 encoding. +// If |length| is less than the returned length, or |buffer| is NULL, |buffer| +// will not be modified. +FPDF_EXPORT size_t FPDF_CALLCONV FPDFFont_GetFamilyName(FPDF_FONT font, + char* buffer, + size_t length); + +// Experimental API. +// Get the decoded data from the |font| object. +// +// font - The handle to the font object. (Required) +// buffer - The address of a buffer that receives the font data. +// buflen - Length of the buffer. +// out_buflen - Pointer to variable that will receive the minimum buffer size +// to contain the font data. Not filled if the return value is +// FALSE. (Required) +// +// Returns TRUE on success. In which case, |out_buflen| will be filled, and +// |buffer| will be filled if it is large enough. Returns FALSE if any of the +// required parameters are null. +// +// The decoded data is the uncompressed font data. i.e. the raw font data after +// having all stream filters applied, when the data is embedded. +// +// If the font is not embedded, then this API will instead return the data for +// the substitution font it is using. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFFont_GetFontData(FPDF_FONT font, + uint8_t* buffer, + size_t buflen, + size_t* out_buflen); + +// Experimental API. +// Get whether |font| is embedded or not. +// +// font - the handle to the font object. +// +// Returns 1 if the font is embedded, 0 if it not, and -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV FPDFFont_GetIsEmbedded(FPDF_FONT font); + +// Experimental API. +// Get the descriptor flags of a font. +// +// font - the handle to the font object. +// +// Returns the bit flags specifying various characteristics of the font as +// defined in ISO 32000-1:2008, table 123, -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV FPDFFont_GetFlags(FPDF_FONT font); + +// Experimental API. +// Get the font weight of a font. +// +// font - the handle to the font object. +// +// Returns the font weight, -1 on failure. +// Typical values are 400 (normal) and 700 (bold). +FPDF_EXPORT int FPDF_CALLCONV FPDFFont_GetWeight(FPDF_FONT font); + +// Experimental API. +// Get the italic angle of a font. +// +// font - the handle to the font object. +// angle - pointer where the italic angle will be stored +// +// The italic angle of a |font| is defined as degrees counterclockwise +// from vertical. For a font that slopes to the right, this will be negative. +// +// Returns TRUE on success; |angle| unmodified on failure. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFFont_GetItalicAngle(FPDF_FONT font, + int* angle); + +// Experimental API. +// Get ascent distance of a font. +// +// font - the handle to the font object. +// font_size - the size of the |font|. +// ascent - pointer where the font ascent will be stored +// +// Ascent is the maximum distance in points above the baseline reached by the +// glyphs of the |font|. One point is 1/72 inch (around 0.3528 mm). +// +// Returns TRUE on success; |ascent| unmodified on failure. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFFont_GetAscent(FPDF_FONT font, + float font_size, + float* ascent); + +// Experimental API. +// Get descent distance of a font. +// +// font - the handle to the font object. +// font_size - the size of the |font|. +// descent - pointer where the font descent will be stored +// +// Descent is the maximum distance in points below the baseline reached by the +// glyphs of the |font|. One point is 1/72 inch (around 0.3528 mm). +// +// Returns TRUE on success; |descent| unmodified on failure. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFFont_GetDescent(FPDF_FONT font, + float font_size, + float* descent); + +// Experimental API. +// Get the width of a glyph in a font. +// +// font - the handle to the font object. +// glyph - the glyph. +// font_size - the size of the font. +// width - pointer where the glyph width will be stored +// +// Glyph width is the distance from the end of the prior glyph to the next +// glyph. This will be the vertical distance for vertical writing. +// +// Returns TRUE on success; |width| unmodified on failure. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFFont_GetGlyphWidth(FPDF_FONT font, + uint32_t glyph, + float font_size, + float* width); + +// Experimental API. +// Get the glyphpath describing how to draw a font glyph. +// +// font - the handle to the font object. +// glyph - the glyph being drawn. +// font_size - the size of the font. +// +// Returns the handle to the segment, or NULL on faiure. +FPDF_EXPORT FPDF_GLYPHPATH FPDF_CALLCONV FPDFFont_GetGlyphPath(FPDF_FONT font, + uint32_t glyph, + float font_size); + +// Experimental API. +// Get number of segments inside glyphpath. +// +// glyphpath - handle to a glyph path. +// +// Returns the number of objects in |glyphpath| or -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV +FPDFGlyphPath_CountGlyphSegments(FPDF_GLYPHPATH glyphpath); + +// Experimental API. +// Get segment in glyphpath at index. +// +// glyphpath - handle to a glyph path. +// index - the index of a segment. +// +// Returns the handle to the segment, or NULL on faiure. +FPDF_EXPORT FPDF_PATHSEGMENT FPDF_CALLCONV +FPDFGlyphPath_GetGlyphPathSegment(FPDF_GLYPHPATH glyphpath, int index); + +// Get number of page objects inside |form_object|. +// +// form_object - handle to a form object. +// +// Returns the number of objects in |form_object| on success, -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFFormObj_CountObjects(FPDF_PAGEOBJECT form_object); + +// Get page object in |form_object| at |index|. +// +// form_object - handle to a form object. +// index - the 0-based index of a page object. +// +// Returns the handle to the page object, or NULL on error. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFFormObj_GetObject(FPDF_PAGEOBJECT form_object, unsigned long index); + +// Experimental API. +// +// Remove |page_object| from |form_object|. +// +// form_object - handle to a form object. +// page_object - handle to a page object to be removed from the form. +// +// Returns TRUE on success. +// +// Ownership of the removed |page_object| is transferred to the caller. +// Call FPDFPageObj_Destroy() on the removed page_object to free it. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFFormObj_RemoveObject(FPDF_PAGEOBJECT form_object, + FPDF_PAGEOBJECT page_object); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_EDIT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_ext.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_ext.h new file mode 100644 index 0000000..068a977 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_ext.h @@ -0,0 +1,119 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_EXT_H_ +#define PUBLIC_FPDF_EXT_H_ + +#include + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Unsupported XFA form. +#define FPDF_UNSP_DOC_XFAFORM 1 +// Unsupported portable collection. +#define FPDF_UNSP_DOC_PORTABLECOLLECTION 2 +// Unsupported attachment. +#define FPDF_UNSP_DOC_ATTACHMENT 3 +// Unsupported security. +#define FPDF_UNSP_DOC_SECURITY 4 +// Unsupported shared review. +#define FPDF_UNSP_DOC_SHAREDREVIEW 5 +// Unsupported shared form, acrobat. +#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT 6 +// Unsupported shared form, filesystem. +#define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM 7 +// Unsupported shared form, email. +#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL 8 +// Unsupported 3D annotation. +#define FPDF_UNSP_ANNOT_3DANNOT 11 +// Unsupported movie annotation. +#define FPDF_UNSP_ANNOT_MOVIE 12 +// Unsupported sound annotation. +#define FPDF_UNSP_ANNOT_SOUND 13 +// Unsupported screen media annotation. +#define FPDF_UNSP_ANNOT_SCREEN_MEDIA 14 +// Unsupported screen rich media annotation. +#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA 15 +// Unsupported attachment annotation. +#define FPDF_UNSP_ANNOT_ATTACHMENT 16 +// Unsupported signature annotation. +#define FPDF_UNSP_ANNOT_SIG 17 + +// Interface for unsupported feature notifications. +typedef struct _UNSUPPORT_INFO { + // Version number of the interface. Must be 1. + int version; + + // Unsupported object notification function. + // Interface Version: 1 + // Implementation Required: Yes + // + // pThis - pointer to the interface structure. + // nType - the type of unsupported object. One of the |FPDF_UNSP_*| entries. + void (*FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO* pThis, int nType); +} UNSUPPORT_INFO; + +// Setup an unsupported object handler. +// +// unsp_info - Pointer to an UNSUPPORT_INFO structure. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info); + +// Set replacement function for calls to time(). +// +// This API is intended to be used only for testing, thus may cause PDFium to +// behave poorly in production environments. +// +// func - Function pointer to alternate implementation of time(), or +// NULL to restore to actual time() call itself. +FPDF_EXPORT void FPDF_CALLCONV FSDK_SetTimeFunction(time_t (*func)()); + +// Set replacement function for calls to localtime(). +// +// This API is intended to be used only for testing, thus may cause PDFium to +// behave poorly in production environments. +// +// func - Function pointer to alternate implementation of localtime(), or +// NULL to restore to actual localtime() call itself. +FPDF_EXPORT void FPDF_CALLCONV +FSDK_SetLocaltimeFunction(struct tm* (*func)(const time_t*)); + +// Unknown page mode. +#define PAGEMODE_UNKNOWN -1 +// Document outline, and thumbnails hidden. +#define PAGEMODE_USENONE 0 +// Document outline visible. +#define PAGEMODE_USEOUTLINES 1 +// Thumbnail images visible. +#define PAGEMODE_USETHUMBS 2 +// Full-screen mode, no menu bar, window controls, or other decorations visible. +#define PAGEMODE_FULLSCREEN 3 +// Optional content group panel visible. +#define PAGEMODE_USEOC 4 +// Attachments panel visible. +#define PAGEMODE_USEATTACHMENTS 5 + +// Get the document's PageMode. +// +// doc - Handle to document. +// +// Returns one of the |PAGEMODE_*| flags defined above. +// +// The page mode defines how the document should be initially displayed. +FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetPageMode(FPDF_DOCUMENT document); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_EXT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_flatten.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_flatten.h new file mode 100644 index 0000000..aba5186 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_flatten.h @@ -0,0 +1,44 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_FLATTEN_H_ +#define PUBLIC_FPDF_FLATTEN_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +// Flatten operation failed. +#define FLATTEN_FAIL 0 +// Flatten operation succeed. +#define FLATTEN_SUCCESS 1 +// Nothing to be flattened. +#define FLATTEN_NOTHINGTODO 2 + +// Flatten for normal display. +#define FLAT_NORMALDISPLAY 0 +// Flatten for print. +#define FLAT_PRINT 1 + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Flatten annotations and form fields into the page contents. +// +// page - handle to the page. +// nFlag - One of the |FLAT_*| values denoting the page usage. +// +// Returns one of the |FLATTEN_*| values. +// +// Currently, all failures return |FLATTEN_FAIL| with no indication of the +// cause. +FPDF_EXPORT int FPDF_CALLCONV FPDFPage_Flatten(FPDF_PAGE page, int nFlag); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_FLATTEN_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_formfill.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_formfill.h new file mode 100644 index 0000000..ed70a1c --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_formfill.h @@ -0,0 +1,1873 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_FORMFILL_H_ +#define PUBLIC_FPDF_FORMFILL_H_ + +// clang-format off +// NOLINTNEXTLINE(build/include_directory) +#include "fpdfview.h" + +// These values are return values for a public API, so should not be changed +// other than the count when adding new values. +#define FORMTYPE_NONE 0 // Document contains no forms +#define FORMTYPE_ACRO_FORM 1 // Forms are specified using AcroForm spec +#define FORMTYPE_XFA_FULL 2 // Forms are specified using entire XFA spec +#define FORMTYPE_XFA_FOREGROUND 3 // Forms are specified using the XFAF subset + // of XFA spec +#define FORMTYPE_COUNT 4 // The number of form types + +#define JSPLATFORM_ALERT_BUTTON_OK 0 // OK button +#define JSPLATFORM_ALERT_BUTTON_OKCANCEL 1 // OK & Cancel buttons +#define JSPLATFORM_ALERT_BUTTON_YESNO 2 // Yes & No buttons +#define JSPLATFORM_ALERT_BUTTON_YESNOCANCEL 3 // Yes, No & Cancel buttons +#define JSPLATFORM_ALERT_BUTTON_DEFAULT JSPLATFORM_ALERT_BUTTON_OK + +#define JSPLATFORM_ALERT_ICON_ERROR 0 // Error +#define JSPLATFORM_ALERT_ICON_WARNING 1 // Warning +#define JSPLATFORM_ALERT_ICON_QUESTION 2 // Question +#define JSPLATFORM_ALERT_ICON_STATUS 3 // Status +#define JSPLATFORM_ALERT_ICON_ASTERISK 4 // Asterisk +#define JSPLATFORM_ALERT_ICON_DEFAULT JSPLATFORM_ALERT_ICON_ERROR + +#define JSPLATFORM_ALERT_RETURN_OK 1 // OK +#define JSPLATFORM_ALERT_RETURN_CANCEL 2 // Cancel +#define JSPLATFORM_ALERT_RETURN_NO 3 // No +#define JSPLATFORM_ALERT_RETURN_YES 4 // Yes + +#define JSPLATFORM_BEEP_ERROR 0 // Error +#define JSPLATFORM_BEEP_WARNING 1 // Warning +#define JSPLATFORM_BEEP_QUESTION 2 // Question +#define JSPLATFORM_BEEP_STATUS 3 // Status +#define JSPLATFORM_BEEP_DEFAULT 4 // Default + +// Text direction for form fields. +typedef enum { + // Unknown or error state. + FPDF_TEXTDIR_UNKNOWN = 0, + // Represents the default layout behavior. This means the text direction is + // determined by the Unicode Bidi Algorithm. + FPDF_TEXTDIR_AUTO = 1, + FPDF_TEXTDIR_LTR = 2, + FPDF_TEXTDIR_RTL = 3, +} FPDF_TEXT_DIRECTION; + +// Exported Functions +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _IPDF_JsPlatform { + // Version number of the interface. Currently must be 2. + int version; + + // Version 1. + + // Method: app_alert + // Pop up a dialog to show warning or hint. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // Msg - A string containing the message to be displayed. + // Title - The title of the dialog. + // Type - The type of button group, one of the + // JSPLATFORM_ALERT_BUTTON_* values above. + // nIcon - The type of the icon, one of the + // JSPLATFORM_ALERT_ICON_* above. + // Return Value: + // Option selected by user in dialogue, one of the + // JSPLATFORM_ALERT_RETURN_* values above. + int (*app_alert)(struct _IPDF_JsPlatform* pThis, + FPDF_WIDESTRING Msg, + FPDF_WIDESTRING Title, + int Type, + int Icon); + + // Method: app_beep + // Causes the system to play a sound. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // nType - The sound type, see JSPLATFORM_BEEP_TYPE_* + // above. + // Return Value: + // None + void (*app_beep)(struct _IPDF_JsPlatform* pThis, int nType); + + // Method: app_response + // Displays a dialog box containing a question and an entry field for + // the user to reply to the question. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // Question - The question to be posed to the user. + // Title - The title of the dialog box. + // Default - A default value for the answer to the question. If + // not specified, no default value is presented. + // cLabel - A short string to appear in front of and on the + // same line as the edit text field. + // bPassword - If true, indicates that the user's response should + // be shown as asterisks (*) or bullets (?) to mask + // the response, which might be sensitive information. + // response - A string buffer allocated by PDFium, to receive the + // user's response. + // length - The length of the buffer in bytes. Currently, it is + // always 2048. + // Return Value: + // Number of bytes the complete user input would actually require, not + // including trailing zeros, regardless of the value of the length + // parameter or the presence of the response buffer. + // Comments: + // No matter on what platform, the response buffer should be always + // written using UTF-16LE encoding. If a response buffer is + // present and the size of the user input exceeds the capacity of the + // buffer as specified by the length parameter, only the + // first "length" bytes of the user input are to be written to the + // buffer. + int (*app_response)(struct _IPDF_JsPlatform* pThis, + FPDF_WIDESTRING Question, + FPDF_WIDESTRING Title, + FPDF_WIDESTRING Default, + FPDF_WIDESTRING cLabel, + FPDF_BOOL bPassword, + void* response, + int length); + + // Method: Doc_getFilePath + // Get the file path of the current document. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // filePath - The string buffer to receive the file path. Can + // be NULL. + // length - The length of the buffer, number of bytes. Can + // be 0. + // Return Value: + // Number of bytes the filePath consumes, including trailing zeros. + // Comments: + // The filePath should always be provided in the local encoding. + // The return value always indicated number of bytes required for + // the buffer, even when there is no buffer specified, or the buffer + // size is less than required. In this case, the buffer will not + // be modified. + int (*Doc_getFilePath)(struct _IPDF_JsPlatform* pThis, + void* filePath, + int length); + + // Method: Doc_mail + // Mails the data buffer as an attachment to all recipients, with or + // without user interaction. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // mailData - Pointer to the data buffer to be sent. Can be NULL. + // length - The size,in bytes, of the buffer pointed by + // mailData parameter. Can be 0. + // bUI - If true, the rest of the parameters are used in a + // compose-new-message window that is displayed to the + // user. If false, the cTo parameter is required and + // all others are optional. + // To - A semicolon-delimited list of recipients for the + // message. + // Subject - The subject of the message. The length limit is + // 64 KB. + // CC - A semicolon-delimited list of CC recipients for + // the message. + // BCC - A semicolon-delimited list of BCC recipients for + // the message. + // Msg - The content of the message. The length limit is + // 64 KB. + // Return Value: + // None. + // Comments: + // If the parameter mailData is NULL or length is 0, the current + // document will be mailed as an attachment to all recipients. + void (*Doc_mail)(struct _IPDF_JsPlatform* pThis, + void* mailData, + int length, + FPDF_BOOL bUI, + FPDF_WIDESTRING To, + FPDF_WIDESTRING Subject, + FPDF_WIDESTRING CC, + FPDF_WIDESTRING BCC, + FPDF_WIDESTRING Msg); + + // Method: Doc_print + // Prints all or a specific number of pages of the document. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // bUI - If true, will cause a UI to be presented to the + // user to obtain printing information and confirm + // the action. + // nStart - A 0-based index that defines the start of an + // inclusive range of pages. + // nEnd - A 0-based index that defines the end of an + // inclusive page range. + // bSilent - If true, suppresses the cancel dialog box while + // the document is printing. The default is false. + // bShrinkToFit - If true, the page is shrunk (if necessary) to + // fit within the imageable area of the printed page. + // bPrintAsImage - If true, print pages as an image. + // bReverse - If true, print from nEnd to nStart. + // bAnnotations - If true (the default), annotations are + // printed. + // Return Value: + // None. + void (*Doc_print)(struct _IPDF_JsPlatform* pThis, + FPDF_BOOL bUI, + int nStart, + int nEnd, + FPDF_BOOL bSilent, + FPDF_BOOL bShrinkToFit, + FPDF_BOOL bPrintAsImage, + FPDF_BOOL bReverse, + FPDF_BOOL bAnnotations); + + // Method: Doc_submitForm + // Send the form data to a specified URL. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // formData - Pointer to the data buffer to be sent. + // length - The size,in bytes, of the buffer pointed by + // formData parameter. + // URL - The URL to send to. + // Return Value: + // None. + void (*Doc_submitForm)(struct _IPDF_JsPlatform* pThis, + void* formData, + int length, + FPDF_WIDESTRING URL); + + // Method: Doc_gotoPage + // Jump to a specified page. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // nPageNum - The specified page number, zero for the first page. + // Return Value: + // None. + void (*Doc_gotoPage)(struct _IPDF_JsPlatform* pThis, int nPageNum); + + // Method: Field_browse + // Show a file selection dialog, and return the selected file path. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // filePath - Pointer to the data buffer to receive the file + // path. Can be NULL. + // length - The length of the buffer, in bytes. Can be 0. + // Return Value: + // Number of bytes the filePath consumes, including trailing zeros. + // Comments: + // The filePath should always be provided in local encoding. + int (*Field_browse)(struct _IPDF_JsPlatform* pThis, + void* filePath, + int length); + + // Pointer for embedder-specific data. Unused by PDFium, and despite + // its name, can be any data the embedder desires, though traditionally + // a FPDF_FORMFILLINFO interface. + void* m_pFormfillinfo; + + // Version 2. + + void* m_isolate; // Unused in v3, retain for compatibility. + unsigned int m_v8EmbedderSlot; // Unused in v3, retain for compatibility. + + // Version 3. + // Version 3 moves m_Isolate and m_v8EmbedderSlot to FPDF_LIBRARY_CONFIG. +} IPDF_JSPLATFORM; + +// Flags for Cursor type +#define FXCT_ARROW 0 +#define FXCT_NESW 1 +#define FXCT_NWSE 2 +#define FXCT_VBEAM 3 +#define FXCT_HBEAM 4 +#define FXCT_HAND 5 + +// Function signature for the callback function passed to the FFI_SetTimer +// method. +// Parameters: +// idEvent - Identifier of the timer. +// Return value: +// None. +typedef void (*TimerCallback)(int idEvent); + +// Declares of a struct type to the local system time. +typedef struct _FPDF_SYSTEMTIME { + unsigned short wYear; // years since 1900 + unsigned short wMonth; // months since January - [0,11] + unsigned short wDayOfWeek; // days since Sunday - [0,6] + unsigned short wDay; // day of the month - [1,31] + unsigned short wHour; // hours since midnight - [0,23] + unsigned short wMinute; // minutes after the hour - [0,59] + unsigned short wSecond; // seconds after the minute - [0,59] + unsigned short wMilliseconds; // milliseconds after the second - [0,999] +} FPDF_SYSTEMTIME; + +#ifdef PDF_ENABLE_XFA + +// Pageview event flags +#define FXFA_PAGEVIEWEVENT_POSTADDED 1 // After a new pageview is added. +#define FXFA_PAGEVIEWEVENT_POSTREMOVED 3 // After a pageview is removed. + +// Definitions for Right Context Menu Features Of XFA Fields +#define FXFA_MENU_COPY 1 +#define FXFA_MENU_CUT 2 +#define FXFA_MENU_SELECTALL 4 +#define FXFA_MENU_UNDO 8 +#define FXFA_MENU_REDO 16 +#define FXFA_MENU_PASTE 32 + +// Definitions for File Type. +#define FXFA_SAVEAS_XML 1 +#define FXFA_SAVEAS_XDP 2 + +#endif // PDF_ENABLE_XFA + +typedef struct _FPDF_FORMFILLINFO { + // Version number of the interface. + // Version 1 contains stable interfaces. Version 2 has additional + // experimental interfaces. + // When PDFium is built without the XFA module, version can be 1 or 2. + // With version 1, only stable interfaces are called. With version 2, + // additional experimental interfaces are also called. + // When PDFium is built with the XFA module, version must be 2. + // All the XFA related interfaces are experimental. If PDFium is built with + // the XFA module and version 1 then none of the XFA related interfaces + // would be called. When PDFium is built with XFA module then the version + // must be 2. + int version; + + // Version 1. + + // Method: Release + // Give the implementation a chance to release any resources after the + // interface is no longer used. + // Interface Version: + // 1 + // Implementation Required: + // No + // Comments: + // Called by PDFium during the final cleanup process. + // Parameters: + // pThis - Pointer to the interface structure itself + // Return Value: + // None + void (*Release)(struct _FPDF_FORMFILLINFO* pThis); + + // Method: FFI_Invalidate + // Invalidate the client area within the specified rectangle. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // page - Handle to the page. Returned by FPDF_LoadPage(). + // left - Left position of the client area in PDF page + // coordinates. + // top - Top position of the client area in PDF page + // coordinates. + // right - Right position of the client area in PDF page + // coordinates. + // bottom - Bottom position of the client area in PDF page + // coordinates. + // Return Value: + // None. + // Comments: + // All positions are measured in PDF "user space". + // Implementation should call FPDF_RenderPageBitmap() for repainting + // the specified page area. + void (*FFI_Invalidate)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_PAGE page, + double left, + double top, + double right, + double bottom); + + // Method: FFI_OutputSelectedRect + // When the user selects text in form fields with the mouse, this + // callback function will be invoked with the selected areas. + // Interface Version: + // 1 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself. + // page - Handle to the page. Returned by FPDF_LoadPage()/ + // left - Left position of the client area in PDF page + // coordinates. + // top - Top position of the client area in PDF page + // coordinates. + // right - Right position of the client area in PDF page + // coordinates. + // bottom - Bottom position of the client area in PDF page + // coordinates. + // Return Value: + // None. + // Comments: + // This callback function is useful for implementing special text + // selection effects. An implementation should first record the + // returned rectangles, then draw them one by one during the next + // painting period. Lastly, it should remove all the recorded + // rectangles when finished painting. + void (*FFI_OutputSelectedRect)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_PAGE page, + double left, + double top, + double right, + double bottom); + + // Method: FFI_SetCursor + // Set the Cursor shape. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // nCursorType - Cursor type, see Flags for Cursor type for details. + // Return value: + // None. + void (*FFI_SetCursor)(struct _FPDF_FORMFILLINFO* pThis, int nCursorType); + + // Method: FFI_SetTimer + // This method installs a system timer. An interval value is specified, + // and every time that interval elapses, the system must call into the + // callback function with the timer ID as returned by this function. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // uElapse - Specifies the time-out value, in milliseconds. + // lpTimerFunc - A pointer to the callback function-TimerCallback. + // Return value: + // The timer identifier of the new timer if the function is successful. + // An application passes this value to the FFI_KillTimer method to kill + // the timer. Nonzero if it is successful; otherwise, it is zero. + int (*FFI_SetTimer)(struct _FPDF_FORMFILLINFO* pThis, + int uElapse, + TimerCallback lpTimerFunc); + + // Method: FFI_KillTimer + // This method uninstalls a system timer, as set by an earlier call to + // FFI_SetTimer. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // nTimerID - The timer ID returned by FFI_SetTimer function. + // Return value: + // None. + void (*FFI_KillTimer)(struct _FPDF_FORMFILLINFO* pThis, int nTimerID); + + // Method: FFI_GetLocalTime + // This method receives the current local time on the system. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // Return value: + // The local time. See FPDF_SYSTEMTIME above for details. + // Note: Unused. + FPDF_SYSTEMTIME (*FFI_GetLocalTime)(struct _FPDF_FORMFILLINFO* pThis); + + // Method: FFI_OnChange + // This method will be invoked to notify the implementation when the + // value of any FormField on the document had been changed. + // Interface Version: + // 1 + // Implementation Required: + // no + // Parameters: + // pThis - Pointer to the interface structure itself. + // Return value: + // None. + void (*FFI_OnChange)(struct _FPDF_FORMFILLINFO* pThis); + + // Method: FFI_GetPage + // This method receives the page handle associated with a specified + // page index. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // document - Handle to document. Returned by FPDF_LoadDocument(). + // nPageIndex - Index number of the page. 0 for the first page. + // Return value: + // Handle to the page, as previously returned to the implementation by + // FPDF_LoadPage(). + // Comments: + // The implementation is expected to keep track of the page handles it + // receives from PDFium, and their mappings to page numbers. In some + // cases, the document-level JavaScript action may refer to a page + // which hadn't been loaded yet. To successfully run the Javascript + // action, the implementation needs to load the page. + FPDF_PAGE (*FFI_GetPage)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_DOCUMENT document, + int nPageIndex); + + // Method: FFI_GetCurrentPage + // This method receives the handle to the current page. + // Interface Version: + // 1 + // Implementation Required: + // Yes when V8 support is present, otherwise unused. + // Parameters: + // pThis - Pointer to the interface structure itself. + // document - Handle to document. Returned by FPDF_LoadDocument(). + // Return value: + // Handle to the page. Returned by FPDF_LoadPage(). + // Comments: + // PDFium doesn't keep keep track of the "current page" (e.g. the one + // that is most visible on screen), so it must ask the embedder for + // this information. + FPDF_PAGE (*FFI_GetCurrentPage)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_DOCUMENT document); + + // Method: FFI_GetRotation + // This method receives currently rotation of the page view. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // page - Handle to page, as returned by FPDF_LoadPage(). + // Return value: + // A number to indicate the page rotation in 90 degree increments + // in a clockwise direction: + // 0 - 0 degrees + // 1 - 90 degrees + // 2 - 180 degrees + // 3 - 270 degrees + // Note: Unused. + int (*FFI_GetRotation)(struct _FPDF_FORMFILLINFO* pThis, FPDF_PAGE page); + + // Method: FFI_ExecuteNamedAction + // This method will execute a named action. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself. + // namedAction - A byte string which indicates the named action, + // terminated by 0. + // Return value: + // None. + // Comments: + // See ISO 32000-1:2008, section 12.6.4.11 for descriptions of the + // standard named actions, but note that a document may supply any + // name of its choosing. + void (*FFI_ExecuteNamedAction)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_BYTESTRING namedAction); + // Method: FFI_SetTextFieldFocus + // Called when a text field is getting or losing focus. + // Interface Version: + // 1 + // Implementation Required: + // no + // Parameters: + // pThis - Pointer to the interface structure itself. + // value - The string value of the form field, in UTF-16LE + // format. + // valueLen - The length of the string value. This is the + // number of characters, not bytes. + // is_focus - True if the form field is getting focus, false + // if the form field is losing focus. + // Return value: + // None. + // Comments: + // Only supports text fields and combobox fields. + void (*FFI_SetTextFieldFocus)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_WIDESTRING value, + FPDF_DWORD valueLen, + FPDF_BOOL is_focus); + + // Method: FFI_DoURIAction + // Ask the implementation to navigate to a uniform resource identifier. + // Interface Version: + // 1 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself. + // bsURI - A byte string which indicates the uniform + // resource identifier, terminated by 0. + // Return value: + // None. + // Comments: + // If the embedder is version 2 or higher and have implementation for + // FFI_DoURIActionWithKeyboardModifier, then + // FFI_DoURIActionWithKeyboardModifier takes precedence over + // FFI_DoURIAction. + // See the URI actions description of <> + // for more details. + void (*FFI_DoURIAction)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_BYTESTRING bsURI); + + // Method: FFI_DoGoToAction + // This action changes the view to a specified destination. + // Interface Version: + // 1 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself. + // nPageIndex - The index of the PDF page. + // zoomMode - The zoom mode for viewing page. See below. + // fPosArray - The float array which carries the position info. + // sizeofArray - The size of float array. + // PDFZoom values: + // - XYZ = 1 + // - FITPAGE = 2 + // - FITHORZ = 3 + // - FITVERT = 4 + // - FITRECT = 5 + // - FITBBOX = 6 + // - FITBHORZ = 7 + // - FITBVERT = 8 + // Return value: + // None. + // Comments: + // See the Destinations description of <> + // in 8.2.1 for more details. + void (*FFI_DoGoToAction)(struct _FPDF_FORMFILLINFO* pThis, + int nPageIndex, + int zoomMode, + float* fPosArray, + int sizeofArray); + + // Pointer to IPDF_JSPLATFORM interface. + // Unused if PDFium is built without V8 support. Otherwise, if NULL, then + // JavaScript will be prevented from executing while rendering the document. + IPDF_JSPLATFORM* m_pJsPlatform; + + // Version 2 - Experimental. + + // Whether the XFA module is disabled when built with the XFA module. + // Interface Version: + // Ignored if |version| < 2. + FPDF_BOOL xfa_disabled; + + // Method: FFI_DisplayCaret + // This method will show the caret at specified position. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // page - Handle to page. Returned by FPDF_LoadPage(). + // left - Left position of the client area in PDF page + // coordinates. + // top - Top position of the client area in PDF page + // coordinates. + // right - Right position of the client area in PDF page + // coordinates. + // bottom - Bottom position of the client area in PDF page + // coordinates. + // Return value: + // None. + void (*FFI_DisplayCaret)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_PAGE page, + FPDF_BOOL bVisible, + double left, + double top, + double right, + double bottom); + + // Method: FFI_GetCurrentPageIndex + // This method will get the current page index. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // document - Handle to document from FPDF_LoadDocument(). + // Return value: + // The index of current page. + int (*FFI_GetCurrentPageIndex)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_DOCUMENT document); + + // Method: FFI_SetCurrentPage + // This method will set the current page. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // document - Handle to document from FPDF_LoadDocument(). + // iCurPage - The index of the PDF page. + // Return value: + // None. + void (*FFI_SetCurrentPage)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_DOCUMENT document, + int iCurPage); + + // Method: FFI_GotoURL + // This method will navigate to the specified URL. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // document - Handle to document from FPDF_LoadDocument(). + // wsURL - The string value of the URL, in UTF-16LE format. + // Return value: + // None. + void (*FFI_GotoURL)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_DOCUMENT document, + FPDF_WIDESTRING wsURL); + + // Method: FFI_GetPageViewRect + // This method will get the current page view rectangle. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // page - Handle to page. Returned by FPDF_LoadPage(). + // left - The pointer to receive left position of the page + // view area in PDF page coordinates. + // top - The pointer to receive top position of the page + // view area in PDF page coordinates. + // right - The pointer to receive right position of the + // page view area in PDF page coordinates. + // bottom - The pointer to receive bottom position of the + // page view area in PDF page coordinates. + // Return value: + // None. + void (*FFI_GetPageViewRect)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_PAGE page, + double* left, + double* top, + double* right, + double* bottom); + + // Method: FFI_PageEvent + // This method fires when pages have been added to or deleted from + // the XFA document. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // page_count - The number of pages to be added or deleted. + // event_type - See FXFA_PAGEVIEWEVENT_* above. + // Return value: + // None. + // Comments: + // The pages to be added or deleted always start from the last page + // of document. This means that if parameter page_count is 2 and + // event type is FXFA_PAGEVIEWEVENT_POSTADDED, 2 new pages have been + // appended to the tail of document; If page_count is 2 and + // event type is FXFA_PAGEVIEWEVENT_POSTREMOVED, the last 2 pages + // have been deleted. + void (*FFI_PageEvent)(struct _FPDF_FORMFILLINFO* pThis, + int page_count, + FPDF_DWORD event_type); + + // Method: FFI_PopupMenu + // This method will track the right context menu for XFA fields. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // page - Handle to page. Returned by FPDF_LoadPage(). + // hWidget - Always null, exists for compatibility. + // menuFlag - The menu flags. Please refer to macro definition + // of FXFA_MENU_XXX and this can be one or a + // combination of these macros. + // x - X position of the client area in PDF page + // coordinates. + // y - Y position of the client area in PDF page + // coordinates. + // Return value: + // TRUE indicates success; otherwise false. + FPDF_BOOL (*FFI_PopupMenu)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_PAGE page, + FPDF_WIDGET hWidget, + int menuFlag, + float x, + float y); + + // Method: FFI_OpenFile + // This method will open the specified file with the specified mode. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // fileFlag - The file flag. Please refer to macro definition + // of FXFA_SAVEAS_XXX and use one of these macros. + // wsURL - The string value of the file URL, in UTF-16LE + // format. + // mode - The mode for open file, e.g. "rb" or "wb". + // Return value: + // The handle to FPDF_FILEHANDLER. + FPDF_FILEHANDLER* (*FFI_OpenFile)(struct _FPDF_FORMFILLINFO* pThis, + int fileFlag, + FPDF_WIDESTRING wsURL, + const char* mode); + + // Method: FFI_EmailTo + // This method will email the specified file stream to the specified + // contact. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // pFileHandler - Handle to the FPDF_FILEHANDLER. + // pTo - A semicolon-delimited list of recipients for the + // message,in UTF-16LE format. + // pSubject - The subject of the message,in UTF-16LE format. + // pCC - A semicolon-delimited list of CC recipients for + // the message,in UTF-16LE format. + // pBcc - A semicolon-delimited list of BCC recipients for + // the message,in UTF-16LE format. + // pMsg - Pointer to the data buffer to be sent.Can be + // NULL,in UTF-16LE format. + // Return value: + // None. + void (*FFI_EmailTo)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_FILEHANDLER* fileHandler, + FPDF_WIDESTRING pTo, + FPDF_WIDESTRING pSubject, + FPDF_WIDESTRING pCC, + FPDF_WIDESTRING pBcc, + FPDF_WIDESTRING pMsg); + + // Method: FFI_UploadTo + // This method will upload the specified file stream to the + // specified URL. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // pFileHandler - Handle to the FPDF_FILEHANDLER. + // fileFlag - The file flag. Please refer to macro definition + // of FXFA_SAVEAS_XXX and use one of these macros. + // uploadTo - Pointer to the URL path, in UTF-16LE format. + // Return value: + // None. + void (*FFI_UploadTo)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_FILEHANDLER* fileHandler, + int fileFlag, + FPDF_WIDESTRING uploadTo); + + // Method: FFI_GetPlatform + // This method will get the current platform. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // platform - Pointer to the data buffer to receive the + // platform,in UTF-16LE format. Can be NULL. + // length - The length of the buffer in bytes. Can be + // 0 to query the required size. + // Return value: + // The length of the buffer, number of bytes. + int (*FFI_GetPlatform)(struct _FPDF_FORMFILLINFO* pThis, + void* platform, + int length); + + // Method: FFI_GetLanguage + // This method will get the current language. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // language - Pointer to the data buffer to receive the + // current language. Can be NULL. + // length - The length of the buffer in bytes. Can be + // 0 to query the required size. + // Return value: + // The length of the buffer, number of bytes. + int (*FFI_GetLanguage)(struct _FPDF_FORMFILLINFO* pThis, + void* language, + int length); + + // Method: FFI_DownloadFromURL + // This method will download the specified file from the URL. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // URL - The string value of the file URL, in UTF-16LE + // format. + // Return value: + // The handle to FPDF_FILEHANDLER. + FPDF_FILEHANDLER* (*FFI_DownloadFromURL)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_WIDESTRING URL); + // Method: FFI_PostRequestURL + // This method will post the request to the server URL. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // wsURL - The string value of the server URL, in UTF-16LE + // format. + // wsData - The post data,in UTF-16LE format. + // wsContentType - The content type of the request data, in + // UTF-16LE format. + // wsEncode - The encode type, in UTF-16LE format. + // wsHeader - The request header,in UTF-16LE format. + // response - Pointer to the FPDF_BSTR to receive the response + // data from the server, in UTF-16LE format. + // Return value: + // TRUE indicates success, otherwise FALSE. + FPDF_BOOL (*FFI_PostRequestURL)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_WIDESTRING wsURL, + FPDF_WIDESTRING wsData, + FPDF_WIDESTRING wsContentType, + FPDF_WIDESTRING wsEncode, + FPDF_WIDESTRING wsHeader, + FPDF_BSTR* response); + + // Method: FFI_PutRequestURL + // This method will put the request to the server URL. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // Required for XFA, otherwise set to NULL. + // Parameters: + // pThis - Pointer to the interface structure itself. + // wsURL - The string value of the server URL, in UTF-16LE + // format. + // wsData - The put data, in UTF-16LE format. + // wsEncode - The encode type, in UTR-16LE format. + // Return value: + // TRUE indicates success, otherwise FALSE. + FPDF_BOOL (*FFI_PutRequestURL)(struct _FPDF_FORMFILLINFO* pThis, + FPDF_WIDESTRING wsURL, + FPDF_WIDESTRING wsData, + FPDF_WIDESTRING wsEncode); + + // Method: FFI_OnFocusChange + // Called when the focused annotation is updated. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // No + // Parameters: + // param - Pointer to the interface structure itself. + // annot - The focused annotation. + // page_index - Index number of the page which contains the + // focused annotation. 0 for the first page. + // Return value: + // None. + // Comments: + // This callback function is useful for implementing any view based + // action such as scrolling the annotation rect into view. The + // embedder should not copy and store the annot as its scope is + // limited to this call only. + void (*FFI_OnFocusChange)(struct _FPDF_FORMFILLINFO* param, + FPDF_ANNOTATION annot, + int page_index); + + // Method: FFI_DoURIActionWithKeyboardModifier + // Ask the implementation to navigate to a uniform resource identifier + // with the specified modifiers. + // Interface Version: + // Ignored if |version| < 2. + // Implementation Required: + // No + // Parameters: + // param - Pointer to the interface structure itself. + // uri - A byte string which indicates the uniform + // resource identifier, terminated by 0. + // modifiers - Keyboard modifier that indicates which of + // the virtual keys are down, if any. + // Return value: + // None. + // Comments: + // If the embedder who is version 2 and does not implement this API, + // then a call will be redirected to FFI_DoURIAction. + // See the URI actions description of <> + // for more details. + void(*FFI_DoURIActionWithKeyboardModifier)(struct _FPDF_FORMFILLINFO* param, + FPDF_BYTESTRING uri, + int modifiers); +} FPDF_FORMFILLINFO; + +// Function: FPDFDOC_InitFormFillEnvironment +// Initialize form fill environment. +// Parameters: +// document - Handle to document from FPDF_LoadDocument(). +// formInfo - Pointer to a FPDF_FORMFILLINFO structure. +// Return Value: +// Handle to the form fill module, or NULL on failure. +// Comments: +// This function should be called before any form fill operation. +// The FPDF_FORMFILLINFO passed in via |formInfo| must remain valid until +// the returned FPDF_FORMHANDLE is closed. +FPDF_EXPORT FPDF_FORMHANDLE FPDF_CALLCONV +FPDFDOC_InitFormFillEnvironment(FPDF_DOCUMENT document, + FPDF_FORMFILLINFO* formInfo); + +// Function: FPDFDOC_ExitFormFillEnvironment +// Take ownership of |hHandle| and exit form fill environment. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// None. +// Comments: +// This function is a no-op when |hHandle| is null. +FPDF_EXPORT void FPDF_CALLCONV +FPDFDOC_ExitFormFillEnvironment(FPDF_FORMHANDLE hHandle); + +// Function: FORM_OnAfterLoadPage +// This method is required for implementing all the form related +// functions. Should be invoked after user successfully loaded a +// PDF page, and FPDFDOC_InitFormFillEnvironment() has been invoked. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FORM_OnAfterLoadPage(FPDF_PAGE page, + FPDF_FORMHANDLE hHandle); + +// Function: FORM_OnBeforeClosePage +// This method is required for implementing all the form related +// functions. Should be invoked before user closes the PDF page. +// Parameters: +// page - Handle to the page, as returned by FPDF_LoadPage(). +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FORM_OnBeforeClosePage(FPDF_PAGE page, + FPDF_FORMHANDLE hHandle); + +// Function: FORM_DoDocumentJSAction +// This method is required for performing document-level JavaScript +// actions. It should be invoked after the PDF document has been loaded. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// None. +// Comments: +// If there is document-level JavaScript action embedded in the +// document, this method will execute the JavaScript action. Otherwise, +// the method will do nothing. +FPDF_EXPORT void FPDF_CALLCONV +FORM_DoDocumentJSAction(FPDF_FORMHANDLE hHandle); + +// Function: FORM_DoDocumentOpenAction +// This method is required for performing open-action when the document +// is opened. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// None. +// Comments: +// This method will do nothing if there are no open-actions embedded +// in the document. +FPDF_EXPORT void FPDF_CALLCONV +FORM_DoDocumentOpenAction(FPDF_FORMHANDLE hHandle); + +// Additional actions type of document: +// WC, before closing document, JavaScript action. +// WS, before saving document, JavaScript action. +// DS, after saving document, JavaScript action. +// WP, before printing document, JavaScript action. +// DP, after printing document, JavaScript action. +#define FPDFDOC_AACTION_WC 0x10 +#define FPDFDOC_AACTION_WS 0x11 +#define FPDFDOC_AACTION_DS 0x12 +#define FPDFDOC_AACTION_WP 0x13 +#define FPDFDOC_AACTION_DP 0x14 + +// Function: FORM_DoDocumentAAction +// This method is required for performing the document's +// additional-action. +// Parameters: +// hHandle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment. +// aaType - The type of the additional-actions which defined +// above. +// Return Value: +// None. +// Comments: +// This method will do nothing if there is no document +// additional-action corresponding to the specified |aaType|. +FPDF_EXPORT void FPDF_CALLCONV FORM_DoDocumentAAction(FPDF_FORMHANDLE hHandle, + int aaType); + +// Additional-action types of page object: +// OPEN (/O) -- An action to be performed when the page is opened +// CLOSE (/C) -- An action to be performed when the page is closed +#define FPDFPAGE_AACTION_OPEN 0 +#define FPDFPAGE_AACTION_CLOSE 1 + +// Function: FORM_DoPageAAction +// This method is required for performing the page object's +// additional-action when opened or closed. +// Parameters: +// page - Handle to the page, as returned by FPDF_LoadPage(). +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// aaType - The type of the page object's additional-actions +// which defined above. +// Return Value: +// None. +// Comments: +// This method will do nothing if no additional-action corresponding +// to the specified |aaType| exists. +FPDF_EXPORT void FPDF_CALLCONV FORM_DoPageAAction(FPDF_PAGE page, + FPDF_FORMHANDLE hHandle, + int aaType); + +// Function: FORM_OnMouseMove +// Call this member function when the mouse cursor moves. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// modifier - Indicates whether various virtual keys are down. +// page_x - Specifies the x-coordinate of the cursor in PDF user +// space. +// page_y - Specifies the y-coordinate of the cursor in PDF user +// space. +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnMouseMove(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); + +// Experimental API +// Function: FORM_OnMouseWheel +// Call this member function when the user scrolls the mouse wheel. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// modifier - Indicates whether various virtual keys are down. +// page_coord - Specifies the coordinates of the cursor in PDF user +// space. +// delta_x - Specifies the amount of wheel movement on the x-axis, +// in units of platform-agnostic wheel deltas. Negative +// values mean left. +// delta_y - Specifies the amount of wheel movement on the y-axis, +// in units of platform-agnostic wheel deltas. Negative +// values mean down. +// Return Value: +// True indicates success; otherwise false. +// Comments: +// For |delta_x| and |delta_y|, the caller must normalize +// platform-specific wheel deltas. e.g. On Windows, a delta value of 240 +// for a WM_MOUSEWHEEL event normalizes to 2, since Windows defines +// WHEEL_DELTA as 120. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnMouseWheel( + FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + const FS_POINTF* page_coord, + int delta_x, + int delta_y); + +// Function: FORM_OnFocus +// This function focuses the form annotation at a given point. If the +// annotation at the point already has focus, nothing happens. If there +// is no annotation at the point, removes form focus. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// modifier - Indicates whether various virtual keys are down. +// page_x - Specifies the x-coordinate of the cursor in PDF user +// space. +// page_y - Specifies the y-coordinate of the cursor in PDF user +// space. +// Return Value: +// True if there is an annotation at the given point and it has focus. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnFocus(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); + +// Function: FORM_OnLButtonDown +// Call this member function when the user presses the left +// mouse button. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// modifier - Indicates whether various virtual keys are down. +// page_x - Specifies the x-coordinate of the cursor in PDF user +// space. +// page_y - Specifies the y-coordinate of the cursor in PDF user +// space. +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnLButtonDown(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); + +// Function: FORM_OnRButtonDown +// Same as above, execpt for the right mouse button. +// Comments: +// At the present time, has no effect except in XFA builds, but is +// included for the sake of symmetry. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnRButtonDown(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); +// Function: FORM_OnLButtonUp +// Call this member function when the user releases the left +// mouse button. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// modifier - Indicates whether various virtual keys are down. +// page_x - Specifies the x-coordinate of the cursor in device. +// page_y - Specifies the y-coordinate of the cursor in device. +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnLButtonUp(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); + +// Function: FORM_OnRButtonUp +// Same as above, execpt for the right mouse button. +// Comments: +// At the present time, has no effect except in XFA builds, but is +// included for the sake of symmetry. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnRButtonUp(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); + +// Function: FORM_OnLButtonDoubleClick +// Call this member function when the user double clicks the +// left mouse button. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// modifier - Indicates whether various virtual keys are down. +// page_x - Specifies the x-coordinate of the cursor in PDF user +// space. +// page_y - Specifies the y-coordinate of the cursor in PDF user +// space. +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_OnLButtonDoubleClick(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int modifier, + double page_x, + double page_y); + +// Function: FORM_OnKeyDown +// Call this member function when a nonsystem key is pressed. +// Parameters: +// hHandle - Handle to the form fill module, aseturned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// nKeyCode - The virtual-key code of the given key (see +// fpdf_fwlevent.h for virtual key codes). +// modifier - Mask of key flags (see fpdf_fwlevent.h for key +// flag values). +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnKeyDown(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int nKeyCode, + int modifier); + +// Function: FORM_OnKeyUp +// Call this member function when a nonsystem key is released. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// nKeyCode - The virtual-key code of the given key (see +// fpdf_fwlevent.h for virtual key codes). +// modifier - Mask of key flags (see fpdf_fwlevent.h for key +// flag values). +// Return Value: +// True indicates success; otherwise false. +// Comments: +// Currently unimplemented and always returns false. PDFium reserves this +// API and may implement it in the future on an as-needed basis. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnKeyUp(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int nKeyCode, + int modifier); + +// Function: FORM_OnChar +// Call this member function when a keystroke translates to a +// nonsystem character. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// nChar - The character code value itself. +// modifier - Mask of key flags (see fpdf_fwlevent.h for key +// flag values). +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnChar(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int nChar, + int modifier); + +// Experimental API +// Function: FORM_GetFocusedText +// Call this function to obtain the text within the current focused +// field, if any. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// buffer - Buffer for holding the form text, encoded in +// UTF-16LE. If NULL, |buffer| is not modified. +// buflen - Length of |buffer| in bytes. If |buflen| is less +// than the length of the form text string, |buffer| is +// not modified. +// Return Value: +// Length in bytes for the text in the focused field. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FORM_GetFocusedText(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + void* buffer, + unsigned long buflen); + +// Function: FORM_GetSelectedText +// Call this function to obtain selected text within a form text +// field or form combobox text field. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// buffer - Buffer for holding the selected text, encoded in +// UTF-16LE. If NULL, |buffer| is not modified. +// buflen - Length of |buffer| in bytes. If |buflen| is less +// than the length of the selected text string, +// |buffer| is not modified. +// Return Value: +// Length in bytes of selected text in form text field or form combobox +// text field. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FORM_GetSelectedText(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + void* buffer, + unsigned long buflen); + +// Experimental API +// Function: FORM_ReplaceAndKeepSelection +// Call this function to replace the selected text in a form +// text field or user-editable form combobox text field with another +// text string (which can be empty or non-empty). If there is no +// selected text, this function will append the replacement text after +// the current caret position. After the insertion, the inserted text +// will be selected. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as Returned by FPDF_LoadPage(). +// wsText - The text to be inserted, in UTF-16LE format. +// Return Value: +// None. +FPDF_EXPORT void FPDF_CALLCONV +FORM_ReplaceAndKeepSelection(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + FPDF_WIDESTRING wsText); + +// Function: FORM_ReplaceSelection +// Call this function to replace the selected text in a form +// text field or user-editable form combobox text field with another +// text string (which can be empty or non-empty). If there is no +// selected text, this function will append the replacement text after +// the current caret position. After the insertion, the selection range +// will be set to empty. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as Returned by FPDF_LoadPage(). +// wsText - The text to be inserted, in UTF-16LE format. +// Return Value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FORM_ReplaceSelection(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + FPDF_WIDESTRING wsText); + +// Experimental API +// Function: FORM_SelectAllText +// Call this function to select all the text within the currently focused +// form text field or form combobox text field. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return Value: +// Whether the operation succeeded or not. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_SelectAllText(FPDF_FORMHANDLE hHandle, FPDF_PAGE page); + +// Function: FORM_CanUndo +// Find out if it is possible for the current focused widget in a given +// form to perform an undo operation. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return Value: +// True if it is possible to undo. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_CanUndo(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page); + +// Function: FORM_CanRedo +// Find out if it is possible for the current focused widget in a given +// form to perform a redo operation. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return Value: +// True if it is possible to redo. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_CanRedo(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page); + +// Function: FORM_Undo +// Make the current focused widget perform an undo operation. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return Value: +// True if the undo operation succeeded. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_Undo(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page); + +// Function: FORM_Redo +// Make the current focused widget perform a redo operation. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return Value: +// True if the redo operation succeeded. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_Redo(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page); + +// Function: FORM_ForceToKillFocus. +// Call this member function to force to kill the focus of the form +// field which has focus. If it would kill the focus of a form field, +// save the value of form field if was changed by theuser. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// True indicates success; otherwise false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_ForceToKillFocus(FPDF_FORMHANDLE hHandle); + +// Experimental API. +// Function: FORM_GetFocusedAnnot. +// Call this member function to get the currently focused annotation. +// Parameters: +// handle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// page_index - Buffer to hold the index number of the page which +// contains the focused annotation. 0 for the first page. +// Can't be NULL. +// annot - Buffer to hold the focused annotation. Can't be NULL. +// Return Value: +// On success, return true and write to the out parameters. Otherwise +// return false and leave the out parameters unmodified. +// Comments: +// Not currently supported for XFA forms - will report no focused +// annotation. +// Must call FPDFPage_CloseAnnot() when the annotation returned in |annot| +// by this function is no longer needed. +// This will return true and set |page_index| to -1 and |annot| to NULL, +// if there is no focused annotation. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_GetFocusedAnnot(FPDF_FORMHANDLE handle, + int* page_index, + FPDF_ANNOTATION* annot); + +// Experimental API. +// Function: FORM_SetFocusedAnnot. +// Call this member function to set the currently focused annotation. +// Parameters: +// handle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// annot - Handle to an annotation. +// Return Value: +// True indicates success; otherwise false. +// Comments: +// |annot| can't be NULL. To kill focus, use FORM_ForceToKillFocus() +// instead. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_SetFocusedAnnot(FPDF_FORMHANDLE handle, FPDF_ANNOTATION annot); + +// Form Field Types +// The names of the defines are stable, but the specific values associated with +// them are not, so do not hardcode their values. +#define FPDF_FORMFIELD_UNKNOWN 0 // Unknown. +#define FPDF_FORMFIELD_PUSHBUTTON 1 // push button type. +#define FPDF_FORMFIELD_CHECKBOX 2 // check box type. +#define FPDF_FORMFIELD_RADIOBUTTON 3 // radio button type. +#define FPDF_FORMFIELD_COMBOBOX 4 // combo box type. +#define FPDF_FORMFIELD_LISTBOX 5 // list box type. +#define FPDF_FORMFIELD_TEXTFIELD 6 // text field type. +#define FPDF_FORMFIELD_SIGNATURE 7 // text field type. +#ifdef PDF_ENABLE_XFA +#define FPDF_FORMFIELD_XFA 8 // Generic XFA type. +#define FPDF_FORMFIELD_XFA_CHECKBOX 9 // XFA check box type. +#define FPDF_FORMFIELD_XFA_COMBOBOX 10 // XFA combo box type. +#define FPDF_FORMFIELD_XFA_IMAGEFIELD 11 // XFA image field type. +#define FPDF_FORMFIELD_XFA_LISTBOX 12 // XFA list box type. +#define FPDF_FORMFIELD_XFA_PUSHBUTTON 13 // XFA push button type. +#define FPDF_FORMFIELD_XFA_SIGNATURE 14 // XFA signture field type. +#define FPDF_FORMFIELD_XFA_TEXTFIELD 15 // XFA text field type. +#endif // PDF_ENABLE_XFA + +#ifdef PDF_ENABLE_XFA +#define FPDF_FORMFIELD_COUNT 16 +#else // PDF_ENABLE_XFA +#define FPDF_FORMFIELD_COUNT 8 +#endif // PDF_ENABLE_XFA + +#ifdef PDF_ENABLE_XFA +#define IS_XFA_FORMFIELD(type) \ + (((type) == FPDF_FORMFIELD_XFA) || \ + ((type) == FPDF_FORMFIELD_XFA_CHECKBOX) || \ + ((type) == FPDF_FORMFIELD_XFA_COMBOBOX) || \ + ((type) == FPDF_FORMFIELD_XFA_IMAGEFIELD) || \ + ((type) == FPDF_FORMFIELD_XFA_LISTBOX) || \ + ((type) == FPDF_FORMFIELD_XFA_PUSHBUTTON) || \ + ((type) == FPDF_FORMFIELD_XFA_SIGNATURE) || \ + ((type) == FPDF_FORMFIELD_XFA_TEXTFIELD)) +#endif // PDF_ENABLE_XFA + +// Function: FPDFPage_HasFormFieldAtPoint +// Get the form field type by point. +// Parameters: +// hHandle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page. Returned by FPDF_LoadPage(). +// page_x - X position in PDF "user space". +// page_y - Y position in PDF "user space". +// Return Value: +// Return the type of the form field; -1 indicates no field. +// See field types above. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + double page_x, + double page_y); + +// Function: FPDFPage_FormFieldZOrderAtPoint +// Get the form field z-order by point. +// Parameters: +// hHandle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment(). +// page - Handle to the page. Returned by FPDF_LoadPage(). +// page_x - X position in PDF "user space". +// page_y - Y position in PDF "user space". +// Return Value: +// Return the z-order of the form field; -1 indicates no field. +// Higher numbers are closer to the front. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPage_FormFieldZOrderAtPoint(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + double page_x, + double page_y); + +// Function: FPDF_SetFormFieldHighlightColor +// Set the highlight color of the specified (or all) form fields +// in the document. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// doc - Handle to the document, as returned by +// FPDF_LoadDocument(). +// fieldType - A 32-bit integer indicating the type of a form +// field (defined above). +// color - The highlight color of the form field. Constructed by +// 0xxxrrggbb. +// Return Value: +// None. +// Comments: +// When the parameter fieldType is set to FPDF_FORMFIELD_UNKNOWN, the +// highlight color will be applied to all the form fields in the +// document. +// Please refresh the client window to show the highlight immediately +// if necessary. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_SetFormFieldHighlightColor(FPDF_FORMHANDLE hHandle, + int fieldType, + unsigned long color); + +// Function: FPDF_SetFormFieldHighlightAlpha +// Set the transparency of the form field highlight color in the +// document. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// doc - Handle to the document, as returaned by +// FPDF_LoadDocument(). +// alpha - The transparency of the form field highlight color, +// between 0-255. +// Return Value: +// None. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_SetFormFieldHighlightAlpha(FPDF_FORMHANDLE hHandle, unsigned char alpha); + +// Function: FPDF_RemoveFormFieldHighlight +// Remove the form field highlight color in the document. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// Return Value: +// None. +// Comments: +// Please refresh the client window to remove the highlight immediately +// if necessary. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_RemoveFormFieldHighlight(FPDF_FORMHANDLE hHandle); + +// Function: FPDF_FFLDraw +// Render FormFields and popup window on a page to a device independent +// bitmap. +// Parameters: +// hHandle - Handle to the form fill module, as returned by +// FPDFDOC_InitFormFillEnvironment(). +// bitmap - Handle to the device independent bitmap (as the +// output buffer). Bitmap handles can be created by +// FPDFBitmap_Create(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// start_x - Left pixel position of the display area in the +// device coordinates. +// start_y - Top pixel position of the display area in the device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: 0 (normal), 1 (rotated 90 degrees +// clockwise), 2 (rotated 180 degrees), 3 (rotated 90 +// degrees counter-clockwise). +// flags - 0 for normal display, or combination of flags +// defined above. +// Return Value: +// None. +// Comments: +// This function is designed to render annotations that are +// user-interactive, which are widget annotations (for FormFields) and +// popup annotations. +// With the FPDF_ANNOT flag, this function will render a popup annotation +// when users mouse-hover on a non-widget annotation. Regardless of +// FPDF_ANNOT flag, this function will always render widget annotations +// for FormFields. +// In order to implement the FormFill functions, implementation should +// call this function after rendering functions, such as +// FPDF_RenderPageBitmap() or FPDF_RenderPageBitmap_Start(), have +// finished rendering the page contents. +FPDF_EXPORT void FPDF_CALLCONV FPDF_FFLDraw(FPDF_FORMHANDLE hHandle, + FPDF_BITMAP bitmap, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); + +#if defined(PDF_USE_SKIA) +FPDF_EXPORT void FPDF_CALLCONV FPDF_FFLDrawSkia(FPDF_FORMHANDLE hHandle, + FPDF_SKIA_CANVAS canvas, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); +#endif + +// Experimental API +// Function: FPDF_GetFormType +// Returns the type of form contained in the PDF document. +// Parameters: +// document - Handle to document. +// Return Value: +// Integer value representing one of the FORMTYPE_ values. +// Comments: +// If |document| is NULL, then the return value is FORMTYPE_NONE. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetFormType(FPDF_DOCUMENT document); + +// Experimental API +// Function: FORM_SetIndexSelected +// Selects/deselects the value at the given |index| of the focused +// annotation. +// Parameters: +// hHandle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment. +// page - Handle to the page. Returned by FPDF_LoadPage +// index - 0-based index of value to be set as +// selected/unselected +// selected - true to select, false to deselect +// Return Value: +// TRUE if the operation succeeded. +// FALSE if the operation failed or widget is not a supported type. +// Comments: +// Intended for use with listbox/combobox widget types. Comboboxes +// have at most a single value selected at a time which cannot be +// deselected. Deselect on a combobox is a no-op that returns false. +// Default implementation is a no-op that will return false for +// other types. +// Not currently supported for XFA forms - will return false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_SetIndexSelected(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + int index, + FPDF_BOOL selected); + +// Experimental API +// Function: FORM_IsIndexSelected +// Returns whether or not the value at |index| of the focused +// annotation is currently selected. +// Parameters: +// hHandle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment. +// page - Handle to the page. Returned by FPDF_LoadPage +// index - 0-based Index of value to check +// Return Value: +// TRUE if value at |index| is currently selected. +// FALSE if value at |index| is not selected or widget is not a +// supported type. +// Comments: +// Intended for use with listbox/combobox widget types. Default +// implementation is a no-op that will return false for other types. +// Not currently supported for XFA forms - will return false. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_IsIndexSelected(FPDF_FORMHANDLE hHandle, FPDF_PAGE page, int index); + +// Experimental API +// Function: FORM_GetTextDirection +// Returns the text direction of the given form field annotation. +// Parameters: +// handle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - Handle to the form field annotation. +// Return Value: +// The in-memory text direction of the given form field annotation. +// If the operation fails (e.g., invalid handle), returns +// FPDF_TEXTDIR_UNKNOWN. +FPDF_EXPORT FPDF_TEXT_DIRECTION FPDF_CALLCONV +FORM_GetTextDirection(FPDF_FORMHANDLE handle, FPDF_ANNOTATION annot); + +// Experimental API +// Function: FORM_SetTextDirection +// Sets the text direction of the given form field annotation. +// Parameters: +// handle - Handle to the form fill module. Returned by +// FPDFDOC_InitFormFillEnvironment. +// annot - Handle to the form field annotation. +// direction - The new text direction. Passing +// FPDF_TEXTDIR_UNKNOWN will fail and return FALSE. +// Note: This only alters the in-memory state of the +// form field and does not modify the PDF document. +// Return Value: +// TRUE on success, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FORM_SetTextDirection(FPDF_FORMHANDLE handle, + FPDF_ANNOTATION annot, + FPDF_TEXT_DIRECTION direction); + +// Function: FPDF_LoadXFA +// If the document consists of XFA fields, call this method to +// attempt to load XFA fields. +// Parameters: +// document - Handle to document from FPDF_LoadDocument(). +// Return Value: +// TRUE upon success, otherwise FALSE. If XFA support is not built +// into PDFium, performs no action and always returns FALSE. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_LoadXFA(FPDF_DOCUMENT document); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_FORMFILL_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_fwlevent.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_fwlevent.h new file mode 100644 index 0000000..e61606d --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_fwlevent.h @@ -0,0 +1,207 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_FWLEVENT_H_ +#define PUBLIC_FPDF_FWLEVENT_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Key flags. +typedef enum { + FWL_EVENTFLAG_ShiftKey = 1 << 0, + FWL_EVENTFLAG_ControlKey = 1 << 1, + FWL_EVENTFLAG_AltKey = 1 << 2, + FWL_EVENTFLAG_MetaKey = 1 << 3, + FWL_EVENTFLAG_KeyPad = 1 << 4, + FWL_EVENTFLAG_AutoRepeat = 1 << 5, + FWL_EVENTFLAG_LeftButtonDown = 1 << 6, + FWL_EVENTFLAG_MiddleButtonDown = 1 << 7, + FWL_EVENTFLAG_RightButtonDown = 1 << 8, +} FWL_EVENTFLAG; + +// Virtual keycodes. +typedef enum { + FWL_VKEY_Back = 0x08, + FWL_VKEY_Tab = 0x09, + FWL_VKEY_NewLine = 0x0A, + FWL_VKEY_Clear = 0x0C, + FWL_VKEY_Return = 0x0D, + FWL_VKEY_Shift = 0x10, + FWL_VKEY_Control = 0x11, + FWL_VKEY_Menu = 0x12, + FWL_VKEY_Pause = 0x13, + FWL_VKEY_Capital = 0x14, + FWL_VKEY_Kana = 0x15, + FWL_VKEY_Hangul = 0x15, + FWL_VKEY_Junja = 0x17, + FWL_VKEY_Final = 0x18, + FWL_VKEY_Hanja = 0x19, + FWL_VKEY_Kanji = 0x19, + FWL_VKEY_Escape = 0x1B, + FWL_VKEY_Convert = 0x1C, + FWL_VKEY_NonConvert = 0x1D, + FWL_VKEY_Accept = 0x1E, + FWL_VKEY_ModeChange = 0x1F, + FWL_VKEY_Space = 0x20, + FWL_VKEY_Prior = 0x21, + FWL_VKEY_Next = 0x22, + FWL_VKEY_End = 0x23, + FWL_VKEY_Home = 0x24, + FWL_VKEY_Left = 0x25, + FWL_VKEY_Up = 0x26, + FWL_VKEY_Right = 0x27, + FWL_VKEY_Down = 0x28, + FWL_VKEY_Select = 0x29, + FWL_VKEY_Print = 0x2A, + FWL_VKEY_Execute = 0x2B, + FWL_VKEY_Snapshot = 0x2C, + FWL_VKEY_Insert = 0x2D, + FWL_VKEY_Delete = 0x2E, + FWL_VKEY_Help = 0x2F, + FWL_VKEY_0 = 0x30, + FWL_VKEY_1 = 0x31, + FWL_VKEY_2 = 0x32, + FWL_VKEY_3 = 0x33, + FWL_VKEY_4 = 0x34, + FWL_VKEY_5 = 0x35, + FWL_VKEY_6 = 0x36, + FWL_VKEY_7 = 0x37, + FWL_VKEY_8 = 0x38, + FWL_VKEY_9 = 0x39, + FWL_VKEY_A = 0x41, + FWL_VKEY_B = 0x42, + FWL_VKEY_C = 0x43, + FWL_VKEY_D = 0x44, + FWL_VKEY_E = 0x45, + FWL_VKEY_F = 0x46, + FWL_VKEY_G = 0x47, + FWL_VKEY_H = 0x48, + FWL_VKEY_I = 0x49, + FWL_VKEY_J = 0x4A, + FWL_VKEY_K = 0x4B, + FWL_VKEY_L = 0x4C, + FWL_VKEY_M = 0x4D, + FWL_VKEY_N = 0x4E, + FWL_VKEY_O = 0x4F, + FWL_VKEY_P = 0x50, + FWL_VKEY_Q = 0x51, + FWL_VKEY_R = 0x52, + FWL_VKEY_S = 0x53, + FWL_VKEY_T = 0x54, + FWL_VKEY_U = 0x55, + FWL_VKEY_V = 0x56, + FWL_VKEY_W = 0x57, + FWL_VKEY_X = 0x58, + FWL_VKEY_Y = 0x59, + FWL_VKEY_Z = 0x5A, + FWL_VKEY_LWin = 0x5B, + FWL_VKEY_Command = 0x5B, + FWL_VKEY_RWin = 0x5C, + FWL_VKEY_Apps = 0x5D, + FWL_VKEY_Sleep = 0x5F, + FWL_VKEY_NumPad0 = 0x60, + FWL_VKEY_NumPad1 = 0x61, + FWL_VKEY_NumPad2 = 0x62, + FWL_VKEY_NumPad3 = 0x63, + FWL_VKEY_NumPad4 = 0x64, + FWL_VKEY_NumPad5 = 0x65, + FWL_VKEY_NumPad6 = 0x66, + FWL_VKEY_NumPad7 = 0x67, + FWL_VKEY_NumPad8 = 0x68, + FWL_VKEY_NumPad9 = 0x69, + FWL_VKEY_Multiply = 0x6A, + FWL_VKEY_Add = 0x6B, + FWL_VKEY_Separator = 0x6C, + FWL_VKEY_Subtract = 0x6D, + FWL_VKEY_Decimal = 0x6E, + FWL_VKEY_Divide = 0x6F, + FWL_VKEY_F1 = 0x70, + FWL_VKEY_F2 = 0x71, + FWL_VKEY_F3 = 0x72, + FWL_VKEY_F4 = 0x73, + FWL_VKEY_F5 = 0x74, + FWL_VKEY_F6 = 0x75, + FWL_VKEY_F7 = 0x76, + FWL_VKEY_F8 = 0x77, + FWL_VKEY_F9 = 0x78, + FWL_VKEY_F10 = 0x79, + FWL_VKEY_F11 = 0x7A, + FWL_VKEY_F12 = 0x7B, + FWL_VKEY_F13 = 0x7C, + FWL_VKEY_F14 = 0x7D, + FWL_VKEY_F15 = 0x7E, + FWL_VKEY_F16 = 0x7F, + FWL_VKEY_F17 = 0x80, + FWL_VKEY_F18 = 0x81, + FWL_VKEY_F19 = 0x82, + FWL_VKEY_F20 = 0x83, + FWL_VKEY_F21 = 0x84, + FWL_VKEY_F22 = 0x85, + FWL_VKEY_F23 = 0x86, + FWL_VKEY_F24 = 0x87, + FWL_VKEY_NunLock = 0x90, + FWL_VKEY_Scroll = 0x91, + FWL_VKEY_LShift = 0xA0, + FWL_VKEY_RShift = 0xA1, + FWL_VKEY_LControl = 0xA2, + FWL_VKEY_RControl = 0xA3, + FWL_VKEY_LMenu = 0xA4, + FWL_VKEY_RMenu = 0xA5, + FWL_VKEY_BROWSER_Back = 0xA6, + FWL_VKEY_BROWSER_Forward = 0xA7, + FWL_VKEY_BROWSER_Refresh = 0xA8, + FWL_VKEY_BROWSER_Stop = 0xA9, + FWL_VKEY_BROWSER_Search = 0xAA, + FWL_VKEY_BROWSER_Favorites = 0xAB, + FWL_VKEY_BROWSER_Home = 0xAC, + FWL_VKEY_VOLUME_Mute = 0xAD, + FWL_VKEY_VOLUME_Down = 0xAE, + FWL_VKEY_VOLUME_Up = 0xAF, + FWL_VKEY_MEDIA_NEXT_Track = 0xB0, + FWL_VKEY_MEDIA_PREV_Track = 0xB1, + FWL_VKEY_MEDIA_Stop = 0xB2, + FWL_VKEY_MEDIA_PLAY_Pause = 0xB3, + FWL_VKEY_MEDIA_LAUNCH_Mail = 0xB4, + FWL_VKEY_MEDIA_LAUNCH_MEDIA_Select = 0xB5, + FWL_VKEY_MEDIA_LAUNCH_APP1 = 0xB6, + FWL_VKEY_MEDIA_LAUNCH_APP2 = 0xB7, + FWL_VKEY_OEM_1 = 0xBA, + FWL_VKEY_OEM_Plus = 0xBB, + FWL_VKEY_OEM_Comma = 0xBC, + FWL_VKEY_OEM_Minus = 0xBD, + FWL_VKEY_OEM_Period = 0xBE, + FWL_VKEY_OEM_2 = 0xBF, + FWL_VKEY_OEM_3 = 0xC0, + FWL_VKEY_OEM_4 = 0xDB, + FWL_VKEY_OEM_5 = 0xDC, + FWL_VKEY_OEM_6 = 0xDD, + FWL_VKEY_OEM_7 = 0xDE, + FWL_VKEY_OEM_8 = 0xDF, + FWL_VKEY_OEM_102 = 0xE2, + FWL_VKEY_ProcessKey = 0xE5, + FWL_VKEY_Packet = 0xE7, + FWL_VKEY_Attn = 0xF6, + FWL_VKEY_Crsel = 0xF7, + FWL_VKEY_Exsel = 0xF8, + FWL_VKEY_Ereof = 0xF9, + FWL_VKEY_Play = 0xFA, + FWL_VKEY_Zoom = 0xFB, + FWL_VKEY_NoName = 0xFC, + FWL_VKEY_PA1 = 0xFD, + FWL_VKEY_OEM_Clear = 0xFE, + FWL_VKEY_Unknown = 0, +} FWL_VKEYCODE; + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_FWLEVENT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_javascript.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_javascript.h new file mode 100644 index 0000000..2b02405 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_javascript.h @@ -0,0 +1,77 @@ +// Copyright 2019 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_FPDF_JAVASCRIPT_H_ +#define PUBLIC_FPDF_JAVASCRIPT_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Experimental API. +// Get the number of JavaScript actions in |document|. +// +// document - handle to a document. +// +// Returns the number of JavaScript actions in |document| or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFDoc_GetJavaScriptActionCount(FPDF_DOCUMENT document); + +// Experimental API. +// Get the JavaScript action at |index| in |document|. +// +// document - handle to a document. +// index - the index of the requested JavaScript action. +// +// Returns the handle to the JavaScript action, or NULL on failure. +// Caller owns the returned handle and must close it with +// FPDFDoc_CloseJavaScriptAction(). +FPDF_EXPORT FPDF_JAVASCRIPT_ACTION FPDF_CALLCONV +FPDFDoc_GetJavaScriptAction(FPDF_DOCUMENT document, int index); + +// Experimental API. +// Close a loaded FPDF_JAVASCRIPT_ACTION object. + +// javascript - Handle to a JavaScript action. +FPDF_EXPORT void FPDF_CALLCONV +FPDFDoc_CloseJavaScriptAction(FPDF_JAVASCRIPT_ACTION javascript); + +// Experimental API. +// Get the name from the |javascript| handle. |buffer| is only modified if +// |buflen| is longer than the length of the name. On errors, |buffer| is +// unmodified and the returned length is 0. +// +// javascript - handle to an JavaScript action. +// buffer - buffer for holding the name, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the JavaScript action name in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFJavaScriptAction_GetName(FPDF_JAVASCRIPT_ACTION javascript, + FPDF_WCHAR* buffer, + unsigned long buflen); + +// Experimental API. +// Get the script from the |javascript| handle. |buffer| is only modified if +// |buflen| is longer than the length of the script. On errors, |buffer| is +// unmodified and the returned length is 0. +// +// javascript - handle to an JavaScript action. +// buffer - buffer for holding the name, encoded in UTF-16LE. +// buflen - length of the buffer in bytes. +// +// Returns the length of the JavaScript action name in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFJavaScriptAction_GetScript(FPDF_JAVASCRIPT_ACTION javascript, + FPDF_WCHAR* buffer, + unsigned long buflen); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_JAVASCRIPT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_ppo.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_ppo.h new file mode 100644 index 0000000..c621d35 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_ppo.h @@ -0,0 +1,116 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_PPO_H_ +#define PUBLIC_FPDF_PPO_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Experimental API. +// Import pages to a FPDF_DOCUMENT. +// +// dest_doc - The destination document for the pages. +// src_doc - The document to be imported. +// page_indices - An array of page indices to be imported. The first page is +// zero. If |page_indices| is NULL, all pages from |src_doc| +// are imported. +// length - The length of the |page_indices| array. +// index - The page index at which to insert the first imported page +// into |dest_doc|. The first page is zero. +// +// Returns TRUE on success. Returns FALSE if any pages in |page_indices| is +// invalid. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_ImportPagesByIndex(FPDF_DOCUMENT dest_doc, + FPDF_DOCUMENT src_doc, + const int* page_indices, + unsigned long length, + int index); + +// Import pages to a FPDF_DOCUMENT. +// +// dest_doc - The destination document for the pages. +// src_doc - The document to be imported. +// pagerange - A page range string, Such as "1,3,5-7". The first page is one. +// If |pagerange| is NULL, all pages from |src_doc| are imported. +// index - The page index at which to insert the first imported page into +// |dest_doc|. The first page is zero. +// +// Returns TRUE on success. Returns FALSE if any pages in |pagerange| is +// invalid or if |pagerange| cannot be read. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_ImportPages(FPDF_DOCUMENT dest_doc, + FPDF_DOCUMENT src_doc, + FPDF_BYTESTRING pagerange, + int index); + +// Experimental API. +// Create a new document from |src_doc|. The pages of |src_doc| will be +// combined to provide |num_pages_on_x_axis x num_pages_on_y_axis| pages per +// |output_doc| page. +// +// src_doc - The document to be imported. +// output_width - The output page width in PDF "user space" units. +// output_height - The output page height in PDF "user space" units. +// num_pages_on_x_axis - The number of pages on X Axis. +// num_pages_on_y_axis - The number of pages on Y Axis. +// +// Return value: +// A handle to the created document, or NULL on failure. +// +// Comments: +// number of pages per page = num_pages_on_x_axis * num_pages_on_y_axis +// +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_ImportNPagesToOne(FPDF_DOCUMENT src_doc, + float output_width, + float output_height, + size_t num_pages_on_x_axis, + size_t num_pages_on_y_axis); + +// Experimental API. +// Create a template to generate form xobjects from |src_doc|'s page at +// |src_page_index|, for use in |dest_doc|. +// +// Returns a handle on success, or NULL on failure. Caller owns the newly +// created object. The returned handle's lifetime is tied to |dest_doc| and not +// |src_doc|. It must be closed before |dest_doc|. +FPDF_EXPORT FPDF_XOBJECT FPDF_CALLCONV +FPDF_NewXObjectFromPage(FPDF_DOCUMENT dest_doc, + FPDF_DOCUMENT src_doc, + int src_page_index); + +// Experimental API. +// Close an FPDF_XOBJECT handle created by FPDF_NewXObjectFromPage(). +// FPDF_PAGEOBJECTs created from the FPDF_XOBJECT handle are not affected. +FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseXObject(FPDF_XOBJECT xobject); + +// Experimental API. +// Create a new form object from an FPDF_XOBJECT object. +// +// Returns a new form object on success, or NULL on failure. Caller owns the +// newly created object. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDF_NewFormObjectFromXObject(FPDF_XOBJECT xobject); + +// Copy the viewer preferences from |src_doc| into |dest_doc|. +// +// dest_doc - Document to write the viewer preferences into. +// src_doc - Document to read the viewer preferences from. +// +// Returns TRUE on success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc, FPDF_DOCUMENT src_doc); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_PPO_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_progressive.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_progressive.h new file mode 100644 index 0000000..0505a54 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_progressive.h @@ -0,0 +1,155 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_PROGRESSIVE_H_ +#define PUBLIC_FPDF_PROGRESSIVE_H_ + +// clang-format off +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +// Flags for progressive process status. +#define FPDF_RENDER_READY 0 +#define FPDF_RENDER_TOBECONTINUED 1 +#define FPDF_RENDER_DONE 2 +#define FPDF_RENDER_FAILED 3 + +#ifdef __cplusplus +extern "C" { +#endif + +// IFPDF_RENDERINFO interface. +typedef struct _IFSDK_PAUSE { + // Version number of the interface. Currently must be 1. + int version; + + // Method: NeedToPauseNow + // Check if we need to pause a progressive process now. + // Interface Version: + // 1 + // Implementation Required: + // yes + // Parameters: + // pThis - Pointer to the interface structure itself + // Return Value: + // Non-zero for pause now, 0 for continue. + FPDF_BOOL (*NeedToPauseNow)(struct _IFSDK_PAUSE* pThis); + + // A user defined data pointer, used by user's application. Can be NULL. + void* user; +} IFSDK_PAUSE; + +// Experimental API. +// Function: FPDF_RenderPageBitmapWithColorScheme_Start +// Start to render page contents to a device independent bitmap +// progressively with a specified color scheme for the content. +// Parameters: +// bitmap - Handle to the device independent bitmap (as the +// output buffer). Bitmap handle can be created by +// FPDFBitmap_Create function. +// page - Handle to the page as returned by FPDF_LoadPage +// function. +// start_x - Left pixel position of the display area in the +// bitmap coordinate. +// start_y - Top pixel position of the display area in the +// bitmap coordinate. +// size_x - Horizontal size (in pixels) for displaying the +// page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: 0 (normal), 1 (rotated 90 +// degrees clockwise), 2 (rotated 180 degrees), +// 3 (rotated 90 degrees counter-clockwise). +// flags - 0 for normal display, or combination of flags +// defined in fpdfview.h. With FPDF_ANNOT flag, it +// renders all annotations that does not require +// user-interaction, which are all annotations except +// widget and popup annotations. +// color_scheme - Color scheme to be used in rendering the |page|. +// If null, this function will work similar to +// FPDF_RenderPageBitmap_Start(). +// pause - The IFSDK_PAUSE interface. A callback mechanism +// allowing the page rendering process. +// Return value: +// Rendering Status. See flags for progressive process status for the +// details. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_RenderPageBitmapWithColorScheme_Start(FPDF_BITMAP bitmap, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags, + const FPDF_COLORSCHEME* color_scheme, + IFSDK_PAUSE* pause); + +// Function: FPDF_RenderPageBitmap_Start +// Start to render page contents to a device independent bitmap +// progressively. +// Parameters: +// bitmap - Handle to the device independent bitmap (as the +// output buffer). Bitmap handle can be created by +// FPDFBitmap_Create(). +// page - Handle to the page, as returned by FPDF_LoadPage(). +// start_x - Left pixel position of the display area in the +// bitmap coordinates. +// start_y - Top pixel position of the display area in the bitmap +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: 0 (normal), 1 (rotated 90 degrees +// clockwise), 2 (rotated 180 degrees), 3 (rotated 90 +// degrees counter-clockwise). +// flags - 0 for normal display, or combination of flags +// defined in fpdfview.h. With FPDF_ANNOT flag, it +// renders all annotations that does not require +// user-interaction, which are all annotations except +// widget and popup annotations. +// pause - The IFSDK_PAUSE interface.A callback mechanism +// allowing the page rendering process +// Return value: +// Rendering Status. See flags for progressive process status for the +// details. +FPDF_EXPORT int FPDF_CALLCONV FPDF_RenderPageBitmap_Start(FPDF_BITMAP bitmap, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags, + IFSDK_PAUSE* pause); + +// Function: FPDF_RenderPage_Continue +// Continue rendering a PDF page. +// Parameters: +// page - Handle to the page, as returned by FPDF_LoadPage(). +// pause - The IFSDK_PAUSE interface (a callback mechanism +// allowing the page rendering process to be paused +// before it's finished). This can be NULL if you +// don't want to pause. +// Return value: +// The rendering status. See flags for progressive process status for +// the details. +FPDF_EXPORT int FPDF_CALLCONV FPDF_RenderPage_Continue(FPDF_PAGE page, + IFSDK_PAUSE* pause); + +// Function: FPDF_RenderPage_Close +// Release the resource allocate during page rendering. Need to be +// called after finishing rendering or +// cancel the rendering. +// Parameters: +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPage_Close(FPDF_PAGE page); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_PROGRESSIVE_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_save.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_save.h new file mode 100644 index 0000000..093b889 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_save.h @@ -0,0 +1,93 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_SAVE_H_ +#define PUBLIC_FPDF_SAVE_H_ + +// clang-format off +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Structure for custom file write +typedef struct FPDF_FILEWRITE_ { + // + // Version number of the interface. Currently must be 1. + // + int version; + + // Method: WriteBlock + // Output a block of data in your custom way. + // Interface Version: + // 1 + // Implementation Required: + // Yes + // Comments: + // Called by function FPDF_SaveDocument + // Parameters: + // self - Pointer to the structure itself + // data - Pointer to a buffer to output + // size - The size of the buffer. + // Return value: + // Should be non-zero if successful, zero for error. + int (*WriteBlock)(struct FPDF_FILEWRITE_* self, + const void* data, + unsigned long size); +} FPDF_FILEWRITE; + +// Flags for FPDF_SaveAsCopy(). +// FPDF_INCREMENTAL and FPDF_NO_INCREMENTAL cannot be used together. +#define FPDF_INCREMENTAL (1 << 0) +#define FPDF_NO_INCREMENTAL (1 << 1) + // Deprecated. Use FPDF_REMOVE_SECURITY instead. + // TODO(crbug.com/42270430): Remove FPDF_REMOVE_SECURITY_DEPRECATED. +#define FPDF_REMOVE_SECURITY_DEPRECATED 3 +#define FPDF_REMOVE_SECURITY (1 << 2) +// Experimental. Subsets any embedded font files for new text objects added to +// the document. +#define FPDF_SUBSET_NEW_FONTS (1 << 3) + +// Function: FPDF_SaveAsCopy +// Saves the copy of specified document in custom way. +// Parameters: +// document - Handle to document, as returned by +// FPDF_LoadDocument() or FPDF_CreateNewDocument(). +// file_write - A pointer to a custom file write structure. +// flags - Flags above that affect how the PDF gets saved. +// Pass in 0 when there are no flags. +// Return value: +// TRUE for succeed, FALSE for failed. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_SaveAsCopy(FPDF_DOCUMENT document, + FPDF_FILEWRITE* file_write, + FPDF_DWORD flags); + +// Function: FPDF_SaveWithVersion +// Same as FPDF_SaveAsCopy(), except the file version of the +// saved document can be specified by the caller. +// Parameters: +// document - Handle to document. +// file_write - A pointer to a custom file write structure. +// flags - The creating flags. +// file_version - The PDF file version. File version: 14 for 1.4, +// 15 for 1.5, ... +// Return value: +// TRUE if succeed, FALSE if failed. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_SaveWithVersion(FPDF_DOCUMENT document, + FPDF_FILEWRITE* file_write, + FPDF_DWORD flags, + int file_version); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_SAVE_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_searchex.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_searchex.h new file mode 100644 index 0000000..9c980db --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_searchex.h @@ -0,0 +1,39 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_SEARCHEX_H_ +#define PUBLIC_FPDF_SEARCHEX_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Get the character index in |text_page| internal character list. +// +// text_page - a text page information structure. +// nTextIndex - index of the text returned from FPDFText_GetText(). +// +// Returns the index of the character in internal character list. -1 for error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex); + +// Get the text index in |text_page| internal character list. +// +// text_page - a text page information structure. +// nCharIndex - index of the character in internal character list. +// +// Returns the index of the text returned from FPDFText_GetText(). -1 for error. +FPDF_EXPORT int FPDF_CALLCONV +FPDFText_GetTextIndexFromCharIndex(FPDF_TEXTPAGE text_page, int nCharIndex); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_SEARCHEX_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_signature.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_signature.h new file mode 100644 index 0000000..9a075e5 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_signature.h @@ -0,0 +1,155 @@ +// Copyright 2020 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_FPDF_SIGNATURE_H_ +#define PUBLIC_FPDF_SIGNATURE_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Experimental API. +// Function: FPDF_GetSignatureCount +// Get total number of signatures in the document. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument(). +// Return value: +// Total number of signatures in the document on success, -1 on error. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetSignatureCount(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_GetSignatureObject +// Get the Nth signature of the document. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument(). +// index - Index into the array of signatures of the document. +// Return value: +// Returns the handle to the signature, or NULL on failure. The caller +// does not take ownership of the returned FPDF_SIGNATURE. Instead, it +// remains valid until FPDF_CloseDocument() is called for the document. +FPDF_EXPORT FPDF_SIGNATURE FPDF_CALLCONV +FPDF_GetSignatureObject(FPDF_DOCUMENT document, int index); + +// Experimental API. +// Function: FPDFSignatureObj_GetContents +// Get the contents of a signature object. +// Parameters: +// signature - Handle to the signature object. Returned by +// FPDF_GetSignatureObject(). +// buffer - The address of a buffer that receives the contents. +// length - The size, in bytes, of |buffer|. +// Return value: +// Returns the number of bytes in the contents on success, 0 on error. +// +// For public-key signatures, |buffer| is either a DER-encoded PKCS#1 binary or +// a DER-encoded PKCS#7 binary. If |length| is less than the returned length, or +// |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFSignatureObj_GetContents(FPDF_SIGNATURE signature, + void* buffer, + unsigned long length); + +// Experimental API. +// Function: FPDFSignatureObj_GetByteRange +// Get the byte range of a signature object. +// Parameters: +// signature - Handle to the signature object. Returned by +// FPDF_GetSignatureObject(). +// buffer - The address of a buffer that receives the +// byte range. +// length - The size, in ints, of |buffer|. +// Return value: +// Returns the number of ints in the byte range on +// success, 0 on error. +// +// |buffer| is an array of pairs of integers (starting byte offset, +// length in bytes) that describes the exact byte range for the digest +// calculation. If |length| is less than the returned length, or +// |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFSignatureObj_GetByteRange(FPDF_SIGNATURE signature, + int* buffer, + unsigned long length); + +// Experimental API. +// Function: FPDFSignatureObj_GetSubFilter +// Get the encoding of the value of a signature object. +// Parameters: +// signature - Handle to the signature object. Returned by +// FPDF_GetSignatureObject(). +// buffer - The address of a buffer that receives the encoding. +// length - The size, in bytes, of |buffer|. +// Return value: +// Returns the number of bytes in the encoding name (including the +// trailing NUL character) on success, 0 on error. +// +// The |buffer| is always encoded in 7-bit ASCII. If |length| is less than the +// returned length, or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFSignatureObj_GetSubFilter(FPDF_SIGNATURE signature, + char* buffer, + unsigned long length); + +// Experimental API. +// Function: FPDFSignatureObj_GetReason +// Get the reason (comment) of the signature object. +// Parameters: +// signature - Handle to the signature object. Returned by +// FPDF_GetSignatureObject(). +// buffer - The address of a buffer that receives the reason. +// length - The size, in bytes, of |buffer|. +// Return value: +// Returns the number of bytes in the reason on success, 0 on error. +// +// Regardless of the platform, the |buffer| is always in UTF-16LE encoding. The +// string is terminated by a UTF16 NUL character. If |length| is less than the +// returned length, or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFSignatureObj_GetReason(FPDF_SIGNATURE signature, + void* buffer, + unsigned long length); + +// Experimental API. +// Function: FPDFSignatureObj_GetTime +// Get the time of signing of a signature object. +// Parameters: +// signature - Handle to the signature object. Returned by +// FPDF_GetSignatureObject(). +// buffer - The address of a buffer that receives the time. +// length - The size, in bytes, of |buffer|. +// Return value: +// Returns the number of bytes in the encoding name (including the +// trailing NUL character) on success, 0 on error. +// +// The |buffer| is always encoded in 7-bit ASCII. If |length| is less than the +// returned length, or |buffer| is NULL, |buffer| will not be modified. +// +// The format of time is expected to be D:YYYYMMDDHHMMSS+XX'YY', i.e. it's +// percision is seconds, with timezone information. This value should be used +// only when the time of signing is not available in the (PKCS#7 binary) +// signature. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFSignatureObj_GetTime(FPDF_SIGNATURE signature, + char* buffer, + unsigned long length); + +// Experimental API. +// Function: FPDFSignatureObj_GetDocMDPPermission +// Get the DocMDP permission of a signature object. +// Parameters: +// signature - Handle to the signature object. Returned by +// FPDF_GetSignatureObject(). +// Return value: +// Returns the permission (1, 2 or 3) on success, 0 on error. +FPDF_EXPORT unsigned int FPDF_CALLCONV +FPDFSignatureObj_GetDocMDPPermission(FPDF_SIGNATURE signature); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // PUBLIC_FPDF_SIGNATURE_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_structtree.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_structtree.h new file mode 100644 index 0000000..3c933b3 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_structtree.h @@ -0,0 +1,567 @@ +// Copyright 2016 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_STRUCTTREE_H_ +#define PUBLIC_FPDF_STRUCTTREE_H_ + +// clang-format off +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Function: FPDF_StructTree_GetForPage +// Get the structure tree for a page. +// Parameters: +// page - Handle to the page, as returned by FPDF_LoadPage(). +// Return value: +// A handle to the structure tree or NULL on error. The caller owns the +// returned handle and must use FPDF_StructTree_Close() to release it. +// The handle should be released before |page| gets released. +FPDF_EXPORT FPDF_STRUCTTREE FPDF_CALLCONV +FPDF_StructTree_GetForPage(FPDF_PAGE page); + +// Function: FPDF_StructTree_Close +// Release a resource allocated by FPDF_StructTree_GetForPage(). +// Parameters: +// struct_tree - Handle to the structure tree, as returned by +// FPDF_StructTree_LoadPage(). +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_StructTree_Close(FPDF_STRUCTTREE struct_tree); + +// Function: FPDF_StructTree_CountChildren +// Count the number of children for the structure tree. +// Parameters: +// struct_tree - Handle to the structure tree, as returned by +// FPDF_StructTree_LoadPage(). +// Return value: +// The number of children, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructTree_CountChildren(FPDF_STRUCTTREE struct_tree); + +// Function: FPDF_StructTree_GetChildAtIndex +// Get a child in the structure tree. +// Parameters: +// struct_tree - Handle to the structure tree, as returned by +// FPDF_StructTree_LoadPage(). +// index - The index for the child, 0-based. +// Return value: +// The child at the n-th index or NULL on error. The caller does not +// own the handle. The handle remains valid as long as |struct_tree| +// remains valid. +// Comments: +// The |index| must be less than the FPDF_StructTree_CountChildren() +// return value. +FPDF_EXPORT FPDF_STRUCTELEMENT FPDF_CALLCONV +FPDF_StructTree_GetChildAtIndex(FPDF_STRUCTTREE struct_tree, int index); + +// Function: FPDF_StructElement_GetAltText +// Get the alt text for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output the alt text. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the alt text, including the terminating NUL +// character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetAltText(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_StructElement_GetActualText +// Get the actual text for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output the actual text. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the actual text, including the terminating +// NUL character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetActualText(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_StructElement_GetExpansion +// Get the expansion of an abbreviation or acronym for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output the expansion text. May be +// NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the expansion text, including the terminating +// NUL character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetExpansion(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Function: FPDF_StructElement_GetID +// Get the ID for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output the ID string. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the ID string, including the terminating NUL +// character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetID(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_StructElement_GetLang +// Get the case-insensitive IETF BCP 47 language code for an element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output the lang string. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the ID string, including the terminating NUL +// character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetLang(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_StructElement_GetStringAttribute +// Get a struct element attribute of type "name" or "string". +// Parameters: +// struct_element - Handle to the struct element. +// attr_name - The name of the attribute to retrieve. +// buffer - A buffer for output. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the attribute value, including the +// terminating NUL character. The number of bytes is returned +// regardless of the |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetStringAttribute(FPDF_STRUCTELEMENT struct_element, + FPDF_BYTESTRING attr_name, + void* buffer, + unsigned long buflen); + +// Function: FPDF_StructElement_GetMarkedContentID +// Get the marked content ID for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// Return value: +// The marked content ID of the element. If no ID exists, returns +// -1. +// Comments: +// FPDF_StructElement_GetMarkedContentIdAtIndex() may be able to +// extract more marked content IDs out of |struct_element|. This API +// may be deprecated in the future. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_GetMarkedContentID(FPDF_STRUCTELEMENT struct_element); + +// Experimental API. +// Function: FPDF_StructElement_GetRawType +// Get the raw value of the /S entry for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A FPDF_WCHAR buffer for output text. May be NULL. +// buflen - The length of the buffer. May be 0. +// Return value: +// The number of bytes in the text, including the terminating NUL +// character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetRawType(FPDF_STRUCTELEMENT struct_element, + FPDF_WCHAR* buffer, + size_t buflen); + +// Function: FPDF_StructElement_GetType +// Get the type (/S) for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the type, including the terminating NUL +// character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetType(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_StructElement_GetObjType +// Get the object type (/Type) for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the object type, including the terminating +// NUL character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetObjType(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Function: FPDF_StructElement_GetTitle +// Get the title (/T) for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// buffer - A buffer for output. May be NULL. +// buflen - The length of the buffer, in bytes. May be 0. +// Return value: +// The number of bytes in the title, including the terminating NUL +// character. The number of bytes is returned regardless of the +// |buffer| and |buflen| parameters. +// Comments: +// Regardless of the platform, the |buffer| is always in UTF-16LE +// encoding. The string is terminated by a UTF16 NUL character. If +// |buflen| is less than the required length, or |buffer| is NULL, +// |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_StructElement_GetTitle(FPDF_STRUCTELEMENT struct_element, + void* buffer, + unsigned long buflen); + +// Function: FPDF_StructElement_CountChildren +// Count the number of children for the structure element. +// Parameters: +// struct_element - Handle to the struct element. +// Return value: +// The number of children, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_CountChildren(FPDF_STRUCTELEMENT struct_element); + +// Function: FPDF_StructElement_GetChildAtIndex +// Get a child in the structure element. +// Parameters: +// struct_element - Handle to the struct element. +// index - The index for the child, 0-based. +// Return value: +// The child at the n-th index or NULL on error. +// Comments: +// If the child exists but is not an element, then this function will +// return NULL. This will also return NULL for out of bounds indices. +// The |index| must be less than the FPDF_StructElement_CountChildren() +// return value. +FPDF_EXPORT FPDF_STRUCTELEMENT FPDF_CALLCONV +FPDF_StructElement_GetChildAtIndex(FPDF_STRUCTELEMENT struct_element, + int index); + +// Experimental API. +// Function: FPDF_StructElement_GetChildMarkedContentID +// Get the child's content id +// Parameters: +// struct_element - Handle to the struct element. +// index - The index for the child, 0-based. +// Return value: +// The marked content ID of the child. If no ID exists, returns -1. +// Comments: +// If the child exists but is not a stream or object, then this +// function will return -1. This will also return -1 for out of bounds +// indices. Compared to FPDF_StructElement_GetMarkedContentIdAtIndex, +// it is scoped to the current page. +// The |index| must be less than the FPDF_StructElement_CountChildren() +// return value. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_GetChildMarkedContentID(FPDF_STRUCTELEMENT struct_element, + int index); + +// Experimental API. +// Function: FPDF_StructElement_GetParent +// Get the parent of the structure element. +// Parameters: +// struct_element - Handle to the struct element. +// Return value: +// The parent structure element or NULL on error. +// Comments: +// If structure element is StructTreeRoot, then this function will +// return NULL. +FPDF_EXPORT FPDF_STRUCTELEMENT FPDF_CALLCONV +FPDF_StructElement_GetParent(FPDF_STRUCTELEMENT struct_element); + +// Function: FPDF_StructElement_GetAttributeCount +// Count the number of attributes for the structure element. +// Parameters: +// struct_element - Handle to the struct element. +// Return value: +// The number of attributes, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_GetAttributeCount(FPDF_STRUCTELEMENT struct_element); + +// Experimental API. +// Function: FPDF_StructElement_GetAttributeAtIndex +// Get an attribute object in the structure element. +// Parameters: +// struct_element - Handle to the struct element. +// index - The index for the attribute object, 0-based. +// Return value: +// The attribute object at the n-th index or NULL on error. +// Comments: +// If the attribute object exists but is not a dict, then this +// function will return NULL. This will also return NULL for out of +// bounds indices. The caller does not own the handle. The handle +// remains valid as long as |struct_element| remains valid. +// The |index| must be less than the +// FPDF_StructElement_GetAttributeCount() return value. +FPDF_EXPORT FPDF_STRUCTELEMENT_ATTR FPDF_CALLCONV +FPDF_StructElement_GetAttributeAtIndex(FPDF_STRUCTELEMENT struct_element, int index); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetCount +// Count the number of attributes in a structure element attribute map. +// Parameters: +// struct_attribute - Handle to the struct element attribute. +// Return value: +// The number of attributes, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_Attr_GetCount(FPDF_STRUCTELEMENT_ATTR struct_attribute); + + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetName +// Get the name of an attribute in a structure element attribute map. +// Parameters: +// struct_attribute - Handle to the struct element attribute. +// index - The index of attribute in the map. +// buffer - A buffer for output. May be NULL. This is only +// modified if |buflen| is longer than the length +// of the key. Optional, pass null to just +// retrieve the size of the buffer needed. +// buflen - The length of the buffer. +// out_buflen - A pointer to variable that will receive the +// minimum buffer size to contain the key. Not +// filled if FALSE is returned. +// Return value: +// TRUE if the operation was successful, FALSE otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_StructElement_Attr_GetName(FPDF_STRUCTELEMENT_ATTR struct_attribute, + int index, + void* buffer, + unsigned long buflen, + unsigned long* out_buflen); +// Experimental API. +// Function: FPDF_StructElement_Attr_GetValue +// Get a handle to a value for an attribute in a structure element +// attribute map. +// Parameters: +// struct_attribute - Handle to the struct element attribute. +// name - The attribute name. +// Return value: +// Returns a handle to the value associated with the input, if any. +// Returns NULL on failure. The caller does not own the handle. +// The handle remains valid as long as |struct_attribute| remains +// valid. +FPDF_EXPORT FPDF_STRUCTELEMENT_ATTR_VALUE FPDF_CALLCONV +FPDF_StructElement_Attr_GetValue(FPDF_STRUCTELEMENT_ATTR struct_attribute, + FPDF_BYTESTRING name); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetType +// Get the type of an attribute in a structure element attribute map. +// Parameters: +// value - Handle to the value. +// Return value: +// Returns the type of the value, or FPDF_OBJECT_UNKNOWN in case of +// failure. Note that this will never return FPDF_OBJECT_REFERENCE, as +// references are always dereferenced. +FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV +FPDF_StructElement_Attr_GetType(FPDF_STRUCTELEMENT_ATTR_VALUE value); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetBooleanValue +// Get the value of a boolean attribute in an attribute map as +// FPDF_BOOL. FPDF_StructElement_Attr_GetType() should have returned +// FPDF_OBJECT_BOOLEAN for this property. +// Parameters: +// value - Handle to the value. +// out_value - A pointer to variable that will receive the value. Not +// filled if false is returned. +// Return value: +// Returns TRUE if the attribute maps to a boolean value, FALSE +// otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_StructElement_Attr_GetBooleanValue(FPDF_STRUCTELEMENT_ATTR_VALUE value, + FPDF_BOOL* out_value); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetNumberValue +// Get the value of a number attribute in an attribute map as float. +// FPDF_StructElement_Attr_GetType() should have returned +// FPDF_OBJECT_NUMBER for this property. +// Parameters: +// value - Handle to the value. +// out_value - A pointer to variable that will receive the value. Not +// filled if false is returned. +// Return value: +// Returns TRUE if the attribute maps to a number value, FALSE +// otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_StructElement_Attr_GetNumberValue(FPDF_STRUCTELEMENT_ATTR_VALUE value, + float* out_value); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetStringValue +// Get the value of a string attribute in an attribute map as string. +// FPDF_StructElement_Attr_GetType() should have returned +// FPDF_OBJECT_STRING or FPDF_OBJECT_NAME for this property. +// Parameters: +// value - Handle to the value. +// buffer - A buffer for holding the returned key in UTF-16LE. +// This is only modified if |buflen| is longer than the +// length of the key. Optional, pass null to just +// retrieve the size of the buffer needed. +// buflen - The length of the buffer. +// out_buflen - A pointer to variable that will receive the minimum +// buffer size to contain the key. Not filled if FALSE is +// returned. +// Return value: +// Returns TRUE if the attribute maps to a string value, FALSE +// otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_StructElement_Attr_GetStringValue(FPDF_STRUCTELEMENT_ATTR_VALUE value, + void* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetBlobValue +// Get the value of a blob attribute in an attribute map as string. +// Parameters: +// value - Handle to the value. +// buffer - A buffer for holding the returned value. This is only +// modified if |buflen| is at least as long as the length +// of the value. Optional, pass null to just retrieve the +// size of the buffer needed. +// buflen - The length of the buffer. +// out_buflen - A pointer to variable that will receive the minimum +// buffer size to contain the key. Not filled if FALSE is +// returned. +// Return value: +// Returns TRUE if the attribute maps to a string value, FALSE +// otherwise. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_StructElement_Attr_GetBlobValue(FPDF_STRUCTELEMENT_ATTR_VALUE value, + void* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +// Experimental API. +// Function: FPDF_StructElement_Attr_CountChildren +// Count the number of children values in an attribute. +// Parameters: +// value - Handle to the value. +// Return value: +// The number of children, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_Attr_CountChildren(FPDF_STRUCTELEMENT_ATTR_VALUE value); + +// Experimental API. +// Function: FPDF_StructElement_Attr_GetChildAtIndex +// Get a child from an attribute. +// Parameters: +// value - Handle to the value. +// index - The index for the child, 0-based. +// Return value: +// The child at the n-th index or NULL on error. +// Comments: +// The |index| must be less than the +// FPDF_StructElement_Attr_CountChildren() return value. +FPDF_EXPORT FPDF_STRUCTELEMENT_ATTR_VALUE FPDF_CALLCONV +FPDF_StructElement_Attr_GetChildAtIndex(FPDF_STRUCTELEMENT_ATTR_VALUE value, + int index); + +// Experimental API. +// Function: FPDF_StructElement_GetMarkedContentIdCount +// Get the count of marked content ids for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// Return value: +// The count of marked content ids or -1 if none exists. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_GetMarkedContentIdCount(FPDF_STRUCTELEMENT struct_element); + +// Experimental API. +// Function: FPDF_StructElement_GetMarkedContentIdAtIndex +// Get the marked content id at a given index for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// index - The index of the marked content id, 0-based. +// Return value: +// The marked content ID of the element. If no ID exists, returns +// -1. +// Comments: +// The |index| must be less than the +// FPDF_StructElement_GetMarkedContentIdCount() return value. +// This will likely supersede FPDF_StructElement_GetMarkedContentID(). +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_GetMarkedContentIdAtIndex(FPDF_STRUCTELEMENT struct_element, + int index); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // PUBLIC_FPDF_STRUCTTREE_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_sysfontinfo.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_sysfontinfo.h new file mode 100644 index 0000000..07bec0d --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_sysfontinfo.h @@ -0,0 +1,322 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_SYSFONTINFO_H_ +#define PUBLIC_FPDF_SYSFONTINFO_H_ + +#include + +// clang-format off +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +// Character sets for the font +#define FXFONT_ANSI_CHARSET 0 +#define FXFONT_DEFAULT_CHARSET 1 +#define FXFONT_SYMBOL_CHARSET 2 +#define FXFONT_SHIFTJIS_CHARSET 128 +#define FXFONT_HANGEUL_CHARSET 129 +#define FXFONT_GB2312_CHARSET 134 +#define FXFONT_CHINESEBIG5_CHARSET 136 +#define FXFONT_GREEK_CHARSET 161 +#define FXFONT_VIETNAMESE_CHARSET 163 +#define FXFONT_HEBREW_CHARSET 177 +#define FXFONT_ARABIC_CHARSET 178 +#define FXFONT_CYRILLIC_CHARSET 204 +#define FXFONT_THAI_CHARSET 222 +#define FXFONT_EASTERNEUROPEAN_CHARSET 238 + +// Font pitch and family flags +#define FXFONT_FF_FIXEDPITCH (1 << 0) +#define FXFONT_FF_ROMAN (1 << 4) +#define FXFONT_FF_SCRIPT (4 << 4) + +// Typical weight values +#define FXFONT_FW_NORMAL 400 +#define FXFONT_FW_BOLD 700 + +// Exported Functions +#ifdef __cplusplus +extern "C" { +#endif + +// Interface: FPDF_SYSFONTINFO +// Interface for getting system font information and font mapping +typedef struct _FPDF_SYSFONTINFO { + // Version number of the interface. Currently must be 1 or 2. + // Version 1: Traditional behavior - calls EnumFonts during initialization. + // Version 2: Per-request behavior - skips EnumFonts, relies on MapFont. + // Experimental: Subject to change based on feedback. + int version; + + // Method: Release + // Give implementation a chance to release any data after the + // interface is no longer used. + // Interface Version: + // 1 and 2 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself + // Return Value: + // None + // Comments: + // Called by PDFium during the final cleanup process. + void (*Release)(struct _FPDF_SYSFONTINFO* pThis); + + // Method: EnumFonts + // Enumerate all fonts installed on the system + // Interface Version: + // 1 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself + // pMapper - An opaque pointer to internal font mapper, used + // when calling FPDF_AddInstalledFont(). + // Return Value: + // None + // Comments: + // Implementations should call FPDF_AddInstalledFont() function for + // each font found. Only TrueType/OpenType and Type1 fonts are + // accepted by PDFium. + // NOTE: This method will not be called when version is set to 2. + // Version 2 relies entirely on MapFont() for per-request matching. + void (*EnumFonts)(struct _FPDF_SYSFONTINFO* pThis, void* pMapper); + + // Method: MapFont + // Use the system font mapper to get a font handle from requested + // parameters. + // Interface Version: + // 1 and 2 + // Implementation Required: + // Required if GetFont method is not implemented. + // Parameters: + // pThis - Pointer to the interface structure itself + // weight - Weight of the requested font. 400 is normal and + // 700 is bold. + // bItalic - Italic option of the requested font, TRUE or + // FALSE. + // charset - Character set identifier for the requested font. + // See above defined constants. + // pitch_family - A combination of flags. See above defined + // constants. + // face - Typeface name. Currently use system local encoding + // only. + // bExact - Obsolete: this parameter is now ignored. + // Return Value: + // An opaque pointer for font handle, or NULL if system mapping is + // not supported. + // Comments: + // If the system supports native font mapper (like Windows), + // implementation can implement this method to get a font handle. + // Otherwise, PDFium will do the mapping and then call GetFont + // method. Only TrueType/OpenType and Type1 fonts are accepted + // by PDFium. + void* (*MapFont)(struct _FPDF_SYSFONTINFO* pThis, + int weight, + FPDF_BOOL bItalic, + int charset, + int pitch_family, + const char* face, + FPDF_BOOL* bExact); + + // Method: GetFont + // Get a handle to a particular font by its internal ID + // Interface Version: + // 1 and 2 + // Implementation Required: + // Required if MapFont method is not implemented. + // Return Value: + // An opaque pointer for font handle. + // Parameters: + // pThis - Pointer to the interface structure itself + // face - Typeface name in system local encoding. + // Comments: + // If the system mapping not supported, PDFium will do the font + // mapping and use this method to get a font handle. + void* (*GetFont)(struct _FPDF_SYSFONTINFO* pThis, const char* face); + + // Method: GetFontData + // Get font data from a font + // Interface Version: + // 1 and 2 + // Implementation Required: + // Yes + // Parameters: + // pThis - Pointer to the interface structure itself + // hFont - Font handle returned by MapFont or GetFont method + // table - TrueType/OpenType table identifier (refer to + // TrueType specification), or 0 for the whole file. + // buffer - The buffer receiving the font data. Can be NULL if + // not provided. + // buf_size - Buffer size, can be zero if not provided. + // Return Value: + // Number of bytes needed, if buffer not provided or not large + // enough, or number of bytes written into buffer otherwise. + // Comments: + // Can read either the full font file, or a particular + // TrueType/OpenType table. + unsigned long (*GetFontData)(struct _FPDF_SYSFONTINFO* pThis, + void* hFont, + unsigned int table, + unsigned char* buffer, + unsigned long buf_size); + + // Method: GetFaceName + // Get face name from a font handle + // Interface Version: + // 1 and 2 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself + // hFont - Font handle returned by MapFont or GetFont method + // buffer - The buffer receiving the face name. Can be NULL if + // not provided + // buf_size - Buffer size, can be zero if not provided + // Return Value: + // Number of bytes needed, if buffer not provided or not large + // enough, or number of bytes written into buffer otherwise. + unsigned long (*GetFaceName)(struct _FPDF_SYSFONTINFO* pThis, + void* hFont, + char* buffer, + unsigned long buf_size); + + // Method: GetFontCharset + // Get character set information for a font handle + // Interface Version: + // 1 and 2 + // Implementation Required: + // No + // Parameters: + // pThis - Pointer to the interface structure itself + // hFont - Font handle returned by MapFont or GetFont method + // Return Value: + // Character set identifier. See defined constants above. + int (*GetFontCharset)(struct _FPDF_SYSFONTINFO* pThis, void* hFont); + + // Method: DeleteFont + // Delete a font handle + // Interface Version: + // 1 and 2 + // Implementation Required: + // Yes + // Parameters: + // pThis - Pointer to the interface structure itself + // hFont - Font handle returned by MapFont or GetFont method + // Return Value: + // None + void (*DeleteFont)(struct _FPDF_SYSFONTINFO* pThis, void* hFont); +} FPDF_SYSFONTINFO; + +// Struct: FPDF_CharsetFontMap +// Provides the name of a font to use for a given charset value. +typedef struct FPDF_CharsetFontMap_ { + int charset; // Character Set Enum value, see FXFONT_*_CHARSET above. + const char* fontname; // Name of default font to use with that charset. +} FPDF_CharsetFontMap; + +// Function: FPDF_GetDefaultTTFMap +// Returns a pointer to the default character set to TT Font name map. The +// map is an array of FPDF_CharsetFontMap structs, with its end indicated +// by a { -1, NULL } entry. +// Parameters: +// None. +// Return Value: +// Pointer to the Charset Font Map. +// Note: +// Once FPDF_GetDefaultTTFMapCount() and FPDF_GetDefaultTTFMapEntry() are no +// longer experimental, this API will be marked as deprecated. +// See https://crbug.com/348468114 +FPDF_EXPORT const FPDF_CharsetFontMap* FPDF_CALLCONV FPDF_GetDefaultTTFMap(); + +// Experimental API. +// +// Function: FPDF_GetDefaultTTFMapCount +// Returns the number of entries in the default character set to TT Font name +// map. +// Parameters: +// None. +// Return Value: +// The number of entries in the map. +FPDF_EXPORT size_t FPDF_CALLCONV FPDF_GetDefaultTTFMapCount(); + +// Experimental API. +// +// Function: FPDF_GetDefaultTTFMapEntry +// Returns an entry in the default character set to TT Font name map. +// Parameters: +// index - The index to the entry in the map to retrieve. +// Return Value: +// A pointer to the entry, if it is in the map, or NULL if the index is out +// of bounds. +FPDF_EXPORT const FPDF_CharsetFontMap* FPDF_CALLCONV +FPDF_GetDefaultTTFMapEntry(size_t index); + +// Function: FPDF_AddInstalledFont +// Add a system font to the list in PDFium. +// Comments: +// This function is only called during the system font list building +// process. +// Parameters: +// mapper - Opaque pointer to Foxit font mapper +// face - The font face name +// charset - Font character set. See above defined constants. +// Return Value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_AddInstalledFont(void* mapper, + const char* face, + int charset); + +// Function: FPDF_SetSystemFontInfo +// Set the system font info interface into PDFium +// Parameters: +// font_info - Pointer to a FPDF_SYSFONTINFO structure +// Return Value: +// None +// Comments: +// Platform support implementation should implement required methods of +// FFDF_SYSFONTINFO interface, then call this function during PDFium +// initialization process. +// +// Call this with NULL to tell PDFium to stop using a previously set +// |FPDF_SYSFONTINFO|. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_SetSystemFontInfo(FPDF_SYSFONTINFO* font_info); + +// Function: FPDF_GetDefaultSystemFontInfo +// Get default system font info interface for current platform +// Parameters: +// None +// Return Value: +// Pointer to a FPDF_SYSFONTINFO structure describing the default +// interface, or NULL if the platform doesn't have a default interface. +// Application should call FPDF_FreeDefaultSystemFontInfo to free the +// returned pointer. +// Comments: +// For some platforms, PDFium implements a default version of system +// font info interface. The default implementation can be passed to +// FPDF_SetSystemFontInfo(). +FPDF_EXPORT FPDF_SYSFONTINFO* FPDF_CALLCONV FPDF_GetDefaultSystemFontInfo(); + +// Function: FPDF_FreeDefaultSystemFontInfo +// Free a default system font info interface +// Parameters: +// font_info - Pointer to a FPDF_SYSFONTINFO structure +// Return Value: +// None +// Comments: +// This function should be called on the output from +// FPDF_GetDefaultSystemFontInfo() once it is no longer needed. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_FreeDefaultSystemFontInfo(FPDF_SYSFONTINFO* font_info); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_SYSFONTINFO_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_text.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_text.h new file mode 100644 index 0000000..fe96ccd --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_text.h @@ -0,0 +1,685 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_TEXT_H_ +#define PUBLIC_FPDF_TEXT_H_ + +// clang-format off +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +// Exported Functions +#ifdef __cplusplus +extern "C" { +#endif + +// Function: FPDFText_LoadPage +// Prepare information about all characters in a page. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage function +// (in FPDFVIEW module). +// Return value: +// A handle to the text page information structure. +// NULL if something goes wrong. +// Comments: +// Application must call FPDFText_ClosePage to release the text page +// information. +// +FPDF_EXPORT FPDF_TEXTPAGE FPDF_CALLCONV FPDFText_LoadPage(FPDF_PAGE page); + +// Function: FPDFText_ClosePage +// Release all resources allocated for a text page information +// structure. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// Return Value: +// None. +// +FPDF_EXPORT void FPDF_CALLCONV FPDFText_ClosePage(FPDF_TEXTPAGE text_page); + +// Function: FPDFText_CountChars +// Get number of characters in a page. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// Return value: +// Number of characters in the page. Return -1 for error. +// Generated characters, like additional space characters, new line +// characters, are also counted. +// Comments: +// Characters in a page form a "stream", inside the stream, each +// character has an index. +// We will use the index parameters in many of FPDFTEXT functions. The +// first character in the page +// has an index value of zero. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_CountChars(FPDF_TEXTPAGE text_page); + +// Function: FPDFText_GetUnicode +// Get Unicode of a character in a page. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// The Unicode of the particular character. +// If a character is not encoded in Unicode and Foxit engine can't +// convert to Unicode, +// the return value will be zero. +// +FPDF_EXPORT unsigned int FPDF_CALLCONV +FPDFText_GetUnicode(FPDF_TEXTPAGE text_page, int index); + +// Experimental API. +// Function: FPDFText_GetTextObject +// Get the FPDF_PAGEOBJECT associated with a given character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// The associated text object for the character at |index|, or NULL on +// error. The returned text object, if non-null, is of type +// |FPDF_PAGEOBJ_TEXT|. The caller does not own the returned object. +// +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFText_GetTextObject(FPDF_TEXTPAGE text_page, int index); + +// Experimental API. +// Function: FPDFText_IsGenerated +// Get if a character in a page is generated by PDFium. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// 1 if the character is generated by PDFium. +// 0 if the character is not generated by PDFium. +// -1 if there was an error. +// +FPDF_EXPORT int FPDF_CALLCONV +FPDFText_IsGenerated(FPDF_TEXTPAGE text_page, int index); + +// Experimental API. +// Function: FPDFText_IsHyphen +// Get if a character in a page is a hyphen. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// 1 if the character is a hyphen. +// 0 if the character is not a hyphen. +// -1 if there was an error. +// +FPDF_EXPORT int FPDF_CALLCONV +FPDFText_IsHyphen(FPDF_TEXTPAGE text_page, int index); + +// Experimental API. +// Function: FPDFText_HasUnicodeMapError +// Get if a character in a page has an invalid unicode mapping. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// 1 if the character has an invalid unicode mapping. +// 0 if the character has no known unicode mapping issues. +// -1 if there was an error. +// +FPDF_EXPORT int FPDF_CALLCONV +FPDFText_HasUnicodeMapError(FPDF_TEXTPAGE text_page, int index); + +// Function: FPDFText_GetFontSize +// Get the font size of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// The font size of the particular character, measured in points (about +// 1/72 inch). This is the typographic size of the font (so called +// "em size"). +// +FPDF_EXPORT double FPDF_CALLCONV FPDFText_GetFontSize(FPDF_TEXTPAGE text_page, + int index); + +// Experimental API. +// Function: FPDFText_GetFontInfo +// Get the font name and flags of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// buffer - A buffer receiving the font name. +// buflen - The length of |buffer| in bytes. +// flags - Optional pointer to an int receiving the font flags. +// These flags should be interpreted per PDF spec 1.7 +// Section 5.7.1 Font Descriptor Flags. +// Return value: +// On success, return the length of the font name, including the +// trailing NUL character, in bytes. If this length is less than or +// equal to |length|, |buffer| is set to the font name, |flags| is +// set to the font flags. |buffer| is in UTF-8 encoding. Return 0 on +// failure. +// +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFText_GetFontInfo(FPDF_TEXTPAGE text_page, + int index, + void* buffer, + unsigned long buflen, + int* flags); + +// Experimental API. +// Function: FPDFText_GetFontWeight +// Get the font weight of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return value: +// On success, return the font weight of the particular character. If +// |text_page| is invalid, if |index| is out of bounds, or if the +// character's text object is undefined, return -1. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetFontWeight(FPDF_TEXTPAGE text_page, + int index); + +// Experimental API. +// Function: FPDFText_GetFillColor +// Get the fill color of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// R - Pointer to an unsigned int number receiving the +// red value of the fill color. +// G - Pointer to an unsigned int number receiving the +// green value of the fill color. +// B - Pointer to an unsigned int number receiving the +// blue value of the fill color. +// A - Pointer to an unsigned int number receiving the +// alpha value of the fill color. +// Return value: +// Whether the call succeeded. If false, |R|, |G|, |B| and |A| are +// unchanged. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_GetFillColor(FPDF_TEXTPAGE text_page, + int index, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + +// Experimental API. +// Function: FPDFText_GetStrokeColor +// Get the stroke color of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// R - Pointer to an unsigned int number receiving the +// red value of the stroke color. +// G - Pointer to an unsigned int number receiving the +// green value of the stroke color. +// B - Pointer to an unsigned int number receiving the +// blue value of the stroke color. +// A - Pointer to an unsigned int number receiving the +// alpha value of the stroke color. +// Return value: +// Whether the call succeeded. If false, |R|, |G|, |B| and |A| are +// unchanged. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_GetStrokeColor(FPDF_TEXTPAGE text_page, + int index, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + +// Experimental API. +// Function: FPDFText_GetCharAngle +// Get character rotation angle. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// Return Value: +// On success, return the angle value in radian. Value will always be +// greater or equal to 0. If |text_page| is invalid, or if |index| is +// out of bounds, then return -1. +// +FPDF_EXPORT float FPDF_CALLCONV FPDFText_GetCharAngle(FPDF_TEXTPAGE text_page, + int index); + +// Function: FPDFText_GetCharBox +// Get bounding box of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// left - Pointer to a double number receiving left position +// of the character box. +// right - Pointer to a double number receiving right position +// of the character box. +// bottom - Pointer to a double number receiving bottom position +// of the character box. +// top - Pointer to a double number receiving top position of +// the character box. +// Return Value: +// On success, return TRUE and fill in |left|, |right|, |bottom|, and +// |top|. If |text_page| is invalid, or if |index| is out of bounds, +// then return FALSE, and the out parameters remain unmodified. +// Comments: +// All positions are measured in PDF "user space". +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetCharBox(FPDF_TEXTPAGE text_page, + int index, + double* left, + double* right, + double* bottom, + double* top); + +// Experimental API. +// Function: FPDFText_GetLooseCharBox +// Get a "loose" bounding box of a particular character, i.e., covering +// the entire glyph bounds, without taking the actual glyph shape into +// account. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// rect - Pointer to a FS_RECTF receiving the character box. +// Return Value: +// On success, return TRUE and fill in |rect|. If |text_page| is +// invalid, or if |index| is out of bounds, then return FALSE, and the +// |rect| out parameter remains unmodified. +// Comments: +// All positions are measured in PDF "user space". +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_GetLooseCharBox(FPDF_TEXTPAGE text_page, int index, FS_RECTF* rect); + +// Experimental API. +// Function: FPDFText_GetMatrix +// Get the effective transformation matrix for a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage(). +// index - Zero-based index of the character. +// matrix - Pointer to a FS_MATRIX receiving the transformation +// matrix. +// Return Value: +// On success, return TRUE and fill in |matrix|. If |text_page| is +// invalid, or if |index| is out of bounds, or if |matrix| is NULL, +// then return FALSE, and |matrix| remains unmodified. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetMatrix(FPDF_TEXTPAGE text_page, + int index, + FS_MATRIX* matrix); + +// Function: FPDFText_GetCharOrigin +// Get origin of a particular character. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// index - Zero-based index of the character. +// x - Pointer to a double number receiving x coordinate of +// the character origin. +// y - Pointer to a double number receiving y coordinate of +// the character origin. +// Return Value: +// Whether the call succeeded. If false, x and y are unchanged. +// Comments: +// All positions are measured in PDF "user space". +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFText_GetCharOrigin(FPDF_TEXTPAGE text_page, + int index, + double* x, + double* y); + +// Function: FPDFText_GetCharIndexAtPos +// Get the index of a character at or nearby a certain position on the +// page. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// x - X position in PDF "user space". +// y - Y position in PDF "user space". +// xTolerance - An x-axis tolerance value for character hit +// detection, in point units. +// yTolerance - A y-axis tolerance value for character hit +// detection, in point units. +// Return Value: +// The zero-based index of the character at, or nearby the point (x,y). +// If there is no character at or nearby the point, return value will +// be -1. If an error occurs, -3 will be returned. +// +FPDF_EXPORT int FPDF_CALLCONV +FPDFText_GetCharIndexAtPos(FPDF_TEXTPAGE text_page, + double x, + double y, + double xTolerance, + double yTolerance); + +// Function: FPDFText_GetText +// Extract unicode text string from the page. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// start_index - Index for the start characters. +// count - Number of UCS-2 values to be extracted. +// result - A buffer (allocated by application) receiving the +// extracted UCS-2 values. The buffer must be able to +// hold `count` UCS-2 values plus a terminator. +// Return Value: +// Number of characters written into the result buffer, including the +// trailing terminator. +// Comments: +// This function ignores characters without UCS-2 representations. +// It considers all characters on the page, even those that are not +// visible when the page has a cropbox. To filter out the characters +// outside of the cropbox, use FPDF_GetPageBoundingBox() and +// FPDFText_GetCharBox(). +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetText(FPDF_TEXTPAGE text_page, + int start_index, + int count, + unsigned short* result); + +// Function: FPDFText_CountRects +// Counts number of rectangular areas occupied by a segment of text, +// and caches the result for subsequent FPDFText_GetRect() calls. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// start_index - Index for the start character. +// count - Number of characters, or -1 for all remaining. +// Return value: +// Number of rectangles, 0 if text_page is null, or -1 on bad +// start_index. +// Comments: +// This function, along with FPDFText_GetRect can be used by +// applications to detect the position on the page for a text segment, +// so proper areas can be highlighted. The FPDFText_* functions will +// automatically merge small character boxes into bigger one if those +// characters are on the same line and use same font settings. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_CountRects(FPDF_TEXTPAGE text_page, + int start_index, + int count); + +// Function: FPDFText_GetRect +// Get a rectangular area from the result generated by +// FPDFText_CountRects. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// rect_index - Zero-based index for the rectangle. +// left - Pointer to a double value receiving the rectangle +// left boundary. +// top - Pointer to a double value receiving the rectangle +// top boundary. +// right - Pointer to a double value receiving the rectangle +// right boundary. +// bottom - Pointer to a double value receiving the rectangle +// bottom boundary. +// Return Value: +// On success, return TRUE and fill in |left|, |top|, |right|, and +// |bottom|. If |text_page| is invalid then return FALSE, and the out +// parameters remain unmodified. If |text_page| is valid but +// |rect_index| is out of bounds, then return FALSE and set the out +// parameters to 0. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetRect(FPDF_TEXTPAGE text_page, + int rect_index, + double* left, + double* top, + double* right, + double* bottom); + +// Function: FPDFText_GetBoundedText +// Extract unicode text within a rectangular boundary on the page. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// left - Left boundary. +// top - Top boundary. +// right - Right boundary. +// bottom - Bottom boundary. +// buffer - Caller-allocated buffer to receive UTF-16 values. +// buflen - Number of UTF-16 values (not bytes) that `buffer` +// is capable of holding. +// Return Value: +// If buffer is NULL or buflen is zero, return number of UTF-16 +// values (not bytes) of text present within the rectangle, excluding +// a terminating NUL. Generally you should pass a buffer at least one +// larger than this if you want a terminating NUL, which will be +// provided if space is available. Otherwise, return number of UTF-16 +// values copied into the buffer, including the terminating NUL when +// space for it is available. +// Comment: +// If the buffer is too small, as much text as will fit is copied into +// it. May return a split surrogate in that case. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetBoundedText(FPDF_TEXTPAGE text_page, + double left, + double top, + double right, + double bottom, + unsigned short* buffer, + int buflen); + +// Flags used by FPDFText_FindStart function. +// +// If not set, it will not match case by default. +#define FPDF_MATCHCASE 0x00000001 +// If not set, it will not match the whole word by default. +#define FPDF_MATCHWHOLEWORD 0x00000002 +// If not set, it will skip past the current match to look for the next match. +#define FPDF_CONSECUTIVE 0x00000004 + +// Function: FPDFText_FindStart +// Start a search. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// findwhat - A unicode match pattern. +// flags - Option flags. +// start_index - Start from this character. -1 for end of the page. +// Return Value: +// A handle for the search context. FPDFText_FindClose must be called +// to release this handle. +// +FPDF_EXPORT FPDF_SCHHANDLE FPDF_CALLCONV +FPDFText_FindStart(FPDF_TEXTPAGE text_page, + FPDF_WIDESTRING findwhat, + unsigned long flags, + int start_index); + +// Function: FPDFText_FindNext +// Search in the direction from page start to end. +// Parameters: +// handle - A search context handle returned by +// FPDFText_FindStart. +// Return Value: +// Whether a match is found. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_FindNext(FPDF_SCHHANDLE handle); + +// Function: FPDFText_FindPrev +// Search in the direction from page end to start. +// Parameters: +// handle - A search context handle returned by +// FPDFText_FindStart. +// Return Value: +// Whether a match is found. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_FindPrev(FPDF_SCHHANDLE handle); + +// Function: FPDFText_GetSchResultIndex +// Get the starting character index of the search result. +// Parameters: +// handle - A search context handle returned by +// FPDFText_FindStart. +// Return Value: +// Index for the starting character. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetSchResultIndex(FPDF_SCHHANDLE handle); + +// Function: FPDFText_GetSchCount +// Get the number of matched characters in the search result. +// Parameters: +// handle - A search context handle returned by +// FPDFText_FindStart. +// Return Value: +// Number of matched characters. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetSchCount(FPDF_SCHHANDLE handle); + +// Function: FPDFText_FindClose +// Release a search context. +// Parameters: +// handle - A search context handle returned by +// FPDFText_FindStart. +// Return Value: +// None. +// +FPDF_EXPORT void FPDF_CALLCONV FPDFText_FindClose(FPDF_SCHHANDLE handle); + +// Function: FPDFLink_LoadWebLinks +// Prepare information about weblinks in a page. +// Parameters: +// text_page - Handle to a text page information structure. +// Returned by FPDFText_LoadPage function. +// Return Value: +// A handle to the page's links information structure, or +// NULL if something goes wrong. +// Comments: +// Weblinks are those links implicitly embedded in PDF pages. PDF also +// has a type of annotation called "link" (FPDFTEXT doesn't deal with +// that kind of link). FPDFTEXT weblink feature is useful for +// automatically detecting links in the page contents. For example, +// things like "https://www.example.com" will be detected, so +// applications can allow user to click on those characters to activate +// the link, even the PDF doesn't come with link annotations. +// +// FPDFLink_CloseWebLinks must be called to release resources. +// +FPDF_EXPORT FPDF_PAGELINK FPDF_CALLCONV +FPDFLink_LoadWebLinks(FPDF_TEXTPAGE text_page); + +// Function: FPDFLink_CountWebLinks +// Count number of detected web links. +// Parameters: +// link_page - Handle returned by FPDFLink_LoadWebLinks. +// Return Value: +// Number of detected web links. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFLink_CountWebLinks(FPDF_PAGELINK link_page); + +// Function: FPDFLink_GetURL +// Fetch the URL information for a detected web link. +// Parameters: +// link_page - Handle returned by FPDFLink_LoadWebLinks. +// link_index - Zero-based index for the link. +// buffer - A unicode buffer for the result. +// buflen - Number of 16-bit code units (not bytes) for the +// buffer, including an additional terminator. +// Return Value: +// If |buffer| is NULL or |buflen| is zero, return the number of 16-bit +// code units (not bytes) needed to buffer the result (an additional +// terminator is included in this count). +// Otherwise, copy the result into |buffer|, truncating at |buflen| if +// the result is too large to fit, and return the number of 16-bit code +// units actually copied into the buffer (the additional terminator is +// also included in this count). +// If |link_index| does not correspond to a valid link, then the result +// is an empty string. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFLink_GetURL(FPDF_PAGELINK link_page, + int link_index, + unsigned short* buffer, + int buflen); + +// Function: FPDFLink_CountRects +// Count number of rectangular areas for the link. +// Parameters: +// link_page - Handle returned by FPDFLink_LoadWebLinks. +// link_index - Zero-based index for the link. +// Return Value: +// Number of rectangular areas for the link. If |link_index| does +// not correspond to a valid link, then 0 is returned. +// +FPDF_EXPORT int FPDF_CALLCONV FPDFLink_CountRects(FPDF_PAGELINK link_page, + int link_index); + +// Function: FPDFLink_GetRect +// Fetch the boundaries of a rectangle for a link. +// Parameters: +// link_page - Handle returned by FPDFLink_LoadWebLinks. +// link_index - Zero-based index for the link. +// rect_index - Zero-based index for a rectangle. +// left - Pointer to a double value receiving the rectangle +// left boundary. +// top - Pointer to a double value receiving the rectangle +// top boundary. +// right - Pointer to a double value receiving the rectangle +// right boundary. +// bottom - Pointer to a double value receiving the rectangle +// bottom boundary. +// Return Value: +// On success, return TRUE and fill in |left|, |top|, |right|, and +// |bottom|. If |link_page| is invalid or if |link_index| does not +// correspond to a valid link, then return FALSE, and the out +// parameters remain unmodified. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFLink_GetRect(FPDF_PAGELINK link_page, + int link_index, + int rect_index, + double* left, + double* top, + double* right, + double* bottom); + +// Experimental API. +// Function: FPDFLink_GetTextRange +// Fetch the start char index and char count for a link. +// Parameters: +// link_page - Handle returned by FPDFLink_LoadWebLinks. +// link_index - Zero-based index for the link. +// start_char_index - pointer to int receiving the start char index +// char_count - pointer to int receiving the char count +// Return Value: +// On success, return TRUE and fill in |start_char_index| and +// |char_count|. if |link_page| is invalid or if |link_index| does +// not correspond to a valid link, then return FALSE and the out +// parameters remain unmodified. +// +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFLink_GetTextRange(FPDF_PAGELINK link_page, + int link_index, + int* start_char_index, + int* char_count); + +// Function: FPDFLink_CloseWebLinks +// Release resources used by weblink feature. +// Parameters: +// link_page - Handle returned by FPDFLink_LoadWebLinks. +// Return Value: +// None. +// +FPDF_EXPORT void FPDF_CALLCONV FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_TEXT_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_thumbnail.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_thumbnail.h new file mode 100644 index 0000000..27b6d49 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_thumbnail.h @@ -0,0 +1,59 @@ +// Copyright 2019 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PUBLIC_FPDF_THUMBNAIL_H_ +#define PUBLIC_FPDF_THUMBNAIL_H_ + +#include + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Experimental API. +// Gets the decoded data from the thumbnail of |page| if it exists. +// This only modifies |buffer| if |buflen| less than or equal to the +// size of the decoded data. Returns the size of the decoded +// data or 0 if thumbnail DNE. Optional, pass null to just retrieve +// the size of the buffer needed. +// +// page - handle to a page. +// buffer - buffer for holding the decoded image data. +// buflen - length of the buffer in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFPage_GetDecodedThumbnailData(FPDF_PAGE page, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Gets the raw data from the thumbnail of |page| if it exists. +// This only modifies |buffer| if |buflen| is less than or equal to +// the size of the raw data. Returns the size of the raw data or 0 +// if thumbnail DNE. Optional, pass null to just retrieve the size +// of the buffer needed. +// +// page - handle to a page. +// buffer - buffer for holding the raw image data. +// buflen - length of the buffer in bytes. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDFPage_GetRawThumbnailData(FPDF_PAGE page, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Returns the thumbnail of |page| as a FPDF_BITMAP. Returns a nullptr +// if unable to access the thumbnail's stream. +// +// page - handle to a page. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV +FPDFPage_GetThumbnailAsBitmap(FPDF_PAGE page); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_THUMBNAIL_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_transformpage.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_transformpage.h new file mode 100644 index 0000000..3df743b --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdf_transformpage.h @@ -0,0 +1,278 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef PUBLIC_FPDF_TRANSFORMPAGE_H_ +#define PUBLIC_FPDF_TRANSFORMPAGE_H_ + +// NOLINTNEXTLINE(build/include) +#include "fpdfview.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Set "MediaBox" entry to the page dictionary. +// +// page - Handle to a page. +// left - The left of the rectangle. +// bottom - The bottom of the rectangle. +// right - The right of the rectangle. +// top - The top of the rectangle. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetMediaBox(FPDF_PAGE page, + float left, + float bottom, + float right, + float top); + +// Set "CropBox" entry to the page dictionary. +// +// page - Handle to a page. +// left - The left of the rectangle. +// bottom - The bottom of the rectangle. +// right - The right of the rectangle. +// top - The top of the rectangle. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetCropBox(FPDF_PAGE page, + float left, + float bottom, + float right, + float top); + +// Set "BleedBox" entry to the page dictionary. +// +// page - Handle to a page. +// left - The left of the rectangle. +// bottom - The bottom of the rectangle. +// right - The right of the rectangle. +// top - The top of the rectangle. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetBleedBox(FPDF_PAGE page, + float left, + float bottom, + float right, + float top); + +// Set "TrimBox" entry to the page dictionary. +// +// page - Handle to a page. +// left - The left of the rectangle. +// bottom - The bottom of the rectangle. +// right - The right of the rectangle. +// top - The top of the rectangle. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetTrimBox(FPDF_PAGE page, + float left, + float bottom, + float right, + float top); + +// Set "ArtBox" entry to the page dictionary. +// +// page - Handle to a page. +// left - The left of the rectangle. +// bottom - The bottom of the rectangle. +// right - The right of the rectangle. +// top - The top of the rectangle. +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetArtBox(FPDF_PAGE page, + float left, + float bottom, + float right, + float top); + +// Get "MediaBox" entry from the page dictionary. +// +// page - Handle to a page. +// left - Pointer to a float value receiving the left of the rectangle. +// bottom - Pointer to a float value receiving the bottom of the rectangle. +// right - Pointer to a float value receiving the right of the rectangle. +// top - Pointer to a float value receiving the top of the rectangle. +// +// On success, return true and write to the out parameters. Otherwise return +// false and leave the out parameters unmodified. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GetMediaBox(FPDF_PAGE page, + float* left, + float* bottom, + float* right, + float* top); + +// Get "CropBox" entry from the page dictionary. +// +// page - Handle to a page. +// left - Pointer to a float value receiving the left of the rectangle. +// bottom - Pointer to a float value receiving the bottom of the rectangle. +// right - Pointer to a float value receiving the right of the rectangle. +// top - Pointer to a float value receiving the top of the rectangle. +// +// On success, return true and write to the out parameters. Otherwise return +// false and leave the out parameters unmodified. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GetCropBox(FPDF_PAGE page, + float* left, + float* bottom, + float* right, + float* top); + +// Get "BleedBox" entry from the page dictionary. +// +// page - Handle to a page. +// left - Pointer to a float value receiving the left of the rectangle. +// bottom - Pointer to a float value receiving the bottom of the rectangle. +// right - Pointer to a float value receiving the right of the rectangle. +// top - Pointer to a float value receiving the top of the rectangle. +// +// On success, return true and write to the out parameters. Otherwise return +// false and leave the out parameters unmodified. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GetBleedBox(FPDF_PAGE page, + float* left, + float* bottom, + float* right, + float* top); + +// Get "TrimBox" entry from the page dictionary. +// +// page - Handle to a page. +// left - Pointer to a float value receiving the left of the rectangle. +// bottom - Pointer to a float value receiving the bottom of the rectangle. +// right - Pointer to a float value receiving the right of the rectangle. +// top - Pointer to a float value receiving the top of the rectangle. +// +// On success, return true and write to the out parameters. Otherwise return +// false and leave the out parameters unmodified. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GetTrimBox(FPDF_PAGE page, + float* left, + float* bottom, + float* right, + float* top); + +// Get "ArtBox" entry from the page dictionary. +// +// page - Handle to a page. +// left - Pointer to a float value receiving the left of the rectangle. +// bottom - Pointer to a float value receiving the bottom of the rectangle. +// right - Pointer to a float value receiving the right of the rectangle. +// top - Pointer to a float value receiving the top of the rectangle. +// +// On success, return true and write to the out parameters. Otherwise return +// false and leave the out parameters unmodified. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GetArtBox(FPDF_PAGE page, + float* left, + float* bottom, + float* right, + float* top); + +// Apply transforms to |page|. +// +// If |matrix| is provided it will be applied to transform the page. +// If |clipRect| is provided it will be used to clip the resulting page. +// If neither |matrix| or |clipRect| are provided this method returns |false|. +// Returns |true| if transforms are applied. +// +// This function will transform the whole page, and would take effect to all the +// objects in the page. +// +// page - Page handle. +// matrix - Transform matrix. +// clipRect - Clipping rectangle. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPage_TransFormWithClip(FPDF_PAGE page, + const FS_MATRIX* matrix, + const FS_RECTF* clipRect); + +// Transform (scale, rotate, shear, move) the clip path of page object. +// page_object - Handle to a page object. Returned by +// FPDFPageObj_NewImageObj(). +// +// a - The coefficient "a" of the matrix. +// b - The coefficient "b" of the matrix. +// c - The coefficient "c" of the matrix. +// d - The coefficient "d" of the matrix. +// e - The coefficient "e" of the matrix. +// f - The coefficient "f" of the matrix. +FPDF_EXPORT void FPDF_CALLCONV +FPDFPageObj_TransformClipPath(FPDF_PAGEOBJECT page_object, + double a, + double b, + double c, + double d, + double e, + double f); + +// Experimental API. +// Get the clip path of the page object. +// +// page object - Handle to a page object. Returned by e.g. +// FPDFPage_GetObject(). +// +// Returns the handle to the clip path, or NULL on failure. The caller does not +// take ownership of the returned FPDF_CLIPPATH. Instead, it remains valid until +// FPDF_ClosePage() is called for the page containing |page_object|. +FPDF_EXPORT FPDF_CLIPPATH FPDF_CALLCONV +FPDFPageObj_GetClipPath(FPDF_PAGEOBJECT page_object); + +// Experimental API. +// Get number of paths inside |clip_path|. +// +// clip_path - handle to a clip_path. +// +// Returns the number of objects in |clip_path| or -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV FPDFClipPath_CountPaths(FPDF_CLIPPATH clip_path); + +// Experimental API. +// Get number of segments inside one path of |clip_path|. +// +// clip_path - handle to a clip_path. +// path_index - index into the array of paths of the clip path. +// +// Returns the number of segments or -1 on failure. +FPDF_EXPORT int FPDF_CALLCONV +FPDFClipPath_CountPathSegments(FPDF_CLIPPATH clip_path, int path_index); + +// Experimental API. +// Get segment in one specific path of |clip_path| at index. +// +// clip_path - handle to a clip_path. +// path_index - the index of a path. +// segment_index - the index of a segment. +// +// Returns the handle to the segment, or NULL on failure. The caller does not +// take ownership of the returned FPDF_PATHSEGMENT. Instead, it remains valid +// until FPDF_ClosePage() is called for the page containing |clip_path|. +FPDF_EXPORT FPDF_PATHSEGMENT FPDF_CALLCONV +FPDFClipPath_GetPathSegment(FPDF_CLIPPATH clip_path, + int path_index, + int segment_index); + +// Create a new clip path, with a rectangle inserted. +// +// Caller takes ownership of the returned FPDF_CLIPPATH. It should be freed with +// FPDF_DestroyClipPath(). +// +// left - The left of the clip box. +// bottom - The bottom of the clip box. +// right - The right of the clip box. +// top - The top of the clip box. +FPDF_EXPORT FPDF_CLIPPATH FPDF_CALLCONV FPDF_CreateClipPath(float left, + float bottom, + float right, + float top); + +// Destroy the clip path. +// +// clipPath - A handle to the clip path. It will be invalid after this call. +FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyClipPath(FPDF_CLIPPATH clipPath); + +// Clip the page content, the page content that outside the clipping region +// become invisible. +// +// A clip path will be inserted before the page content stream or content array. +// In this way, the page content will be clipped by this clip path. +// +// page - A page handle. +// clipPath - A handle to the clip path. (Does not take ownership.) +FPDF_EXPORT void FPDF_CALLCONV FPDFPage_InsertClipPath(FPDF_PAGE page, + FPDF_CLIPPATH clipPath); + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDF_TRANSFORMPAGE_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdfview.h b/eat-rs/vendor/pdfium-macos-arm64/include/fpdfview.h new file mode 100644 index 0000000..8dd66fa --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdfview.h @@ -0,0 +1,1505 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +// This is the main header file for embedders of PDFium. It provides APIs to +// initialize the library, load documents, and render pages, amongst other +// things. +// +// NOTE: None of the PDFium APIs are thread-safe. They expect to be called +// from a single thread. Barring that, embedders are required to ensure (via +// a mutex or similar) that only a single PDFium call can be made at a time. +// +// NOTE: External docs refer to this file as "fpdfview.h", so do not rename +// despite lack of consistency with other public files. + +#ifndef PUBLIC_FPDFVIEW_H_ +#define PUBLIC_FPDFVIEW_H_ + +// clang-format off + +#include + +#if defined(_WIN32) && !defined(__WINDOWS__) +#include +#endif + +// PDF object types +#define FPDF_OBJECT_UNKNOWN 0 +#define FPDF_OBJECT_BOOLEAN 1 +#define FPDF_OBJECT_NUMBER 2 +#define FPDF_OBJECT_STRING 3 +#define FPDF_OBJECT_NAME 4 +#define FPDF_OBJECT_ARRAY 5 +#define FPDF_OBJECT_DICTIONARY 6 +#define FPDF_OBJECT_STREAM 7 +#define FPDF_OBJECT_NULLOBJ 8 +#define FPDF_OBJECT_REFERENCE 9 + +// PDF text rendering modes +typedef enum { + FPDF_TEXTRENDERMODE_UNKNOWN = -1, + FPDF_TEXTRENDERMODE_FILL = 0, + FPDF_TEXTRENDERMODE_STROKE = 1, + FPDF_TEXTRENDERMODE_FILL_STROKE = 2, + FPDF_TEXTRENDERMODE_INVISIBLE = 3, + FPDF_TEXTRENDERMODE_FILL_CLIP = 4, + FPDF_TEXTRENDERMODE_STROKE_CLIP = 5, + FPDF_TEXTRENDERMODE_FILL_STROKE_CLIP = 6, + FPDF_TEXTRENDERMODE_CLIP = 7, + FPDF_TEXTRENDERMODE_LAST = FPDF_TEXTRENDERMODE_CLIP, +} FPDF_TEXT_RENDERMODE; + +// PDF types - use incomplete types (never completed) to force API type safety. +typedef struct fpdf_action_t__* FPDF_ACTION; +typedef struct fpdf_annotation_t__* FPDF_ANNOTATION; +typedef struct fpdf_attachment_t__* FPDF_ATTACHMENT; +typedef struct fpdf_avail_t__* FPDF_AVAIL; +typedef struct fpdf_bitmap_t__* FPDF_BITMAP; +typedef struct fpdf_bookmark_t__* FPDF_BOOKMARK; +typedef struct fpdf_clippath_t__* FPDF_CLIPPATH; +typedef struct fpdf_dest_t__* FPDF_DEST; +typedef struct fpdf_document_t__* FPDF_DOCUMENT; +typedef struct fpdf_font_t__* FPDF_FONT; +typedef struct fpdf_form_handle_t__* FPDF_FORMHANDLE; +typedef const struct fpdf_glyphpath_t__* FPDF_GLYPHPATH; +typedef struct fpdf_javascript_action_t* FPDF_JAVASCRIPT_ACTION; +typedef struct fpdf_link_t__* FPDF_LINK; +typedef struct fpdf_page_t__* FPDF_PAGE; +typedef struct fpdf_pagelink_t__* FPDF_PAGELINK; +typedef struct fpdf_pageobject_t__* FPDF_PAGEOBJECT; // (text, path, etc.) +typedef struct fpdf_pageobjectmark_t__* FPDF_PAGEOBJECTMARK; +typedef const struct fpdf_pagerange_t__* FPDF_PAGERANGE; +typedef const struct fpdf_pathsegment_t* FPDF_PATHSEGMENT; +typedef struct fpdf_schhandle_t__* FPDF_SCHHANDLE; +typedef const struct fpdf_signature_t__* FPDF_SIGNATURE; +typedef void* FPDF_SKIA_CANVAS; // Passed into Skia as an SkCanvas. +typedef struct fpdf_structelement_t__* FPDF_STRUCTELEMENT; +typedef const struct fpdf_structelement_attr_t__* FPDF_STRUCTELEMENT_ATTR; +typedef const struct fpdf_structelement_attr_value_t__* +FPDF_STRUCTELEMENT_ATTR_VALUE; +typedef struct fpdf_structtree_t__* FPDF_STRUCTTREE; +typedef struct fpdf_textpage_t__* FPDF_TEXTPAGE; +typedef struct fpdf_widget_t__* FPDF_WIDGET; +typedef struct fpdf_xobject_t__* FPDF_XOBJECT; + +// Basic data types +typedef int FPDF_BOOL; +typedef int FPDF_RESULT; +typedef unsigned long FPDF_DWORD; +typedef float FS_FLOAT; + +// Duplex types +typedef enum _FPDF_DUPLEXTYPE_ { + DuplexUndefined = 0, + Simplex, + DuplexFlipShortEdge, + DuplexFlipLongEdge +} FPDF_DUPLEXTYPE; + +// String types +typedef unsigned short FPDF_WCHAR; + +// The public PDFium API uses three types of strings: byte string, wide string +// (UTF-16LE encoded), and platform dependent string. + +// Public PDFium API type for byte strings. +typedef const char* FPDF_BYTESTRING; + +// The public PDFium API always uses UTF-16LE encoded wide strings, each +// character uses 2 bytes (except surrogation), with the low byte first. +typedef const FPDF_WCHAR* FPDF_WIDESTRING; + +// Structure for persisting a string beyond the duration of a callback. +// Note: although represented as a char*, string may be interpreted as +// a UTF-16LE formated string. Used only by XFA callbacks. +typedef struct FPDF_BSTR_ { + char* str; // String buffer, manipulate only with FPDF_BStr_* methods. + int len; // Length of the string, in bytes. +} FPDF_BSTR; + +// For Windows programmers: In most cases it's OK to treat FPDF_WIDESTRING as a +// Windows unicode string, however, special care needs to be taken if you +// expect to process Unicode larger than 0xffff. +// +// For Linux/Unix programmers: most compiler/library environments use 4 bytes +// for a Unicode character, and you have to convert between FPDF_WIDESTRING and +// system wide string by yourself. +typedef const char* FPDF_STRING; + +// Matrix for transformation, in the form [a b c d e f], equivalent to: +// | a b 0 | +// | c d 0 | +// | e f 1 | +// +// Translation is performed with [1 0 0 1 tx ty]. +// Scaling is performed with [sx 0 0 sy 0 0]. +// See PDF Reference 1.7, 4.2.2 Common Transformations for more. +typedef struct _FS_MATRIX_ { + float a; + float b; + float c; + float d; + float e; + float f; +} FS_MATRIX; + +// Rectangle area(float) in device or page coordinate system. +typedef struct _FS_RECTF_ { + // The x-coordinate of the left-top corner. + float left; + // The y-coordinate of the left-top corner. + float top; + // The x-coordinate of the right-bottom corner. + float right; + // The y-coordinate of the right-bottom corner. + float bottom; +} * FS_LPRECTF, FS_RECTF; + +// Const Pointer to FS_RECTF structure. +typedef const FS_RECTF* FS_LPCRECTF; + +// Rectangle size. Coordinate system agnostic. +typedef struct FS_SIZEF_ { + float width; + float height; +} * FS_LPSIZEF, FS_SIZEF; + +// Const Pointer to FS_SIZEF structure. +typedef const FS_SIZEF* FS_LPCSIZEF; + +// 2D Point. Coordinate system agnostic. +typedef struct FS_POINTF_ { + float x; + float y; +} * FS_LPPOINTF, FS_POINTF; + +// Const Pointer to FS_POINTF structure. +typedef const FS_POINTF* FS_LPCPOINTF; + +typedef struct _FS_QUADPOINTSF { + FS_FLOAT x1; + FS_FLOAT y1; + FS_FLOAT x2; + FS_FLOAT y2; + FS_FLOAT x3; + FS_FLOAT y3; + FS_FLOAT x4; + FS_FLOAT y4; +} FS_QUADPOINTSF; + +// Annotation enums. +typedef int FPDF_ANNOTATION_SUBTYPE; +typedef int FPDF_ANNOT_APPEARANCEMODE; + +// Dictionary value types. +typedef int FPDF_OBJECT_TYPE; + +#if defined(WIN32) +#if defined(FPDF_IMPLEMENTATION) +#define FPDF_EXPORT __declspec(dllexport) +#else +#define FPDF_EXPORT __declspec(dllimport) +#endif // defined(FPDF_IMPLEMENTATION) +#else +#if defined(FPDF_IMPLEMENTATION) +#define FPDF_EXPORT __attribute__((visibility("default"))) +#else +#define FPDF_EXPORT +#endif // defined(FPDF_IMPLEMENTATION) +#endif // defined(WIN32) + +#if defined(WIN32) && defined(FPDFSDK_EXPORTS) +#define FPDF_CALLCONV __stdcall +#else +#define FPDF_CALLCONV +#endif + +// Exported Functions +#ifdef __cplusplus +extern "C" { +#endif + +// PDF renderer types - Experimental. +// Selection of 2D graphics library to use for rendering to FPDF_BITMAPs. +typedef enum { + // Anti-Grain Geometry - https://sourceforge.net/projects/agg/ + FPDF_RENDERERTYPE_AGG = 0, + // Skia - https://skia.org/ + FPDF_RENDERERTYPE_SKIA = 1, +} FPDF_RENDERER_TYPE; + +// PDF font library types - Experimental. +// Selection of font backend library to use. +typedef enum { + // FreeType - https://freetype.org/ + FPDF_FONTBACKENDTYPE_FREETYPE = 0, + // Fontations - https://github.com/googlefonts/fontations/ + FPDF_FONTBACKENDTYPE_FONTATIONS = 1, +} FPDF_FONT_BACKEND_TYPE; + +// Process-wide options for initializing the library. +typedef struct FPDF_LIBRARY_CONFIG_ { + // Version number of the interface. Currently must be 2. + // Support for version 1 will be deprecated in the future. + int version; + + // Array of paths to scan in place of the defaults when using built-in + // FXGE font loading code. The array is terminated by a NULL pointer. + // The Array may be NULL itself to use the default paths. May be ignored + // entirely depending upon the platform. + const char** m_pUserFontPaths; + + // Version 2. + + // Pointer to the v8::Isolate to use, or NULL to force PDFium to create one. + void* m_pIsolate; + + // The embedder data slot to use in the v8::Isolate to store PDFium's + // per-isolate data. The value needs to be in the range + // [0, |v8::Internals::kNumIsolateDataLots|). Note that 0 is fine for most + // embedders. + unsigned int m_v8EmbedderSlot; + + // Version 3 - Experimental. + + // Pointer to the V8::Platform to use. + void* m_pPlatform; + + // Version 4 - Experimental. + + // Explicit specification of 2D graphics rendering library to use. + // |m_RendererType| must be a valid value for |FPDF_LIBRARY_CONFIG| versions + // of this level or higher, or else the initialization will fail with an + // immediate crash. + // Note that use of a specified |FPDF_RENDERER_TYPE| value for which the + // corresponding 2D graphics rendering library is not included in the build + // will similarly fail with an immediate crash. + FPDF_RENDERER_TYPE m_RendererType; + + // Version 5 - Experimental. + + // Explicit specification of font library to use. + // |m_FontLibraryType| must be a valid value for |FPDF_LIBRARY_CONFIG| + // versions of this level or higher, or else the initialization will fail with + // an immediate crash. + // Note that use of a specified |FPDF_FONT_BACKEND_TYPE| value for which the + // corresponding font library is not included in the build will similarly fail + // with an immediate crash. + FPDF_FONT_BACKEND_TYPE m_FontLibraryType; + + // Version 6 - Experimental. + + // Boolean to specify whether the experimental PDF 2.0 /BrotliDecode filter + // is enabled. For setting the bool to true to have an effect, PDFium must be + // built with |PDF_ENABLE_BROTLI|. + FPDF_BOOL m_BrotliEnabled; + + // Version 7 - Experimental. + + // Boolean to specify whether PDFium creates a dedicated v8::Isolate for each + // document. When true, |m_pIsolate| must be NULL. + FPDF_BOOL m_IsolatePerDocument; +} FPDF_LIBRARY_CONFIG; + +// Function: FPDF_InitLibraryWithConfig +// Initialize the PDFium library and allocate global resources for it. +// Parameters: +// config - configuration information as above. +// Return value: +// None. +// Comments: +// You have to call this function before you can call any PDF +// processing functions. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config); + +// Function: FPDF_InitLibrary +// Initialize the PDFium library (alternative form). +// Parameters: +// None +// Return value: +// None. +// Comments: +// Convenience function to call FPDF_InitLibraryWithConfig() with a +// default configuration for backwards compatibility purposes. New +// code should call FPDF_InitLibraryWithConfig() instead. This will +// be deprecated in the future. +FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibrary(); + +// Function: FPDF_DestroyLibrary +// Release global resources allocated to the PDFium library by +// FPDF_InitLibrary() or FPDF_InitLibraryWithConfig(). +// Parameters: +// None. +// Return value: +// None. +// Comments: +// After this function is called, you must not call any PDF +// processing functions. +// +// Calling this function does not automatically close other +// objects. It is recommended to close other objects before +// closing the library with this function. +FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary(); + +// Policy for accessing the local machine time. +#define FPDF_POLICY_MACHINETIME_ACCESS 0 + +// Function: FPDF_SetSandBoxPolicy +// Set the policy for the sandbox environment. +// Parameters: +// policy - The specified policy for setting, for example: +// FPDF_POLICY_MACHINETIME_ACCESS. +// enable - True to enable, false to disable the policy. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_SetSandBoxPolicy(FPDF_DWORD policy, + FPDF_BOOL enable); + +#if defined(_WIN32) +// Experimental API. +// Function: FPDF_SetPrintMode +// Set printing mode when printing on Windows. +// Parameters: +// mode - FPDF_PRINTMODE_EMF to output EMF (default) +// FPDF_PRINTMODE_TEXTONLY to output text only (for charstream +// devices) +// FPDF_PRINTMODE_POSTSCRIPT2 to output level 2 PostScript into +// EMF as a series of GDI comments. +// FPDF_PRINTMODE_POSTSCRIPT3 to output level 3 PostScript into +// EMF as a series of GDI comments. +// FPDF_PRINTMODE_POSTSCRIPT2_PASSTHROUGH to output level 2 +// PostScript via ExtEscape() in PASSTHROUGH mode. +// FPDF_PRINTMODE_POSTSCRIPT3_PASSTHROUGH to output level 3 +// PostScript via ExtEscape() in PASSTHROUGH mode. +// FPDF_PRINTMODE_EMF_IMAGE_MASKS to output EMF, with more +// efficient processing of documents containing image masks. +// FPDF_PRINTMODE_POSTSCRIPT3_TYPE42 to output level 3 +// PostScript with embedded Type 42 fonts, when applicable, into +// EMF as a series of GDI comments. +// FPDF_PRINTMODE_POSTSCRIPT3_TYPE42_PASSTHROUGH to output level +// 3 PostScript with embedded Type 42 fonts, when applicable, +// via ExtEscape() in PASSTHROUGH mode. +// Return value: +// True if successful, false if unsuccessful (typically invalid input). +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_SetPrintMode(int mode); +#endif // defined(_WIN32) + +// Function: FPDF_LoadDocument +// Open and load a PDF document. +// Parameters: +// file_path - Path to the PDF file (including extension). +// password - A string used as the password for the PDF file. +// If no password is needed, empty or NULL can be used. +// See comments below regarding the encoding. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// Loaded document can be closed by FPDF_CloseDocument(). +// If this function fails, you can use FPDF_GetLastError() to retrieve +// the reason why it failed. +// +// The encoding for |file_path| is UTF-8. +// +// The encoding for |password| can be either UTF-8 or Latin-1. PDFs, +// depending on the security handler revision, will only accept one or +// the other encoding. If |password|'s encoding and the PDF's expected +// encoding do not match, FPDF_LoadDocument() will automatically +// convert |password| to the other encoding. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadDocument(FPDF_STRING file_path, FPDF_BYTESTRING password); + +// Function: FPDF_LoadMemDocument +// Open and load a PDF document from memory. +// Parameters: +// data_buf - Pointer to a buffer containing the PDF document. +// size - Number of bytes in the PDF document. +// password - A string used as the password for the PDF file. +// If no password is needed, empty or NULL can be used. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// The memory buffer must remain valid when the document is open. +// The loaded document can be closed by FPDF_CloseDocument. +// If this function fails, you can use FPDF_GetLastError() to retrieve +// the reason why it failed. +// +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +// Notes: +// If PDFium is built with the XFA module, the application should call +// FPDF_LoadXFA() function after the PDF document loaded to support XFA +// fields defined in the fpdfformfill.h file. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadMemDocument(const void* data_buf, int size, FPDF_BYTESTRING password); + +// Experimental API. +// Function: FPDF_LoadMemDocument64 +// Open and load a PDF document from memory. +// Parameters: +// data_buf - Pointer to a buffer containing the PDF document. +// size - Number of bytes in the PDF document. +// password - A string used as the password for the PDF file. +// If no password is needed, empty or NULL can be used. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// The memory buffer must remain valid when the document is open. +// The loaded document can be closed by FPDF_CloseDocument. +// If this function fails, you can use FPDF_GetLastError() to retrieve +// the reason why it failed. +// +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +// Notes: +// If PDFium is built with the XFA module, the application should call +// FPDF_LoadXFA() function after the PDF document loaded to support XFA +// fields defined in the fpdfformfill.h file. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadMemDocument64(const void* data_buf, + size_t size, + FPDF_BYTESTRING password); + +// Structure for custom file access. +typedef struct { + // File length, in bytes. + unsigned long m_FileLen; + + // A function pointer for getting a block of data from a specific position. + // Position is specified by byte offset from the beginning of the file. + // The pointer to the buffer is never NULL and the size is never 0. + // The position and size will never go out of range of the file length. + // It may be possible for PDFium to call this function multiple times for + // the same position. + // Return value: should be non-zero if successful, zero for error. + int (*m_GetBlock)(void* param, + unsigned long position, + unsigned char* pBuf, + unsigned long size); + + // A custom pointer for all implementation specific data. This pointer will + // be used as the first parameter to the m_GetBlock callback. + void* m_Param; +} FPDF_FILEACCESS; + +// Structure for file reading or writing (I/O). +// +// Note: This is a handler and should be implemented by callers, +// and is only used from XFA. +typedef struct FPDF_FILEHANDLER_ { + // User-defined data. + // Note: Callers can use this field to track controls. + void* clientData; + + // Callback function to release the current file stream object. + // + // Parameters: + // clientData - Pointer to user-defined data. + // Returns: + // None. + void (*Release)(void* clientData); + + // Callback function to retrieve the current file stream size. + // + // Parameters: + // clientData - Pointer to user-defined data. + // Returns: + // Size of file stream. + FPDF_DWORD (*GetSize)(void* clientData); + + // Callback function to read data from the current file stream. + // + // Parameters: + // clientData - Pointer to user-defined data. + // offset - Offset position starts from the beginning of file + // stream. This parameter indicates reading position. + // buffer - Memory buffer to store data which are read from + // file stream. This parameter should not be NULL. + // size - Size of data which should be read from file stream, + // in bytes. The buffer indicated by |buffer| must be + // large enough to store specified data. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*ReadBlock)(void* clientData, + FPDF_DWORD offset, + void* buffer, + FPDF_DWORD size); + + // Callback function to write data into the current file stream. + // + // Parameters: + // clientData - Pointer to user-defined data. + // offset - Offset position starts from the beginning of file + // stream. This parameter indicates writing position. + // buffer - Memory buffer contains data which is written into + // file stream. This parameter should not be NULL. + // size - Size of data which should be written into file + // stream, in bytes. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*WriteBlock)(void* clientData, + FPDF_DWORD offset, + const void* buffer, + FPDF_DWORD size); + // Callback function to flush all internal accessing buffers. + // + // Parameters: + // clientData - Pointer to user-defined data. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*Flush)(void* clientData); + + // Callback function to change file size. + // + // Description: + // This function is called under writing mode usually. Implementer + // can determine whether to realize it based on application requests. + // Parameters: + // clientData - Pointer to user-defined data. + // size - New size of file stream, in bytes. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*Truncate)(void* clientData, FPDF_DWORD size); +} FPDF_FILEHANDLER; + +// Function: FPDF_LoadCustomDocument +// Load PDF document from a custom access descriptor. +// Parameters: +// pFileAccess - A structure for accessing the file. +// password - Optional password for decrypting the PDF file. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// The application must keep the file resources |pFileAccess| points to +// valid until the returned FPDF_DOCUMENT is closed. |pFileAccess| +// itself does not need to outlive the FPDF_DOCUMENT. +// +// The loaded document can be closed with FPDF_CloseDocument(). +// +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +// Notes: +// If PDFium is built with the XFA module, the application should call +// FPDF_LoadXFA() function after the PDF document loaded to support XFA +// fields defined in the fpdfformfill.h file. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadCustomDocument(FPDF_FILEACCESS* pFileAccess, FPDF_BYTESTRING password); + +// Function: FPDF_GetFileVersion +// Get the file version of the given PDF document. +// Parameters: +// doc - Handle to a document. +// fileVersion - The PDF file version. File version: 14 for 1.4, 15 +// for 1.5, ... +// Return value: +// True if succeeds, false otherwise. +// Comments: +// If the document was created by FPDF_CreateNewDocument, +// then this function will always fail. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetFileVersion(FPDF_DOCUMENT doc, + int* fileVersion); + +#define FPDF_ERR_SUCCESS 0 // No error. +#define FPDF_ERR_UNKNOWN 1 // Unknown error. +#define FPDF_ERR_FILE 2 // File not found or could not be opened. +#define FPDF_ERR_FORMAT 3 // File not in PDF format or corrupted. +#define FPDF_ERR_PASSWORD 4 // Password required or incorrect password. +#define FPDF_ERR_SECURITY 5 // Unsupported security scheme. +#define FPDF_ERR_PAGE 6 // Page not found or content error. +#ifdef PDF_ENABLE_XFA +#define FPDF_ERR_XFALOAD 7 // Load XFA error. +#define FPDF_ERR_XFALAYOUT 8 // Layout XFA error. +#endif // PDF_ENABLE_XFA + +// Function: FPDF_GetLastError +// Get last error code when a function fails. +// Parameters: +// None. +// Return value: +// A 32-bit integer indicating error code as defined above. +// Comments: +// If the previous SDK call succeeded, the return value of this +// function is not defined. This function only works in conjunction +// with APIs that mention FPDF_GetLastError() in their documentation. +FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetLastError(); + +// Experimental API. +// Function: FPDF_DocumentHasValidCrossReferenceTable +// Whether the document's cross reference table is valid or not. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// True if the PDF parser did not encounter problems parsing the cross +// reference table. False if the parser could not parse the cross +// reference table and the table had to be rebuild from other data +// within the document. +// Comments: +// The return value can change over time as the PDF parser evolves. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_DocumentHasValidCrossReferenceTable(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_GetTrailerEnds +// Get the byte offsets of trailer ends. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument(). +// buffer - The address of a buffer that receives the +// byte offsets. +// length - The size, in ints, of |buffer|. +// Return value: +// Returns the number of ints in the buffer on success, 0 on error. +// +// |buffer| is an array of integers that describes the exact byte offsets of the +// trailer ends in the document. If |length| is less than the returned length, +// or |document| or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetTrailerEnds(FPDF_DOCUMENT document, + unsigned int* buffer, + unsigned long length); + +// Function: FPDF_GetDocPermissions +// Get file permission flags of the document. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// A 32-bit integer indicating permission flags. Please refer to the +// PDF Reference for detailed descriptions. If the document is not +// protected or was unlocked by the owner, 0xffffffff will be returned. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetDocPermissions(FPDF_DOCUMENT document); + +// Function: FPDF_GetDocUserPermissions +// Get user file permission flags of the document. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// A 32-bit integer indicating permission flags. Please refer to the +// PDF Reference for detailed descriptions. If the document is not +// protected, 0xffffffff will be returned. Always returns user +// permissions, even if the document was unlocked by the owner. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetDocUserPermissions(FPDF_DOCUMENT document); + +// Function: FPDF_GetSecurityHandlerRevision +// Get the revision for the security handler. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// The security handler revision number. Please refer to the PDF +// Reference for a detailed description. If the document is not +// protected, -1 will be returned. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_GetSecurityHandlerRevision(FPDF_DOCUMENT document); + +// Function: FPDF_GetPageCount +// Get total number of pages in the document. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument. +// Return value: +// Total number of pages in the document. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageCount(FPDF_DOCUMENT document); + +// Function: FPDF_LoadPage +// Load a page inside the document. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument +// page_index - Index number of the page. 0 for the first page. +// Return value: +// A handle to the loaded page, or NULL if page load fails. +// Comments: +// The loaded page can be rendered to devices using FPDF_RenderPage. +// The loaded page can be closed using FPDF_ClosePage. +FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDF_LoadPage(FPDF_DOCUMENT document, + int page_index); + +// Experimental API +// Function: FPDF_GetPageWidthF +// Get page width. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage(). +// Return value: +// Page width (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm). +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageWidthF(FPDF_PAGE page); + +// Function: FPDF_GetPageWidth +// Get page width. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// Return value: +// Page width (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm). +// Note: +// Prefer FPDF_GetPageWidthF() above. This will be deprecated in the +// future. +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageWidth(FPDF_PAGE page); + +// Experimental API +// Function: FPDF_GetPageHeightF +// Get page height. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage(). +// Return value: +// Page height (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm) +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageHeightF(FPDF_PAGE page); + +// Function: FPDF_GetPageHeight +// Get page height. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// Return value: +// Page height (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm) +// Note: +// Prefer FPDF_GetPageHeightF() above. This will be deprecated in the +// future. +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageHeight(FPDF_PAGE page); + +// Experimental API. +// Function: FPDF_GetPageBoundingBox +// Get the bounding box of the page. This is the intersection between +// its media box and its crop box. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// rect - Pointer to a rect to receive the page bounding box. +// On an error, |rect| won't be filled. +// Return value: +// True for success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetPageBoundingBox(FPDF_PAGE page, + FS_RECTF* rect); + +// Experimental API. +// Function: FPDF_GetPageSizeByIndexF +// Get the size of the page at the given index. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument(). +// page_index - Page index, zero for the first page. +// size - Pointer to a FS_SIZEF to receive the page size. +// (in points). +// Return value: +// Non-zero for success. 0 for error (document or page not found). +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_GetPageSizeByIndexF(FPDF_DOCUMENT document, + int page_index, + FS_SIZEF* size); + +// Function: FPDF_GetPageSizeByIndex +// Get the size of the page at the given index. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument. +// page_index - Page index, zero for the first page. +// width - Pointer to a double to receive the page width +// (in points). +// height - Pointer to a double to receive the page height +// (in points). +// Return value: +// Non-zero for success. 0 for error (document or page not found). +// Note: +// Prefer FPDF_GetPageSizeByIndexF() above. This will be deprecated in +// the future. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, + int page_index, + double* width, + double* height); + +// Page rendering flags. They can be combined with bit-wise OR. +// +// Set if annotations are to be rendered. +#define FPDF_ANNOT 0x01 +// Set if using text rendering optimized for LCD display. This flag will only +// take effect if anti-aliasing is enabled for text. +#define FPDF_LCD_TEXT 0x02 +// Don't use the native text output available on some platforms +#define FPDF_NO_NATIVETEXT 0x04 +// Grayscale output. +#define FPDF_GRAYSCALE 0x08 +// Obsolete, has no effect, retained for compatibility. +#define FPDF_DEBUG_INFO 0x80 +// Obsolete, has no effect, retained for compatibility. +#define FPDF_NO_CATCH 0x100 +// Limit image cache size. +#define FPDF_RENDER_LIMITEDIMAGECACHE 0x200 +// Always use halftone for image stretching. +#define FPDF_RENDER_FORCEHALFTONE 0x400 +// Render for printing. +#define FPDF_PRINTING 0x800 +// Set to disable anti-aliasing on text. This flag will also disable LCD +// optimization for text rendering. +#define FPDF_RENDER_NO_SMOOTHTEXT 0x1000 +// Set to disable anti-aliasing on images. +#define FPDF_RENDER_NO_SMOOTHIMAGE 0x2000 +// Set to disable anti-aliasing on paths. +#define FPDF_RENDER_NO_SMOOTHPATH 0x4000 +// Set whether to render in a reverse Byte order, this flag is only used when +// rendering to a bitmap. +#define FPDF_REVERSE_BYTE_ORDER 0x10 +// Set whether fill paths need to be stroked. This flag is only used when +// FPDF_COLORSCHEME is passed in, since with a single fill color for paths the +// boundaries of adjacent fill paths are less visible. +#define FPDF_CONVERT_FILL_TO_STROKE 0x20 + +// Struct for color scheme. +// Each should be a 32-bit value specifying the color, in 8888 ARGB format. +typedef struct FPDF_COLORSCHEME_ { + FPDF_DWORD path_fill_color; + FPDF_DWORD path_stroke_color; + FPDF_DWORD text_fill_color; + FPDF_DWORD text_stroke_color; +} FPDF_COLORSCHEME; + +#ifdef _WIN32 +// Function: FPDF_RenderPage +// Render contents of a page to a device (screen, bitmap, or printer). +// This function is only supported on Windows. +// Parameters: +// dc - Handle to the device context. +// page - Handle to the page. Returned by FPDF_LoadPage. +// start_x - Left pixel position of the display area in +// device coordinates. +// start_y - Top pixel position of the display area in device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// flags - 0 for normal display, or combination of flags +// defined above. +// Return value: +// Returns true if the page is rendered successfully, false otherwise. + +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_RenderPage(HDC dc, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); +#endif + +// Function: FPDF_RenderPageBitmap +// Render contents of a page to a device independent bitmap. +// Parameters: +// bitmap - Handle to the device independent bitmap (as the +// output buffer). The bitmap handle can be created +// by FPDFBitmap_Create or retrieved from an image +// object by FPDFImageObj_GetBitmap. +// page - Handle to the page. Returned by FPDF_LoadPage +// start_x - Left pixel position of the display area in +// bitmap coordinates. +// start_y - Top pixel position of the display area in bitmap +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// flags - 0 for normal display, or combination of the Page +// Rendering flags defined above. With the FPDF_ANNOT +// flag, it renders all annotations that do not require +// user-interaction, which are all annotations except +// widget and popup annotations. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); + +// Function: FPDF_RenderPageBitmapWithMatrix +// Render contents of a page to a device independent bitmap. +// Parameters: +// bitmap - Handle to the device independent bitmap (as the +// output buffer). The bitmap handle can be created +// by FPDFBitmap_Create or retrieved by +// FPDFImageObj_GetBitmap. +// page - Handle to the page. Returned by FPDF_LoadPage. +// matrix - The transform matrix, which must be invertible. +// See PDF Reference 1.7, 4.2.2 Common Transformations. +// clipping - The rect to clip to in device coords. +// flags - 0 for normal display, or combination of the Page +// Rendering flags defined above. With the FPDF_ANNOT +// flag, it renders all annotations that do not require +// user-interaction, which are all annotations except +// widget and popup annotations. +// Return value: +// None. Note that behavior is undefined if det of |matrix| is 0. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_RenderPageBitmapWithMatrix(FPDF_BITMAP bitmap, + FPDF_PAGE page, + const FS_MATRIX* matrix, + const FS_RECTF* clipping, + int flags); + +#if defined(PDF_USE_SKIA) +// Experimental API. +// Function: FPDF_RenderPageSkia +// Render contents of a page to a Skia SkCanvas. +// Parameters: +// canvas - SkCanvas to render to. +// page - Handle to the page. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageSkia(FPDF_SKIA_CANVAS canvas, + FPDF_PAGE page, + int size_x, + int size_y); +#endif + +// Function: FPDF_ClosePage +// Close a loaded PDF page. +// Parameters: +// page - Handle to the loaded page. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_ClosePage(FPDF_PAGE page); + +// Function: FPDF_CloseDocument +// Close a loaded PDF document. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseDocument(FPDF_DOCUMENT document); + +// Function: FPDF_DeviceToPage +// Convert the screen coordinates of a point to page coordinates. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// start_x - Left pixel position of the display area in +// device coordinates. +// start_y - Top pixel position of the display area in device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// device_x - X value in device coordinates to be converted. +// device_y - Y value in device coordinates to be converted. +// page_x - A pointer to a double receiving the converted X +// value in page coordinates. +// page_y - A pointer to a double receiving the converted Y +// value in page coordinates. +// Return value: +// Returns true if the conversion succeeds, and |page_x| and |page_y| +// successfully receives the converted coordinates. +// Comments: +// The page coordinate system has its origin at the left-bottom corner +// of the page, with the X-axis on the bottom going to the right, and +// the Y-axis on the left side going up. +// +// NOTE: this coordinate system can be altered when you zoom, scroll, +// or rotate a page, however, a point on the page should always have +// the same coordinate values in the page coordinate system. +// +// The device coordinate system is device dependent. For screen device, +// its origin is at the left-top corner of the window. However this +// origin can be altered by the Windows coordinate transformation +// utilities. +// +// You must make sure the start_x, start_y, size_x, size_y +// and rotate parameters have exactly same values as you used in +// the FPDF_RenderPage() function call. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_DeviceToPage(FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int device_x, + int device_y, + double* page_x, + double* page_y); + +// Function: FPDF_PageToDevice +// Convert the page coordinates of a point to screen coordinates. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// start_x - Left pixel position of the display area in +// device coordinates. +// start_y - Top pixel position of the display area in device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// page_x - X value in page coordinates. +// page_y - Y value in page coordinate. +// device_x - A pointer to an integer receiving the result X +// value in device coordinates. +// device_y - A pointer to an integer receiving the result Y +// value in device coordinates. +// Return value: +// Returns true if the conversion succeeds, and |device_x| and +// |device_y| successfully receives the converted coordinates. +// Comments: +// See comments for FPDF_DeviceToPage(). +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_PageToDevice(FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + double page_x, + double page_y, + int* device_x, + int* device_y); + +// Function: FPDFBitmap_Create +// Create a device independent bitmap (FXDIB). +// Parameters: +// width - The number of pixels in width for the bitmap. +// Must be greater than 0. +// height - The number of pixels in height for the bitmap. +// Must be greater than 0. +// alpha - A flag indicating whether the alpha channel is used. +// Non-zero for using alpha, zero for not using. +// Return value: +// The created bitmap handle, or NULL if a parameter error or out of +// memory. +// Comments: +// The bitmap always uses 4 bytes per pixel. The first byte is always +// double word aligned. +// +// The byte order is BGRx (the last byte unused if no alpha channel) or +// BGRA. +// +// The pixels in a horizontal line are stored side by side, with the +// left most pixel stored first (with lower memory address). +// Each line uses width * 4 bytes. +// +// Lines are stored one after another, with the top most line stored +// first. There is no gap between adjacent lines. +// +// This function allocates enough memory for holding all pixels in the +// bitmap, but it doesn't initialize the buffer. Applications can use +// FPDFBitmap_FillRect() to fill the bitmap using any color. If the OS +// allows it, this function can allocate up to 4 GB of memory. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_Create(int width, + int height, + int alpha); + +// More DIB formats +// Unknown or unsupported format. +// All of the colors are listed in order of LSB to MSB. +#define FPDFBitmap_Unknown 0 +// Gray scale bitmap, one byte per pixel. +#define FPDFBitmap_Gray 1 +// 3 bytes per pixel, byte order: blue, green, red. +#define FPDFBitmap_BGR 2 +// 4 bytes per pixel, byte order: blue, green, red, unused. +#define FPDFBitmap_BGRx 3 +// 4 bytes per pixel, byte order: blue, green, red, alpha. +// Pixel components are independent of alpha. +#define FPDFBitmap_BGRA 4 +// 4 bytes per pixel, byte order: blue, green, red, alpha. +// Pixel components are premultiplied by alpha. +// Note that this is experimental and only supported when rendering with +// |FPDF_RENDERER_TYPE| is set to |FPDF_RENDERERTYPE_SKIA|. +#define FPDFBitmap_BGRA_Premul 5 + +// Function: FPDFBitmap_CreateEx +// Create a device independent bitmap (FXDIB) +// Parameters: +// width - The number of pixels in width for the bitmap. +// Must be greater than 0. +// height - The number of pixels in height for the bitmap. +// Must be greater than 0. +// format - A number indicating for bitmap format, as defined +// above. +// first_scan - A pointer to the first byte of the first line if +// using an external buffer. If this parameter is NULL, +// then a new buffer will be created. +// stride - Number of bytes for each scan line. The value must +// be 0 or greater. When the value is 0, +// FPDFBitmap_CreateEx() will automatically calculate +// the appropriate value using |width| and |format|. +// When using an external buffer, it is recommended for +// the caller to pass in the value. +// When not using an external buffer, it is recommended +// for the caller to pass in 0. +// Return value: +// The bitmap handle, or NULL if parameter error or out of memory. +// Comments: +// Similar to FPDFBitmap_Create function, but allows for more formats +// and an external buffer is supported. The bitmap created by this +// function can be used in any place that a FPDF_BITMAP handle is +// required. +// +// If an external buffer is used, then the caller should destroy the +// buffer. FPDFBitmap_Destroy() will not destroy the buffer. +// +// It is recommended to use FPDFBitmap_GetStride() to get the stride +// value. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_CreateEx(int width, + int height, + int format, + void* first_scan, + int stride); + +// Function: FPDFBitmap_GetFormat +// Get the format of the bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The format of the bitmap. +// Comments: +// Only formats supported by FPDFBitmap_CreateEx are supported by this +// function; see the list of such formats above. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetFormat(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_FillRect +// Fill a rectangle in a bitmap. +// Parameters: +// bitmap - The handle to the bitmap. Returned by +// FPDFBitmap_Create. +// left - The left position. Starting from 0 at the +// left-most pixel. +// top - The top position. Starting from 0 at the +// top-most line. +// width - Width in pixels to be filled. +// height - Height in pixels to be filled. +// color - A 32-bit value specifing the color, in 8888 ARGB +// format. +// Return value: +// Returns whether the operation succeeded or not. +// Comments: +// This function sets the color and (optionally) alpha value in the +// specified region of the bitmap. +// +// NOTE: If the alpha channel is used, this function does NOT +// composite the background with the source color, instead the +// background will be replaced by the source color and the alpha. +// +// If the alpha channel is not used, the alpha parameter is ignored. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFBitmap_FillRect(FPDF_BITMAP bitmap, + int left, + int top, + int width, + int height, + FPDF_DWORD color); + +// Function: FPDFBitmap_GetBuffer +// Get data buffer of a bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The pointer to the first byte of the bitmap buffer. +// Comments: +// The stride may be more than width * number of bytes per pixel +// +// Applications can use this function to get the bitmap buffer pointer, +// then manipulate any color and/or alpha values for any pixels in the +// bitmap. +// +// Use FPDFBitmap_GetFormat() to find out the format of the data. +FPDF_EXPORT void* FPDF_CALLCONV FPDFBitmap_GetBuffer(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_GetWidth +// Get width of a bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The width of the bitmap in pixels. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetWidth(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_GetHeight +// Get height of a bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The height of the bitmap in pixels. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetHeight(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_GetStride +// Get number of bytes for each line in the bitmap buffer. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The number of bytes for each line in the bitmap buffer. +// Comments: +// The stride may be more than width * number of bytes per pixel. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetStride(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_Destroy +// Destroy a bitmap and release all related buffers. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// None. +// Comments: +// This function will not destroy any external buffers provided when +// the bitmap was created. +FPDF_EXPORT void FPDF_CALLCONV FPDFBitmap_Destroy(FPDF_BITMAP bitmap); + +// Function: FPDF_VIEWERREF_GetPrintScaling +// Whether the PDF document prefers to be scaled or not. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// None. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT document); + +// Function: FPDF_VIEWERREF_GetNumCopies +// Returns the number of copies to be printed. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// The number of copies to be printed. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document); + +// Function: FPDF_VIEWERREF_GetPrintPageRange +// Page numbers to initialize print dialog box when file is printed. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// The print page range to be used for printing. +FPDF_EXPORT FPDF_PAGERANGE FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_VIEWERREF_GetPrintPageRangeCount +// Returns the number of elements in a FPDF_PAGERANGE. +// Parameters: +// pagerange - Handle to the page range. +// Return value: +// The number of elements in the page range. Returns 0 on error. +FPDF_EXPORT size_t FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintPageRangeCount(FPDF_PAGERANGE pagerange); + +// Experimental API. +// Function: FPDF_VIEWERREF_GetPrintPageRangeElement +// Returns an element from a FPDF_PAGERANGE. +// Parameters: +// pagerange - Handle to the page range. +// index - Index of the element. +// Return value: +// The value of the element in the page range at a given index. +// Returns -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintPageRangeElement(FPDF_PAGERANGE pagerange, size_t index); + +// Function: FPDF_VIEWERREF_GetDuplex +// Returns the paper handling option to be used when printing from +// the print dialog. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// The paper handling option to be used when printing. +FPDF_EXPORT FPDF_DUPLEXTYPE FPDF_CALLCONV +FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT document); + +// Function: FPDF_VIEWERREF_GetName +// Gets the contents for a viewer ref, with a given key. The value must +// be of type "name". +// Parameters: +// document - Handle to the loaded document. +// key - Name of the key in the viewer pref dictionary, +// encoded in UTF-8. +// buffer - Caller-allocate buffer to receive the key, or NULL +// - to query the required length. +// length - Length of the buffer. +// Return value: +// The number of bytes in the contents, including the NULL terminator. +// Thus if the return value is 0, then that indicates an error, such +// as when |document| is invalid. If |length| is less than the required +// length, or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_VIEWERREF_GetName(FPDF_DOCUMENT document, + FPDF_BYTESTRING key, + char* buffer, + unsigned long length); + +// Function: FPDF_CountNamedDests +// Get the count of named destinations in the PDF document. +// Parameters: +// document - Handle to a document +// Return value: +// The count of named destinations. +FPDF_EXPORT FPDF_DWORD FPDF_CALLCONV +FPDF_CountNamedDests(FPDF_DOCUMENT document); + +// Function: FPDF_GetNamedDestByName +// Get a the destination handle for the given name. +// Parameters: +// document - Handle to the loaded document. +// name - The name of a destination. +// Return value: +// The handle to the destination. +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV +FPDF_GetNamedDestByName(FPDF_DOCUMENT document, FPDF_BYTESTRING name); + +// Function: FPDF_GetNamedDest +// Get the named destination by index. +// Parameters: +// document - Handle to a document +// index - The index of a named destination. +// buffer - The buffer to store the destination name, +// used as wchar_t*. +// buflen [in/out] - Size of the buffer in bytes on input, +// length of the result in bytes on output +// or -1 if the buffer is too small. +// Return value: +// The destination handle for a given index, or NULL if there is no +// named destination corresponding to |index|. +// Comments: +// Call this function twice to get the name of the named destination: +// 1) First time pass in |buffer| as NULL and get buflen. +// 2) Second time pass in allocated |buffer| and buflen to retrieve +// |buffer|, which should be used as wchar_t*. +// +// If buflen is not sufficiently large, it will be set to -1 upon +// return. +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDF_GetNamedDest(FPDF_DOCUMENT document, + int index, + void* buffer, + long* buflen); + +// Experimental API. +// Function: FPDF_GetXFAPacketCount +// Get the number of valid packets in the XFA entry. +// Parameters: +// document - Handle to the document. +// Return value: +// The number of valid packets, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetXFAPacketCount(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_GetXFAPacketName +// Get the name of a packet in the XFA array. +// Parameters: +// document - Handle to the document. +// index - Index number of the packet. 0 for the first packet. +// buffer - Buffer for holding the name of the XFA packet. +// buflen - Length of |buffer| in bytes. +// Return value: +// The length of the packet name in bytes, or 0 on error. +// +// |document| must be valid and |index| must be in the range [0, N), where N is +// the value returned by FPDF_GetXFAPacketCount(). +// |buffer| is only modified if it is non-NULL and |buflen| is greater than or +// equal to the length of the packet name. The packet name includes a +// terminating NUL character. |buffer| is unmodified on error. +FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetXFAPacketName( + FPDF_DOCUMENT document, + int index, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_GetXFAPacketContent +// Get the content of a packet in the XFA array. +// Parameters: +// document - Handle to the document. +// index - Index number of the packet. 0 for the first packet. +// buffer - Buffer for holding the content of the XFA packet. +// buflen - Length of |buffer| in bytes. +// out_buflen - Pointer to the variable that will receive the minimum +// buffer size needed to contain the content of the XFA +// packet. +// Return value: +// Whether the operation succeeded or not. +// +// |document| must be valid and |index| must be in the range [0, N), where N is +// the value returned by FPDF_GetXFAPacketCount(). |out_buflen| must not be +// NULL. When the aforementioned arguments are valid, the operation succeeds, +// and |out_buflen| receives the content size. |buffer| is only modified if +// |buffer| is non-null and long enough to contain the content. Callers must +// check both the return value and the input |buflen| is no less than the +// returned |out_buflen| before using the data in |buffer|. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetXFAPacketContent( + FPDF_DOCUMENT document, + int index, + void* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +#ifdef PDF_ENABLE_V8 +// Function: FPDF_GetRecommendedV8Flags +// Returns a space-separated string of command line flags that are +// recommended to be passed into V8 via V8::SetFlagsFromString() +// prior to initializing the PDFium library. +// Parameters: +// None. +// Return value: +// NUL-terminated string of the form "--flag1 --flag2". +// The caller must not attempt to modify or free the result. +FPDF_EXPORT const char* FPDF_CALLCONV FPDF_GetRecommendedV8Flags(); + +// Experimental API. +// Function: FPDF_GetArrayBufferAllocatorSharedInstance() +// Helper function for initializing V8 isolates that will +// use PDFium's internal memory management. +// Parameters: +// None. +// Return Value: +// Pointer to a suitable v8::ArrayBuffer::Allocator, returned +// as void for C compatibility. +// Notes: +// Use is optional, but allows external creation of isolates +// matching the ones PDFium will make when none is provided +// via |FPDF_LIBRARY_CONFIG::m_pIsolate|. +// +// Can only be called when the library is in an uninitialized or +// destroyed state. +FPDF_EXPORT void* FPDF_CALLCONV FPDF_GetArrayBufferAllocatorSharedInstance(); +#endif // PDF_ENABLE_V8 + +#ifdef PDF_ENABLE_XFA +// Function: FPDF_BStr_Init +// Helper function to initialize a FPDF_BSTR. +FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Init(FPDF_BSTR* bstr); + +// Function: FPDF_BStr_Set +// Helper function to copy string data into the FPDF_BSTR. +FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Set(FPDF_BSTR* bstr, + const char* cstr, + int length); + +// Function: FPDF_BStr_Clear +// Helper function to clear a FPDF_BSTR. +FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Clear(FPDF_BSTR* bstr); +#endif // PDF_ENABLE_XFA + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDFVIEW_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/include/fpdfview.h.orig b/eat-rs/vendor/pdfium-macos-arm64/include/fpdfview.h.orig new file mode 100644 index 0000000..fdf2ec4 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/include/fpdfview.h.orig @@ -0,0 +1,1511 @@ +// Copyright 2014 The PDFium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +// This is the main header file for embedders of PDFium. It provides APIs to +// initialize the library, load documents, and render pages, amongst other +// things. +// +// NOTE: None of the PDFium APIs are thread-safe. They expect to be called +// from a single thread. Barring that, embedders are required to ensure (via +// a mutex or similar) that only a single PDFium call can be made at a time. +// +// NOTE: External docs refer to this file as "fpdfview.h", so do not rename +// despite lack of consistency with other public files. + +#ifndef PUBLIC_FPDFVIEW_H_ +#define PUBLIC_FPDFVIEW_H_ + +// clang-format off + +#include + +#if defined(_WIN32) && !defined(__WINDOWS__) +#include +#endif + +// PDF object types +#define FPDF_OBJECT_UNKNOWN 0 +#define FPDF_OBJECT_BOOLEAN 1 +#define FPDF_OBJECT_NUMBER 2 +#define FPDF_OBJECT_STRING 3 +#define FPDF_OBJECT_NAME 4 +#define FPDF_OBJECT_ARRAY 5 +#define FPDF_OBJECT_DICTIONARY 6 +#define FPDF_OBJECT_STREAM 7 +#define FPDF_OBJECT_NULLOBJ 8 +#define FPDF_OBJECT_REFERENCE 9 + +// PDF text rendering modes +typedef enum { + FPDF_TEXTRENDERMODE_UNKNOWN = -1, + FPDF_TEXTRENDERMODE_FILL = 0, + FPDF_TEXTRENDERMODE_STROKE = 1, + FPDF_TEXTRENDERMODE_FILL_STROKE = 2, + FPDF_TEXTRENDERMODE_INVISIBLE = 3, + FPDF_TEXTRENDERMODE_FILL_CLIP = 4, + FPDF_TEXTRENDERMODE_STROKE_CLIP = 5, + FPDF_TEXTRENDERMODE_FILL_STROKE_CLIP = 6, + FPDF_TEXTRENDERMODE_CLIP = 7, + FPDF_TEXTRENDERMODE_LAST = FPDF_TEXTRENDERMODE_CLIP, +} FPDF_TEXT_RENDERMODE; + +// PDF types - use incomplete types (never completed) to force API type safety. +typedef struct fpdf_action_t__* FPDF_ACTION; +typedef struct fpdf_annotation_t__* FPDF_ANNOTATION; +typedef struct fpdf_attachment_t__* FPDF_ATTACHMENT; +typedef struct fpdf_avail_t__* FPDF_AVAIL; +typedef struct fpdf_bitmap_t__* FPDF_BITMAP; +typedef struct fpdf_bookmark_t__* FPDF_BOOKMARK; +typedef struct fpdf_clippath_t__* FPDF_CLIPPATH; +typedef struct fpdf_dest_t__* FPDF_DEST; +typedef struct fpdf_document_t__* FPDF_DOCUMENT; +typedef struct fpdf_font_t__* FPDF_FONT; +typedef struct fpdf_form_handle_t__* FPDF_FORMHANDLE; +typedef const struct fpdf_glyphpath_t__* FPDF_GLYPHPATH; +typedef struct fpdf_javascript_action_t* FPDF_JAVASCRIPT_ACTION; +typedef struct fpdf_link_t__* FPDF_LINK; +typedef struct fpdf_page_t__* FPDF_PAGE; +typedef struct fpdf_pagelink_t__* FPDF_PAGELINK; +typedef struct fpdf_pageobject_t__* FPDF_PAGEOBJECT; // (text, path, etc.) +typedef struct fpdf_pageobjectmark_t__* FPDF_PAGEOBJECTMARK; +typedef const struct fpdf_pagerange_t__* FPDF_PAGERANGE; +typedef const struct fpdf_pathsegment_t* FPDF_PATHSEGMENT; +typedef struct fpdf_schhandle_t__* FPDF_SCHHANDLE; +typedef const struct fpdf_signature_t__* FPDF_SIGNATURE; +typedef void* FPDF_SKIA_CANVAS; // Passed into Skia as an SkCanvas. +typedef struct fpdf_structelement_t__* FPDF_STRUCTELEMENT; +typedef const struct fpdf_structelement_attr_t__* FPDF_STRUCTELEMENT_ATTR; +typedef const struct fpdf_structelement_attr_value_t__* +FPDF_STRUCTELEMENT_ATTR_VALUE; +typedef struct fpdf_structtree_t__* FPDF_STRUCTTREE; +typedef struct fpdf_textpage_t__* FPDF_TEXTPAGE; +typedef struct fpdf_widget_t__* FPDF_WIDGET; +typedef struct fpdf_xobject_t__* FPDF_XOBJECT; + +// Basic data types +typedef int FPDF_BOOL; +typedef int FPDF_RESULT; +typedef unsigned long FPDF_DWORD; +typedef float FS_FLOAT; + +// Duplex types +typedef enum _FPDF_DUPLEXTYPE_ { + DuplexUndefined = 0, + Simplex, + DuplexFlipShortEdge, + DuplexFlipLongEdge +} FPDF_DUPLEXTYPE; + +// String types +typedef unsigned short FPDF_WCHAR; + +// The public PDFium API uses three types of strings: byte string, wide string +// (UTF-16LE encoded), and platform dependent string. + +// Public PDFium API type for byte strings. +typedef const char* FPDF_BYTESTRING; + +// The public PDFium API always uses UTF-16LE encoded wide strings, each +// character uses 2 bytes (except surrogation), with the low byte first. +typedef const FPDF_WCHAR* FPDF_WIDESTRING; + +// Structure for persisting a string beyond the duration of a callback. +// Note: although represented as a char*, string may be interpreted as +// a UTF-16LE formated string. Used only by XFA callbacks. +typedef struct FPDF_BSTR_ { + char* str; // String buffer, manipulate only with FPDF_BStr_* methods. + int len; // Length of the string, in bytes. +} FPDF_BSTR; + +// For Windows programmers: In most cases it's OK to treat FPDF_WIDESTRING as a +// Windows unicode string, however, special care needs to be taken if you +// expect to process Unicode larger than 0xffff. +// +// For Linux/Unix programmers: most compiler/library environments use 4 bytes +// for a Unicode character, and you have to convert between FPDF_WIDESTRING and +// system wide string by yourself. +typedef const char* FPDF_STRING; + +// Matrix for transformation, in the form [a b c d e f], equivalent to: +// | a b 0 | +// | c d 0 | +// | e f 1 | +// +// Translation is performed with [1 0 0 1 tx ty]. +// Scaling is performed with [sx 0 0 sy 0 0]. +// See PDF Reference 1.7, 4.2.2 Common Transformations for more. +typedef struct _FS_MATRIX_ { + float a; + float b; + float c; + float d; + float e; + float f; +} FS_MATRIX; + +// Rectangle area(float) in device or page coordinate system. +typedef struct _FS_RECTF_ { + // The x-coordinate of the left-top corner. + float left; + // The y-coordinate of the left-top corner. + float top; + // The x-coordinate of the right-bottom corner. + float right; + // The y-coordinate of the right-bottom corner. + float bottom; +} * FS_LPRECTF, FS_RECTF; + +// Const Pointer to FS_RECTF structure. +typedef const FS_RECTF* FS_LPCRECTF; + +// Rectangle size. Coordinate system agnostic. +typedef struct FS_SIZEF_ { + float width; + float height; +} * FS_LPSIZEF, FS_SIZEF; + +// Const Pointer to FS_SIZEF structure. +typedef const FS_SIZEF* FS_LPCSIZEF; + +// 2D Point. Coordinate system agnostic. +typedef struct FS_POINTF_ { + float x; + float y; +} * FS_LPPOINTF, FS_POINTF; + +// Const Pointer to FS_POINTF structure. +typedef const FS_POINTF* FS_LPCPOINTF; + +typedef struct _FS_QUADPOINTSF { + FS_FLOAT x1; + FS_FLOAT y1; + FS_FLOAT x2; + FS_FLOAT y2; + FS_FLOAT x3; + FS_FLOAT y3; + FS_FLOAT x4; + FS_FLOAT y4; +} FS_QUADPOINTSF; + +// Annotation enums. +typedef int FPDF_ANNOTATION_SUBTYPE; +typedef int FPDF_ANNOT_APPEARANCEMODE; + +// Dictionary value types. +typedef int FPDF_OBJECT_TYPE; + +#if defined(COMPONENT_BUILD) +// FPDF_EXPORT should be consistent with |export| in the pdfium_fuzzer +// template in testing/fuzzers/BUILD.gn. +#if defined(WIN32) +#if defined(FPDF_IMPLEMENTATION) +#define FPDF_EXPORT __declspec(dllexport) +#else +#define FPDF_EXPORT __declspec(dllimport) +#endif // defined(FPDF_IMPLEMENTATION) +#else +#if defined(FPDF_IMPLEMENTATION) +#define FPDF_EXPORT __attribute__((visibility("default"))) +#else +#define FPDF_EXPORT +#endif // defined(FPDF_IMPLEMENTATION) +#endif // defined(WIN32) +#else +#define FPDF_EXPORT +#endif // defined(COMPONENT_BUILD) + +#if defined(WIN32) && defined(FPDFSDK_EXPORTS) +#define FPDF_CALLCONV __stdcall +#else +#define FPDF_CALLCONV +#endif + +// Exported Functions +#ifdef __cplusplus +extern "C" { +#endif + +// PDF renderer types - Experimental. +// Selection of 2D graphics library to use for rendering to FPDF_BITMAPs. +typedef enum { + // Anti-Grain Geometry - https://sourceforge.net/projects/agg/ + FPDF_RENDERERTYPE_AGG = 0, + // Skia - https://skia.org/ + FPDF_RENDERERTYPE_SKIA = 1, +} FPDF_RENDERER_TYPE; + +// PDF font library types - Experimental. +// Selection of font backend library to use. +typedef enum { + // FreeType - https://freetype.org/ + FPDF_FONTBACKENDTYPE_FREETYPE = 0, + // Fontations - https://github.com/googlefonts/fontations/ + FPDF_FONTBACKENDTYPE_FONTATIONS = 1, +} FPDF_FONT_BACKEND_TYPE; + +// Process-wide options for initializing the library. +typedef struct FPDF_LIBRARY_CONFIG_ { + // Version number of the interface. Currently must be 2. + // Support for version 1 will be deprecated in the future. + int version; + + // Array of paths to scan in place of the defaults when using built-in + // FXGE font loading code. The array is terminated by a NULL pointer. + // The Array may be NULL itself to use the default paths. May be ignored + // entirely depending upon the platform. + const char** m_pUserFontPaths; + + // Version 2. + + // Pointer to the v8::Isolate to use, or NULL to force PDFium to create one. + void* m_pIsolate; + + // The embedder data slot to use in the v8::Isolate to store PDFium's + // per-isolate data. The value needs to be in the range + // [0, |v8::Internals::kNumIsolateDataLots|). Note that 0 is fine for most + // embedders. + unsigned int m_v8EmbedderSlot; + + // Version 3 - Experimental. + + // Pointer to the V8::Platform to use. + void* m_pPlatform; + + // Version 4 - Experimental. + + // Explicit specification of 2D graphics rendering library to use. + // |m_RendererType| must be a valid value for |FPDF_LIBRARY_CONFIG| versions + // of this level or higher, or else the initialization will fail with an + // immediate crash. + // Note that use of a specified |FPDF_RENDERER_TYPE| value for which the + // corresponding 2D graphics rendering library is not included in the build + // will similarly fail with an immediate crash. + FPDF_RENDERER_TYPE m_RendererType; + + // Version 5 - Experimental. + + // Explicit specification of font library to use. + // |m_FontLibraryType| must be a valid value for |FPDF_LIBRARY_CONFIG| + // versions of this level or higher, or else the initialization will fail with + // an immediate crash. + // Note that use of a specified |FPDF_FONT_BACKEND_TYPE| value for which the + // corresponding font library is not included in the build will similarly fail + // with an immediate crash. + FPDF_FONT_BACKEND_TYPE m_FontLibraryType; + + // Version 6 - Experimental. + + // Boolean to specify whether the experimental PDF 2.0 /BrotliDecode filter + // is enabled. For setting the bool to true to have an effect, PDFium must be + // built with |PDF_ENABLE_BROTLI|. + FPDF_BOOL m_BrotliEnabled; + + // Version 7 - Experimental. + + // Boolean to specify whether PDFium creates a dedicated v8::Isolate for each + // document. When true, |m_pIsolate| must be NULL. + FPDF_BOOL m_IsolatePerDocument; +} FPDF_LIBRARY_CONFIG; + +// Function: FPDF_InitLibraryWithConfig +// Initialize the PDFium library and allocate global resources for it. +// Parameters: +// config - configuration information as above. +// Return value: +// None. +// Comments: +// You have to call this function before you can call any PDF +// processing functions. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config); + +// Function: FPDF_InitLibrary +// Initialize the PDFium library (alternative form). +// Parameters: +// None +// Return value: +// None. +// Comments: +// Convenience function to call FPDF_InitLibraryWithConfig() with a +// default configuration for backwards compatibility purposes. New +// code should call FPDF_InitLibraryWithConfig() instead. This will +// be deprecated in the future. +FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibrary(); + +// Function: FPDF_DestroyLibrary +// Release global resources allocated to the PDFium library by +// FPDF_InitLibrary() or FPDF_InitLibraryWithConfig(). +// Parameters: +// None. +// Return value: +// None. +// Comments: +// After this function is called, you must not call any PDF +// processing functions. +// +// Calling this function does not automatically close other +// objects. It is recommended to close other objects before +// closing the library with this function. +FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary(); + +// Policy for accessing the local machine time. +#define FPDF_POLICY_MACHINETIME_ACCESS 0 + +// Function: FPDF_SetSandBoxPolicy +// Set the policy for the sandbox environment. +// Parameters: +// policy - The specified policy for setting, for example: +// FPDF_POLICY_MACHINETIME_ACCESS. +// enable - True to enable, false to disable the policy. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_SetSandBoxPolicy(FPDF_DWORD policy, + FPDF_BOOL enable); + +#if defined(_WIN32) +// Experimental API. +// Function: FPDF_SetPrintMode +// Set printing mode when printing on Windows. +// Parameters: +// mode - FPDF_PRINTMODE_EMF to output EMF (default) +// FPDF_PRINTMODE_TEXTONLY to output text only (for charstream +// devices) +// FPDF_PRINTMODE_POSTSCRIPT2 to output level 2 PostScript into +// EMF as a series of GDI comments. +// FPDF_PRINTMODE_POSTSCRIPT3 to output level 3 PostScript into +// EMF as a series of GDI comments. +// FPDF_PRINTMODE_POSTSCRIPT2_PASSTHROUGH to output level 2 +// PostScript via ExtEscape() in PASSTHROUGH mode. +// FPDF_PRINTMODE_POSTSCRIPT3_PASSTHROUGH to output level 3 +// PostScript via ExtEscape() in PASSTHROUGH mode. +// FPDF_PRINTMODE_EMF_IMAGE_MASKS to output EMF, with more +// efficient processing of documents containing image masks. +// FPDF_PRINTMODE_POSTSCRIPT3_TYPE42 to output level 3 +// PostScript with embedded Type 42 fonts, when applicable, into +// EMF as a series of GDI comments. +// FPDF_PRINTMODE_POSTSCRIPT3_TYPE42_PASSTHROUGH to output level +// 3 PostScript with embedded Type 42 fonts, when applicable, +// via ExtEscape() in PASSTHROUGH mode. +// Return value: +// True if successful, false if unsuccessful (typically invalid input). +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_SetPrintMode(int mode); +#endif // defined(_WIN32) + +// Function: FPDF_LoadDocument +// Open and load a PDF document. +// Parameters: +// file_path - Path to the PDF file (including extension). +// password - A string used as the password for the PDF file. +// If no password is needed, empty or NULL can be used. +// See comments below regarding the encoding. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// Loaded document can be closed by FPDF_CloseDocument(). +// If this function fails, you can use FPDF_GetLastError() to retrieve +// the reason why it failed. +// +// The encoding for |file_path| is UTF-8. +// +// The encoding for |password| can be either UTF-8 or Latin-1. PDFs, +// depending on the security handler revision, will only accept one or +// the other encoding. If |password|'s encoding and the PDF's expected +// encoding do not match, FPDF_LoadDocument() will automatically +// convert |password| to the other encoding. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadDocument(FPDF_STRING file_path, FPDF_BYTESTRING password); + +// Function: FPDF_LoadMemDocument +// Open and load a PDF document from memory. +// Parameters: +// data_buf - Pointer to a buffer containing the PDF document. +// size - Number of bytes in the PDF document. +// password - A string used as the password for the PDF file. +// If no password is needed, empty or NULL can be used. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// The memory buffer must remain valid when the document is open. +// The loaded document can be closed by FPDF_CloseDocument. +// If this function fails, you can use FPDF_GetLastError() to retrieve +// the reason why it failed. +// +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +// Notes: +// If PDFium is built with the XFA module, the application should call +// FPDF_LoadXFA() function after the PDF document loaded to support XFA +// fields defined in the fpdfformfill.h file. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadMemDocument(const void* data_buf, int size, FPDF_BYTESTRING password); + +// Experimental API. +// Function: FPDF_LoadMemDocument64 +// Open and load a PDF document from memory. +// Parameters: +// data_buf - Pointer to a buffer containing the PDF document. +// size - Number of bytes in the PDF document. +// password - A string used as the password for the PDF file. +// If no password is needed, empty or NULL can be used. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// The memory buffer must remain valid when the document is open. +// The loaded document can be closed by FPDF_CloseDocument. +// If this function fails, you can use FPDF_GetLastError() to retrieve +// the reason why it failed. +// +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +// Notes: +// If PDFium is built with the XFA module, the application should call +// FPDF_LoadXFA() function after the PDF document loaded to support XFA +// fields defined in the fpdfformfill.h file. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadMemDocument64(const void* data_buf, + size_t size, + FPDF_BYTESTRING password); + +// Structure for custom file access. +typedef struct { + // File length, in bytes. + unsigned long m_FileLen; + + // A function pointer for getting a block of data from a specific position. + // Position is specified by byte offset from the beginning of the file. + // The pointer to the buffer is never NULL and the size is never 0. + // The position and size will never go out of range of the file length. + // It may be possible for PDFium to call this function multiple times for + // the same position. + // Return value: should be non-zero if successful, zero for error. + int (*m_GetBlock)(void* param, + unsigned long position, + unsigned char* pBuf, + unsigned long size); + + // A custom pointer for all implementation specific data. This pointer will + // be used as the first parameter to the m_GetBlock callback. + void* m_Param; +} FPDF_FILEACCESS; + +// Structure for file reading or writing (I/O). +// +// Note: This is a handler and should be implemented by callers, +// and is only used from XFA. +typedef struct FPDF_FILEHANDLER_ { + // User-defined data. + // Note: Callers can use this field to track controls. + void* clientData; + + // Callback function to release the current file stream object. + // + // Parameters: + // clientData - Pointer to user-defined data. + // Returns: + // None. + void (*Release)(void* clientData); + + // Callback function to retrieve the current file stream size. + // + // Parameters: + // clientData - Pointer to user-defined data. + // Returns: + // Size of file stream. + FPDF_DWORD (*GetSize)(void* clientData); + + // Callback function to read data from the current file stream. + // + // Parameters: + // clientData - Pointer to user-defined data. + // offset - Offset position starts from the beginning of file + // stream. This parameter indicates reading position. + // buffer - Memory buffer to store data which are read from + // file stream. This parameter should not be NULL. + // size - Size of data which should be read from file stream, + // in bytes. The buffer indicated by |buffer| must be + // large enough to store specified data. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*ReadBlock)(void* clientData, + FPDF_DWORD offset, + void* buffer, + FPDF_DWORD size); + + // Callback function to write data into the current file stream. + // + // Parameters: + // clientData - Pointer to user-defined data. + // offset - Offset position starts from the beginning of file + // stream. This parameter indicates writing position. + // buffer - Memory buffer contains data which is written into + // file stream. This parameter should not be NULL. + // size - Size of data which should be written into file + // stream, in bytes. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*WriteBlock)(void* clientData, + FPDF_DWORD offset, + const void* buffer, + FPDF_DWORD size); + // Callback function to flush all internal accessing buffers. + // + // Parameters: + // clientData - Pointer to user-defined data. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*Flush)(void* clientData); + + // Callback function to change file size. + // + // Description: + // This function is called under writing mode usually. Implementer + // can determine whether to realize it based on application requests. + // Parameters: + // clientData - Pointer to user-defined data. + // size - New size of file stream, in bytes. + // Returns: + // 0 for success, other value for failure. + FPDF_RESULT (*Truncate)(void* clientData, FPDF_DWORD size); +} FPDF_FILEHANDLER; + +// Function: FPDF_LoadCustomDocument +// Load PDF document from a custom access descriptor. +// Parameters: +// pFileAccess - A structure for accessing the file. +// password - Optional password for decrypting the PDF file. +// Return value: +// A handle to the loaded document, or NULL on failure. +// Comments: +// The application must keep the file resources |pFileAccess| points to +// valid until the returned FPDF_DOCUMENT is closed. |pFileAccess| +// itself does not need to outlive the FPDF_DOCUMENT. +// +// The loaded document can be closed with FPDF_CloseDocument(). +// +// See the comments for FPDF_LoadDocument() regarding the encoding for +// |password|. +// Notes: +// If PDFium is built with the XFA module, the application should call +// FPDF_LoadXFA() function after the PDF document loaded to support XFA +// fields defined in the fpdfformfill.h file. +FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV +FPDF_LoadCustomDocument(FPDF_FILEACCESS* pFileAccess, FPDF_BYTESTRING password); + +// Function: FPDF_GetFileVersion +// Get the file version of the given PDF document. +// Parameters: +// doc - Handle to a document. +// fileVersion - The PDF file version. File version: 14 for 1.4, 15 +// for 1.5, ... +// Return value: +// True if succeeds, false otherwise. +// Comments: +// If the document was created by FPDF_CreateNewDocument, +// then this function will always fail. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetFileVersion(FPDF_DOCUMENT doc, + int* fileVersion); + +#define FPDF_ERR_SUCCESS 0 // No error. +#define FPDF_ERR_UNKNOWN 1 // Unknown error. +#define FPDF_ERR_FILE 2 // File not found or could not be opened. +#define FPDF_ERR_FORMAT 3 // File not in PDF format or corrupted. +#define FPDF_ERR_PASSWORD 4 // Password required or incorrect password. +#define FPDF_ERR_SECURITY 5 // Unsupported security scheme. +#define FPDF_ERR_PAGE 6 // Page not found or content error. +#ifdef PDF_ENABLE_XFA +#define FPDF_ERR_XFALOAD 7 // Load XFA error. +#define FPDF_ERR_XFALAYOUT 8 // Layout XFA error. +#endif // PDF_ENABLE_XFA + +// Function: FPDF_GetLastError +// Get last error code when a function fails. +// Parameters: +// None. +// Return value: +// A 32-bit integer indicating error code as defined above. +// Comments: +// If the previous SDK call succeeded, the return value of this +// function is not defined. This function only works in conjunction +// with APIs that mention FPDF_GetLastError() in their documentation. +FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetLastError(); + +// Experimental API. +// Function: FPDF_DocumentHasValidCrossReferenceTable +// Whether the document's cross reference table is valid or not. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// True if the PDF parser did not encounter problems parsing the cross +// reference table. False if the parser could not parse the cross +// reference table and the table had to be rebuild from other data +// within the document. +// Comments: +// The return value can change over time as the PDF parser evolves. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_DocumentHasValidCrossReferenceTable(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_GetTrailerEnds +// Get the byte offsets of trailer ends. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument(). +// buffer - The address of a buffer that receives the +// byte offsets. +// length - The size, in ints, of |buffer|. +// Return value: +// Returns the number of ints in the buffer on success, 0 on error. +// +// |buffer| is an array of integers that describes the exact byte offsets of the +// trailer ends in the document. If |length| is less than the returned length, +// or |document| or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetTrailerEnds(FPDF_DOCUMENT document, + unsigned int* buffer, + unsigned long length); + +// Function: FPDF_GetDocPermissions +// Get file permission flags of the document. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// A 32-bit integer indicating permission flags. Please refer to the +// PDF Reference for detailed descriptions. If the document is not +// protected or was unlocked by the owner, 0xffffffff will be returned. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetDocPermissions(FPDF_DOCUMENT document); + +// Function: FPDF_GetDocUserPermissions +// Get user file permission flags of the document. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// A 32-bit integer indicating permission flags. Please refer to the +// PDF Reference for detailed descriptions. If the document is not +// protected, 0xffffffff will be returned. Always returns user +// permissions, even if the document was unlocked by the owner. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_GetDocUserPermissions(FPDF_DOCUMENT document); + +// Function: FPDF_GetSecurityHandlerRevision +// Get the revision for the security handler. +// Parameters: +// document - Handle to a document. Returned by FPDF_LoadDocument. +// Return value: +// The security handler revision number. Please refer to the PDF +// Reference for a detailed description. If the document is not +// protected, -1 will be returned. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_GetSecurityHandlerRevision(FPDF_DOCUMENT document); + +// Function: FPDF_GetPageCount +// Get total number of pages in the document. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument. +// Return value: +// Total number of pages in the document. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageCount(FPDF_DOCUMENT document); + +// Function: FPDF_LoadPage +// Load a page inside the document. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument +// page_index - Index number of the page. 0 for the first page. +// Return value: +// A handle to the loaded page, or NULL if page load fails. +// Comments: +// The loaded page can be rendered to devices using FPDF_RenderPage. +// The loaded page can be closed using FPDF_ClosePage. +FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDF_LoadPage(FPDF_DOCUMENT document, + int page_index); + +// Experimental API +// Function: FPDF_GetPageWidthF +// Get page width. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage(). +// Return value: +// Page width (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm). +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageWidthF(FPDF_PAGE page); + +// Function: FPDF_GetPageWidth +// Get page width. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// Return value: +// Page width (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm). +// Note: +// Prefer FPDF_GetPageWidthF() above. This will be deprecated in the +// future. +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageWidth(FPDF_PAGE page); + +// Experimental API +// Function: FPDF_GetPageHeightF +// Get page height. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage(). +// Return value: +// Page height (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm) +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageHeightF(FPDF_PAGE page); + +// Function: FPDF_GetPageHeight +// Get page height. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// Return value: +// Page height (excluding non-displayable area) measured in points. +// One point is 1/72 inch (around 0.3528 mm) +// Note: +// Prefer FPDF_GetPageHeightF() above. This will be deprecated in the +// future. +// Comments: +// Changing the rotation of |page| affects the return value. +FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageHeight(FPDF_PAGE page); + +// Experimental API. +// Function: FPDF_GetPageBoundingBox +// Get the bounding box of the page. This is the intersection between +// its media box and its crop box. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// rect - Pointer to a rect to receive the page bounding box. +// On an error, |rect| won't be filled. +// Return value: +// True for success. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetPageBoundingBox(FPDF_PAGE page, + FS_RECTF* rect); + +// Experimental API. +// Function: FPDF_GetPageSizeByIndexF +// Get the size of the page at the given index. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument(). +// page_index - Page index, zero for the first page. +// size - Pointer to a FS_SIZEF to receive the page size. +// (in points). +// Return value: +// Non-zero for success. 0 for error (document or page not found). +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_GetPageSizeByIndexF(FPDF_DOCUMENT document, + int page_index, + FS_SIZEF* size); + +// Function: FPDF_GetPageSizeByIndex +// Get the size of the page at the given index. +// Parameters: +// document - Handle to document. Returned by FPDF_LoadDocument. +// page_index - Page index, zero for the first page. +// width - Pointer to a double to receive the page width +// (in points). +// height - Pointer to a double to receive the page height +// (in points). +// Return value: +// Non-zero for success. 0 for error (document or page not found). +// Note: +// Prefer FPDF_GetPageSizeByIndexF() above. This will be deprecated in +// the future. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, + int page_index, + double* width, + double* height); + +// Page rendering flags. They can be combined with bit-wise OR. +// +// Set if annotations are to be rendered. +#define FPDF_ANNOT 0x01 +// Set if using text rendering optimized for LCD display. This flag will only +// take effect if anti-aliasing is enabled for text. +#define FPDF_LCD_TEXT 0x02 +// Don't use the native text output available on some platforms +#define FPDF_NO_NATIVETEXT 0x04 +// Grayscale output. +#define FPDF_GRAYSCALE 0x08 +// Obsolete, has no effect, retained for compatibility. +#define FPDF_DEBUG_INFO 0x80 +// Obsolete, has no effect, retained for compatibility. +#define FPDF_NO_CATCH 0x100 +// Limit image cache size. +#define FPDF_RENDER_LIMITEDIMAGECACHE 0x200 +// Always use halftone for image stretching. +#define FPDF_RENDER_FORCEHALFTONE 0x400 +// Render for printing. +#define FPDF_PRINTING 0x800 +// Set to disable anti-aliasing on text. This flag will also disable LCD +// optimization for text rendering. +#define FPDF_RENDER_NO_SMOOTHTEXT 0x1000 +// Set to disable anti-aliasing on images. +#define FPDF_RENDER_NO_SMOOTHIMAGE 0x2000 +// Set to disable anti-aliasing on paths. +#define FPDF_RENDER_NO_SMOOTHPATH 0x4000 +// Set whether to render in a reverse Byte order, this flag is only used when +// rendering to a bitmap. +#define FPDF_REVERSE_BYTE_ORDER 0x10 +// Set whether fill paths need to be stroked. This flag is only used when +// FPDF_COLORSCHEME is passed in, since with a single fill color for paths the +// boundaries of adjacent fill paths are less visible. +#define FPDF_CONVERT_FILL_TO_STROKE 0x20 + +// Struct for color scheme. +// Each should be a 32-bit value specifying the color, in 8888 ARGB format. +typedef struct FPDF_COLORSCHEME_ { + FPDF_DWORD path_fill_color; + FPDF_DWORD path_stroke_color; + FPDF_DWORD text_fill_color; + FPDF_DWORD text_stroke_color; +} FPDF_COLORSCHEME; + +#ifdef _WIN32 +// Function: FPDF_RenderPage +// Render contents of a page to a device (screen, bitmap, or printer). +// This function is only supported on Windows. +// Parameters: +// dc - Handle to the device context. +// page - Handle to the page. Returned by FPDF_LoadPage. +// start_x - Left pixel position of the display area in +// device coordinates. +// start_y - Top pixel position of the display area in device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// flags - 0 for normal display, or combination of flags +// defined above. +// Return value: +// Returns true if the page is rendered successfully, false otherwise. + +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_RenderPage(HDC dc, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); +#endif + +// Function: FPDF_RenderPageBitmap +// Render contents of a page to a device independent bitmap. +// Parameters: +// bitmap - Handle to the device independent bitmap (as the +// output buffer). The bitmap handle can be created +// by FPDFBitmap_Create or retrieved from an image +// object by FPDFImageObj_GetBitmap. +// page - Handle to the page. Returned by FPDF_LoadPage +// start_x - Left pixel position of the display area in +// bitmap coordinates. +// start_y - Top pixel position of the display area in bitmap +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// flags - 0 for normal display, or combination of the Page +// Rendering flags defined above. With the FPDF_ANNOT +// flag, it renders all annotations that do not require +// user-interaction, which are all annotations except +// widget and popup annotations. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); + +// Function: FPDF_RenderPageBitmapWithMatrix +// Render contents of a page to a device independent bitmap. +// Parameters: +// bitmap - Handle to the device independent bitmap (as the +// output buffer). The bitmap handle can be created +// by FPDFBitmap_Create or retrieved by +// FPDFImageObj_GetBitmap. +// page - Handle to the page. Returned by FPDF_LoadPage. +// matrix - The transform matrix, which must be invertible. +// See PDF Reference 1.7, 4.2.2 Common Transformations. +// clipping - The rect to clip to in device coords. +// flags - 0 for normal display, or combination of the Page +// Rendering flags defined above. With the FPDF_ANNOT +// flag, it renders all annotations that do not require +// user-interaction, which are all annotations except +// widget and popup annotations. +// Return value: +// None. Note that behavior is undefined if det of |matrix| is 0. +FPDF_EXPORT void FPDF_CALLCONV +FPDF_RenderPageBitmapWithMatrix(FPDF_BITMAP bitmap, + FPDF_PAGE page, + const FS_MATRIX* matrix, + const FS_RECTF* clipping, + int flags); + +#if defined(PDF_USE_SKIA) +// Experimental API. +// Function: FPDF_RenderPageSkia +// Render contents of a page to a Skia SkCanvas. +// Parameters: +// canvas - SkCanvas to render to. +// page - Handle to the page. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageSkia(FPDF_SKIA_CANVAS canvas, + FPDF_PAGE page, + int size_x, + int size_y); +#endif + +// Function: FPDF_ClosePage +// Close a loaded PDF page. +// Parameters: +// page - Handle to the loaded page. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_ClosePage(FPDF_PAGE page); + +// Function: FPDF_CloseDocument +// Close a loaded PDF document. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// None. +FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseDocument(FPDF_DOCUMENT document); + +// Function: FPDF_DeviceToPage +// Convert the screen coordinates of a point to page coordinates. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// start_x - Left pixel position of the display area in +// device coordinates. +// start_y - Top pixel position of the display area in device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// device_x - X value in device coordinates to be converted. +// device_y - Y value in device coordinates to be converted. +// page_x - A pointer to a double receiving the converted X +// value in page coordinates. +// page_y - A pointer to a double receiving the converted Y +// value in page coordinates. +// Return value: +// Returns true if the conversion succeeds, and |page_x| and |page_y| +// successfully receives the converted coordinates. +// Comments: +// The page coordinate system has its origin at the left-bottom corner +// of the page, with the X-axis on the bottom going to the right, and +// the Y-axis on the left side going up. +// +// NOTE: this coordinate system can be altered when you zoom, scroll, +// or rotate a page, however, a point on the page should always have +// the same coordinate values in the page coordinate system. +// +// The device coordinate system is device dependent. For screen device, +// its origin is at the left-top corner of the window. However this +// origin can be altered by the Windows coordinate transformation +// utilities. +// +// You must make sure the start_x, start_y, size_x, size_y +// and rotate parameters have exactly same values as you used in +// the FPDF_RenderPage() function call. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_DeviceToPage(FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int device_x, + int device_y, + double* page_x, + double* page_y); + +// Function: FPDF_PageToDevice +// Convert the page coordinates of a point to screen coordinates. +// Parameters: +// page - Handle to the page. Returned by FPDF_LoadPage. +// start_x - Left pixel position of the display area in +// device coordinates. +// start_y - Top pixel position of the display area in device +// coordinates. +// size_x - Horizontal size (in pixels) for displaying the page. +// size_y - Vertical size (in pixels) for displaying the page. +// rotate - Page orientation: +// 0 (normal) +// 1 (rotated 90 degrees clockwise) +// 2 (rotated 180 degrees) +// 3 (rotated 90 degrees counter-clockwise) +// page_x - X value in page coordinates. +// page_y - Y value in page coordinate. +// device_x - A pointer to an integer receiving the result X +// value in device coordinates. +// device_y - A pointer to an integer receiving the result Y +// value in device coordinates. +// Return value: +// Returns true if the conversion succeeds, and |device_x| and +// |device_y| successfully receives the converted coordinates. +// Comments: +// See comments for FPDF_DeviceToPage(). +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_PageToDevice(FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + double page_x, + double page_y, + int* device_x, + int* device_y); + +// Function: FPDFBitmap_Create +// Create a device independent bitmap (FXDIB). +// Parameters: +// width - The number of pixels in width for the bitmap. +// Must be greater than 0. +// height - The number of pixels in height for the bitmap. +// Must be greater than 0. +// alpha - A flag indicating whether the alpha channel is used. +// Non-zero for using alpha, zero for not using. +// Return value: +// The created bitmap handle, or NULL if a parameter error or out of +// memory. +// Comments: +// The bitmap always uses 4 bytes per pixel. The first byte is always +// double word aligned. +// +// The byte order is BGRx (the last byte unused if no alpha channel) or +// BGRA. +// +// The pixels in a horizontal line are stored side by side, with the +// left most pixel stored first (with lower memory address). +// Each line uses width * 4 bytes. +// +// Lines are stored one after another, with the top most line stored +// first. There is no gap between adjacent lines. +// +// This function allocates enough memory for holding all pixels in the +// bitmap, but it doesn't initialize the buffer. Applications can use +// FPDFBitmap_FillRect() to fill the bitmap using any color. If the OS +// allows it, this function can allocate up to 4 GB of memory. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_Create(int width, + int height, + int alpha); + +// More DIB formats +// Unknown or unsupported format. +// All of the colors are listed in order of LSB to MSB. +#define FPDFBitmap_Unknown 0 +// Gray scale bitmap, one byte per pixel. +#define FPDFBitmap_Gray 1 +// 3 bytes per pixel, byte order: blue, green, red. +#define FPDFBitmap_BGR 2 +// 4 bytes per pixel, byte order: blue, green, red, unused. +#define FPDFBitmap_BGRx 3 +// 4 bytes per pixel, byte order: blue, green, red, alpha. +// Pixel components are independent of alpha. +#define FPDFBitmap_BGRA 4 +// 4 bytes per pixel, byte order: blue, green, red, alpha. +// Pixel components are premultiplied by alpha. +// Note that this is experimental and only supported when rendering with +// |FPDF_RENDERER_TYPE| is set to |FPDF_RENDERERTYPE_SKIA|. +#define FPDFBitmap_BGRA_Premul 5 + +// Function: FPDFBitmap_CreateEx +// Create a device independent bitmap (FXDIB) +// Parameters: +// width - The number of pixels in width for the bitmap. +// Must be greater than 0. +// height - The number of pixels in height for the bitmap. +// Must be greater than 0. +// format - A number indicating for bitmap format, as defined +// above. +// first_scan - A pointer to the first byte of the first line if +// using an external buffer. If this parameter is NULL, +// then a new buffer will be created. +// stride - Number of bytes for each scan line. The value must +// be 0 or greater. When the value is 0, +// FPDFBitmap_CreateEx() will automatically calculate +// the appropriate value using |width| and |format|. +// When using an external buffer, it is recommended for +// the caller to pass in the value. +// When not using an external buffer, it is recommended +// for the caller to pass in 0. +// Return value: +// The bitmap handle, or NULL if parameter error or out of memory. +// Comments: +// Similar to FPDFBitmap_Create function, but allows for more formats +// and an external buffer is supported. The bitmap created by this +// function can be used in any place that a FPDF_BITMAP handle is +// required. +// +// If an external buffer is used, then the caller should destroy the +// buffer. FPDFBitmap_Destroy() will not destroy the buffer. +// +// It is recommended to use FPDFBitmap_GetStride() to get the stride +// value. +FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_CreateEx(int width, + int height, + int format, + void* first_scan, + int stride); + +// Function: FPDFBitmap_GetFormat +// Get the format of the bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The format of the bitmap. +// Comments: +// Only formats supported by FPDFBitmap_CreateEx are supported by this +// function; see the list of such formats above. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetFormat(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_FillRect +// Fill a rectangle in a bitmap. +// Parameters: +// bitmap - The handle to the bitmap. Returned by +// FPDFBitmap_Create. +// left - The left position. Starting from 0 at the +// left-most pixel. +// top - The top position. Starting from 0 at the +// top-most line. +// width - Width in pixels to be filled. +// height - Height in pixels to be filled. +// color - A 32-bit value specifing the color, in 8888 ARGB +// format. +// Return value: +// Returns whether the operation succeeded or not. +// Comments: +// This function sets the color and (optionally) alpha value in the +// specified region of the bitmap. +// +// NOTE: If the alpha channel is used, this function does NOT +// composite the background with the source color, instead the +// background will be replaced by the source color and the alpha. +// +// If the alpha channel is not used, the alpha parameter is ignored. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFBitmap_FillRect(FPDF_BITMAP bitmap, + int left, + int top, + int width, + int height, + FPDF_DWORD color); + +// Function: FPDFBitmap_GetBuffer +// Get data buffer of a bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The pointer to the first byte of the bitmap buffer. +// Comments: +// The stride may be more than width * number of bytes per pixel +// +// Applications can use this function to get the bitmap buffer pointer, +// then manipulate any color and/or alpha values for any pixels in the +// bitmap. +// +// Use FPDFBitmap_GetFormat() to find out the format of the data. +FPDF_EXPORT void* FPDF_CALLCONV FPDFBitmap_GetBuffer(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_GetWidth +// Get width of a bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The width of the bitmap in pixels. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetWidth(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_GetHeight +// Get height of a bitmap. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The height of the bitmap in pixels. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetHeight(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_GetStride +// Get number of bytes for each line in the bitmap buffer. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// The number of bytes for each line in the bitmap buffer. +// Comments: +// The stride may be more than width * number of bytes per pixel. +FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetStride(FPDF_BITMAP bitmap); + +// Function: FPDFBitmap_Destroy +// Destroy a bitmap and release all related buffers. +// Parameters: +// bitmap - Handle to the bitmap. Returned by FPDFBitmap_Create +// or FPDFImageObj_GetBitmap. +// Return value: +// None. +// Comments: +// This function will not destroy any external buffers provided when +// the bitmap was created. +FPDF_EXPORT void FPDF_CALLCONV FPDFBitmap_Destroy(FPDF_BITMAP bitmap); + +// Function: FPDF_VIEWERREF_GetPrintScaling +// Whether the PDF document prefers to be scaled or not. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// None. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT document); + +// Function: FPDF_VIEWERREF_GetNumCopies +// Returns the number of copies to be printed. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// The number of copies to be printed. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document); + +// Function: FPDF_VIEWERREF_GetPrintPageRange +// Page numbers to initialize print dialog box when file is printed. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// The print page range to be used for printing. +FPDF_EXPORT FPDF_PAGERANGE FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_VIEWERREF_GetPrintPageRangeCount +// Returns the number of elements in a FPDF_PAGERANGE. +// Parameters: +// pagerange - Handle to the page range. +// Return value: +// The number of elements in the page range. Returns 0 on error. +FPDF_EXPORT size_t FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintPageRangeCount(FPDF_PAGERANGE pagerange); + +// Experimental API. +// Function: FPDF_VIEWERREF_GetPrintPageRangeElement +// Returns an element from a FPDF_PAGERANGE. +// Parameters: +// pagerange - Handle to the page range. +// index - Index of the element. +// Return value: +// The value of the element in the page range at a given index. +// Returns -1 on error. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_VIEWERREF_GetPrintPageRangeElement(FPDF_PAGERANGE pagerange, size_t index); + +// Function: FPDF_VIEWERREF_GetDuplex +// Returns the paper handling option to be used when printing from +// the print dialog. +// Parameters: +// document - Handle to the loaded document. +// Return value: +// The paper handling option to be used when printing. +FPDF_EXPORT FPDF_DUPLEXTYPE FPDF_CALLCONV +FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT document); + +// Function: FPDF_VIEWERREF_GetName +// Gets the contents for a viewer ref, with a given key. The value must +// be of type "name". +// Parameters: +// document - Handle to the loaded document. +// key - Name of the key in the viewer pref dictionary, +// encoded in UTF-8. +// buffer - Caller-allocate buffer to receive the key, or NULL +// - to query the required length. +// length - Length of the buffer. +// Return value: +// The number of bytes in the contents, including the NULL terminator. +// Thus if the return value is 0, then that indicates an error, such +// as when |document| is invalid. If |length| is less than the required +// length, or |buffer| is NULL, |buffer| will not be modified. +FPDF_EXPORT unsigned long FPDF_CALLCONV +FPDF_VIEWERREF_GetName(FPDF_DOCUMENT document, + FPDF_BYTESTRING key, + char* buffer, + unsigned long length); + +// Function: FPDF_CountNamedDests +// Get the count of named destinations in the PDF document. +// Parameters: +// document - Handle to a document +// Return value: +// The count of named destinations. +FPDF_EXPORT FPDF_DWORD FPDF_CALLCONV +FPDF_CountNamedDests(FPDF_DOCUMENT document); + +// Function: FPDF_GetNamedDestByName +// Get a the destination handle for the given name. +// Parameters: +// document - Handle to the loaded document. +// name - The name of a destination. +// Return value: +// The handle to the destination. +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV +FPDF_GetNamedDestByName(FPDF_DOCUMENT document, FPDF_BYTESTRING name); + +// Function: FPDF_GetNamedDest +// Get the named destination by index. +// Parameters: +// document - Handle to a document +// index - The index of a named destination. +// buffer - The buffer to store the destination name, +// used as wchar_t*. +// buflen [in/out] - Size of the buffer in bytes on input, +// length of the result in bytes on output +// or -1 if the buffer is too small. +// Return value: +// The destination handle for a given index, or NULL if there is no +// named destination corresponding to |index|. +// Comments: +// Call this function twice to get the name of the named destination: +// 1) First time pass in |buffer| as NULL and get buflen. +// 2) Second time pass in allocated |buffer| and buflen to retrieve +// |buffer|, which should be used as wchar_t*. +// +// If buflen is not sufficiently large, it will be set to -1 upon +// return. +FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDF_GetNamedDest(FPDF_DOCUMENT document, + int index, + void* buffer, + long* buflen); + +// Experimental API. +// Function: FPDF_GetXFAPacketCount +// Get the number of valid packets in the XFA entry. +// Parameters: +// document - Handle to the document. +// Return value: +// The number of valid packets, or -1 on error. +FPDF_EXPORT int FPDF_CALLCONV FPDF_GetXFAPacketCount(FPDF_DOCUMENT document); + +// Experimental API. +// Function: FPDF_GetXFAPacketName +// Get the name of a packet in the XFA array. +// Parameters: +// document - Handle to the document. +// index - Index number of the packet. 0 for the first packet. +// buffer - Buffer for holding the name of the XFA packet. +// buflen - Length of |buffer| in bytes. +// Return value: +// The length of the packet name in bytes, or 0 on error. +// +// |document| must be valid and |index| must be in the range [0, N), where N is +// the value returned by FPDF_GetXFAPacketCount(). +// |buffer| is only modified if it is non-NULL and |buflen| is greater than or +// equal to the length of the packet name. The packet name includes a +// terminating NUL character. |buffer| is unmodified on error. +FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetXFAPacketName( + FPDF_DOCUMENT document, + int index, + void* buffer, + unsigned long buflen); + +// Experimental API. +// Function: FPDF_GetXFAPacketContent +// Get the content of a packet in the XFA array. +// Parameters: +// document - Handle to the document. +// index - Index number of the packet. 0 for the first packet. +// buffer - Buffer for holding the content of the XFA packet. +// buflen - Length of |buffer| in bytes. +// out_buflen - Pointer to the variable that will receive the minimum +// buffer size needed to contain the content of the XFA +// packet. +// Return value: +// Whether the operation succeeded or not. +// +// |document| must be valid and |index| must be in the range [0, N), where N is +// the value returned by FPDF_GetXFAPacketCount(). |out_buflen| must not be +// NULL. When the aforementioned arguments are valid, the operation succeeds, +// and |out_buflen| receives the content size. |buffer| is only modified if +// |buffer| is non-null and long enough to contain the content. Callers must +// check both the return value and the input |buflen| is no less than the +// returned |out_buflen| before using the data in |buffer|. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetXFAPacketContent( + FPDF_DOCUMENT document, + int index, + void* buffer, + unsigned long buflen, + unsigned long* out_buflen); + +#ifdef PDF_ENABLE_V8 +// Function: FPDF_GetRecommendedV8Flags +// Returns a space-separated string of command line flags that are +// recommended to be passed into V8 via V8::SetFlagsFromString() +// prior to initializing the PDFium library. +// Parameters: +// None. +// Return value: +// NUL-terminated string of the form "--flag1 --flag2". +// The caller must not attempt to modify or free the result. +FPDF_EXPORT const char* FPDF_CALLCONV FPDF_GetRecommendedV8Flags(); + +// Experimental API. +// Function: FPDF_GetArrayBufferAllocatorSharedInstance() +// Helper function for initializing V8 isolates that will +// use PDFium's internal memory management. +// Parameters: +// None. +// Return Value: +// Pointer to a suitable v8::ArrayBuffer::Allocator, returned +// as void for C compatibility. +// Notes: +// Use is optional, but allows external creation of isolates +// matching the ones PDFium will make when none is provided +// via |FPDF_LIBRARY_CONFIG::m_pIsolate|. +// +// Can only be called when the library is in an uninitialized or +// destroyed state. +FPDF_EXPORT void* FPDF_CALLCONV FPDF_GetArrayBufferAllocatorSharedInstance(); +#endif // PDF_ENABLE_V8 + +#ifdef PDF_ENABLE_XFA +// Function: FPDF_BStr_Init +// Helper function to initialize a FPDF_BSTR. +FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Init(FPDF_BSTR* bstr); + +// Function: FPDF_BStr_Set +// Helper function to copy string data into the FPDF_BSTR. +FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Set(FPDF_BSTR* bstr, + const char* cstr, + int length); + +// Function: FPDF_BStr_Clear +// Helper function to clear a FPDF_BSTR. +FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Clear(FPDF_BSTR* bstr); +#endif // PDF_ENABLE_XFA + +#ifdef __cplusplus +} +#endif + +#endif // PUBLIC_FPDFVIEW_H_ diff --git a/eat-rs/vendor/pdfium-macos-arm64/lib/libpdfium.dylib b/eat-rs/vendor/pdfium-macos-arm64/lib/libpdfium.dylib new file mode 100644 index 0000000..5e9f400 Binary files /dev/null and b/eat-rs/vendor/pdfium-macos-arm64/lib/libpdfium.dylib differ diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/abseil.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/abseil.txt new file mode 100644 index 0000000..ccd61dc --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/abseil.txt @@ -0,0 +1,203 @@ + + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/agg23.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/agg23.txt new file mode 100644 index 0000000..3040a2b --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/agg23.txt @@ -0,0 +1,14 @@ +//---------------------------------------------------------------------------- +// Anti-Grain Geometry - Version 2.3 +// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) +// +// Permission to copy, use, modify, sell and distribute this software +// is granted provided this copyright notice appears in all copies. +// This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. +// +//---------------------------------------------------------------------------- +// Contact: mcseem@antigrain.com +// mcseemagg@yahoo.com +// http://www.antigrain.com +//---------------------------------------------------------------------------- diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/dragonbox-Apache2-LLVM.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/dragonbox-Apache2-LLVM.txt new file mode 100644 index 0000000..bd8b243 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/dragonbox-Apache2-LLVM.txt @@ -0,0 +1,218 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +--- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/dragonbox-Boost.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/dragonbox-Boost.txt new file mode 100644 index 0000000..36b7cd9 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/dragonbox-Boost.txt @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/fast_float.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/fast_float.txt new file mode 100644 index 0000000..2fb2a37 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/fast_float.txt @@ -0,0 +1,27 @@ +MIT License + +Copyright (c) 2021 The fast_float authors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/freetype.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/freetype.txt new file mode 100644 index 0000000..bbaba33 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/freetype.txt @@ -0,0 +1,169 @@ + The FreeType Project LICENSE + ---------------------------- + + 2006-Jan-27 + + Copyright 1996-2002, 2006 by + David Turner, Robert Wilhelm, and Werner Lemberg + + + +Introduction +============ + + The FreeType Project is distributed in several archive packages; + some of them may contain, in addition to the FreeType font engine, + various tools and contributions which rely on, or relate to, the + FreeType Project. + + This license applies to all files found in such packages, and + which do not fall under their own explicit license. The license + affects thus the FreeType font engine, the test programs, + documentation and makefiles, at the very least. + + This license was inspired by the BSD, Artistic, and IJG + (Independent JPEG Group) licenses, which all encourage inclusion + and use of free software in commercial and freeware products + alike. As a consequence, its main points are that: + + o We don't promise that this software works. However, we will be + interested in any kind of bug reports. (`as is' distribution) + + o You can use this software for whatever you want, in parts or + full form, without having to pay us. (`royalty-free' usage) + + o You may not pretend that you wrote this software. If you use + it, or only parts of it, in a program, you must acknowledge + somewhere in your documentation that you have used the + FreeType code. (`credits') + + We specifically permit and encourage the inclusion of this + software, with or without modifications, in commercial products. + We disclaim all warranties covering The FreeType Project and + assume no liability related to The FreeType Project. + + + Finally, many people asked us for a preferred form for a + credit/disclaimer to use in compliance with this license. We thus + encourage you to use the following text: + + """ + Portions of this software are copyright © The FreeType + Project (www.freetype.org). All rights reserved. + """ + + Please replace with the value from the FreeType version you + actually use. + + +Legal Terms +=========== + +0. Definitions +-------------- + + Throughout this license, the terms `package', `FreeType Project', + and `FreeType archive' refer to the set of files originally + distributed by the authors (David Turner, Robert Wilhelm, and + Werner Lemberg) as the `FreeType Project', be they named as alpha, + beta or final release. + + `You' refers to the licensee, or person using the project, where + `using' is a generic term including compiling the project's source + code as well as linking it to form a `program' or `executable'. + This program is referred to as `a program using the FreeType + engine'. + + This license applies to all files distributed in the original + FreeType Project, including all source code, binaries and + documentation, unless otherwise stated in the file in its + original, unmodified form as distributed in the original archive. + If you are unsure whether or not a particular file is covered by + this license, you must contact us to verify this. + + The FreeType Project is copyright (C) 1996-2000 by David Turner, + Robert Wilhelm, and Werner Lemberg. All rights reserved except as + specified below. + +1. No Warranty +-------------- + + THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO + USE, OF THE FREETYPE PROJECT. + +2. Redistribution +----------------- + + This license grants a worldwide, royalty-free, perpetual and + irrevocable right and license to use, execute, perform, compile, + display, copy, create derivative works of, distribute and + sublicense the FreeType Project (in both source and object code + forms) and derivative works thereof for any purpose; and to + authorize others to exercise some or all of the rights granted + herein, subject to the following conditions: + + o Redistribution of source code must retain this license file + (`FTL.TXT') unaltered; any additions, deletions or changes to + the original files must be clearly indicated in accompanying + documentation. The copyright notices of the unaltered, + original files must be preserved in all copies of source + files. + + o Redistribution in binary form must provide a disclaimer that + states that the software is based in part of the work of the + FreeType Team, in the distribution documentation. We also + encourage you to put an URL to the FreeType web page in your + documentation, though this isn't mandatory. + + These conditions apply to any software derived from or based on + the FreeType Project, not just the unmodified files. If you use + our work, you must acknowledge us. However, no fee need be paid + to us. + +3. Advertising +-------------- + + Neither the FreeType authors and contributors nor you shall use + the name of the other for commercial, advertising, or promotional + purposes without specific prior written permission. + + We suggest, but do not require, that you use one or more of the + following phrases to refer to this software in your documentation + or advertising materials: `FreeType Project', `FreeType Engine', + `FreeType library', or `FreeType Distribution'. + + As you have not signed this license, you are not required to + accept it. However, as the FreeType Project is copyrighted + material, only this license, or another one contracted with the + authors, grants you the right to use, distribute, and modify it. + Therefore, by using, distributing, or modifying the FreeType + Project, you indicate that you understand and accept all the terms + of this license. + +4. Contacts +----------- + + There are two mailing lists related to FreeType: + + o freetype@nongnu.org + + Discusses general use and applications of FreeType, as well as + future and wanted additions to the library and distribution. + If you are looking for support, start in this list if you + haven't found anything to help you in the documentation. + + o freetype-devel@nongnu.org + + Discusses bugs, as well as engine internals, design issues, + specific licenses, porting, etc. + + Our home page can be found at + + http://www.freetype.org + + +--- end of FTL.TXT --- diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/harfbuzz.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/harfbuzz.txt new file mode 100644 index 0000000..1dd917e --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/harfbuzz.txt @@ -0,0 +1,42 @@ +HarfBuzz is licensed under the so-called "Old MIT" license. Details follow. +For parts of HarfBuzz that are licensed under different licenses see individual +files names COPYING in subdirectories where applicable. + +Copyright © 2010-2022 Google, Inc. +Copyright © 2015-2020 Ebrahim Byagowi +Copyright © 2019,2020 Facebook, Inc. +Copyright © 2012,2015 Mozilla Foundation +Copyright © 2011 Codethink Limited +Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies) +Copyright © 2009 Keith Stribley +Copyright © 2011 Martin Hosken and SIL International +Copyright © 2007 Chris Wilson +Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod +Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc. +Copyright © 1998-2005 David Turner and Werner Lemberg +Copyright © 2016 Igalia S.L. +Copyright © 2022 Matthias Clasen +Copyright © 2018,2021 Khaled Hosny +Copyright © 2018,2019,2020 Adobe, Inc +Copyright © 2013-2015 Alexei Podtelezhnikov + +For full copyright notices consult the individual files in the package. + + +Permission is hereby granted, without written agreement and without +license or royalty fees, to use, copy, modify, and distribute this +software and its documentation for any purpose, provided that the +above copyright notice and the following two paragraphs appear in +all copies of this software. + +IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR +DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN +IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + +THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS +ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO +PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/highway.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/highway.txt new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/highway.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/icu.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/icu.txt new file mode 100644 index 0000000..5a2eda6 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/icu.txt @@ -0,0 +1,568 @@ +UNICODE LICENSE V3 + +COPYRIGHT AND PERMISSION NOTICE + +Copyright © 2016-2025 Unicode, Inc. + +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. + +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. + +SPDX-License-Identifier: Unicode-3.0 + +---------------------------------------------------------------------- + +Third-Party Software Licenses + +This section contains third-party software notices and/or additional +terms for licensed third-party software components included within ICU +libraries. + +---------------------------------------------------------------------- + +ICU License - ICU 1.8.1 to ICU 57.1 + +COPYRIGHT AND PERMISSION NOTICE + +Copyright (c) 1995-2016 International Business Machines Corporation and others +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, provided that the above +copyright notice(s) and this permission notice appear in all copies of +the Software and that both the above copyright notice(s) and this +permission notice appear in supporting documentation. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY +SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER +RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF +CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Except as contained in this notice, the name of a copyright holder +shall not be used in advertising or otherwise to promote the sale, use +or other dealings in this Software without prior written authorization +of the copyright holder. + +All trademarks and registered trademarks mentioned herein are the +property of their respective owners. + +---------------------------------------------------------------------- + +Chinese/Japanese Word Break Dictionary Data (cjdict.txt) + + # The Google Chrome software developed by Google is licensed under + # the BSD license. Other software included in this distribution is + # provided under other licenses, as set forth below. + # + # The BSD License + # http://opensource.org/licenses/bsd-license.php + # Copyright (C) 2006-2008, Google Inc. + # + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions are met: + # + # Redistributions of source code must retain the above copyright notice, + # this list of conditions and the following disclaimer. + # Redistributions in binary form must reproduce the above + # copyright notice, this list of conditions and the following + # disclaimer in the documentation and/or other materials provided with + # the distribution. + # Neither the name of Google Inc. nor the names of its + # contributors may be used to endorse or promote products derived from + # this software without specific prior written permission. + # + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + # + # + # The word list in cjdict.txt are generated by combining three word lists + # listed below with further processing for compound word breaking. The + # frequency is generated with an iterative training against Google web + # corpora. + # + # * Libtabe (Chinese) + # - https://sourceforge.net/project/?group_id=1519 + # - Its license terms and conditions are shown below. + # + # * IPADIC (Japanese) + # - http://chasen.aist-nara.ac.jp/chasen/distribution.html + # - Its license terms and conditions are shown below. + # + # ---------COPYING.libtabe ---- BEGIN-------------------- + # + # /* + # * Copyright (c) 1999 TaBE Project. + # * Copyright (c) 1999 Pai-Hsiang Hsiao. + # * All rights reserved. + # * + # * Redistribution and use in source and binary forms, with or without + # * modification, are permitted provided that the following conditions + # * are met: + # * + # * . Redistributions of source code must retain the above copyright + # * notice, this list of conditions and the following disclaimer. + # * . Redistributions in binary form must reproduce the above copyright + # * notice, this list of conditions and the following disclaimer in + # * the documentation and/or other materials provided with the + # * distribution. + # * . Neither the name of the TaBE Project nor the names of its + # * contributors may be used to endorse or promote products derived + # * from this software without specific prior written permission. + # * + # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # * OF THE POSSIBILITY OF SUCH DAMAGE. + # */ + # + # /* + # * Copyright (c) 1999 Computer Systems and Communication Lab, + # * Institute of Information Science, Academia + # * Sinica. All rights reserved. + # * + # * Redistribution and use in source and binary forms, with or without + # * modification, are permitted provided that the following conditions + # * are met: + # * + # * . Redistributions of source code must retain the above copyright + # * notice, this list of conditions and the following disclaimer. + # * . Redistributions in binary form must reproduce the above copyright + # * notice, this list of conditions and the following disclaimer in + # * the documentation and/or other materials provided with the + # * distribution. + # * . Neither the name of the Computer Systems and Communication Lab + # * nor the names of its contributors may be used to endorse or + # * promote products derived from this software without specific + # * prior written permission. + # * + # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # * OF THE POSSIBILITY OF SUCH DAMAGE. + # */ + # + # Copyright 1996 Chih-Hao Tsai @ Beckman Institute, + # University of Illinois + # c-tsai4@uiuc.edu http://casper.beckman.uiuc.edu/~c-tsai4 + # + # ---------------COPYING.libtabe-----END-------------------------------- + # + # + # ---------------COPYING.ipadic-----BEGIN------------------------------- + # + # Copyright 2000, 2001, 2002, 2003 Nara Institute of Science + # and Technology. All Rights Reserved. + # + # Use, reproduction, and distribution of this software is permitted. + # Any copy of this software, whether in its original form or modified, + # must include both the above copyright notice and the following + # paragraphs. + # + # Nara Institute of Science and Technology (NAIST), + # the copyright holders, disclaims all warranties with regard to this + # software, including all implied warranties of merchantability and + # fitness, in no event shall NAIST be liable for + # any special, indirect or consequential damages or any damages + # whatsoever resulting from loss of use, data or profits, whether in an + # action of contract, negligence or other tortuous action, arising out + # of or in connection with the use or performance of this software. + # + # A large portion of the dictionary entries + # originate from ICOT Free Software. The following conditions for ICOT + # Free Software applies to the current dictionary as well. + # + # Each User may also freely distribute the Program, whether in its + # original form or modified, to any third party or parties, PROVIDED + # that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear + # on, or be attached to, the Program, which is distributed substantially + # in the same form as set out herein and that such intended + # distribution, if actually made, will neither violate or otherwise + # contravene any of the laws and regulations of the countries having + # jurisdiction over the User or the intended distribution itself. + # + # NO WARRANTY + # + # The program was produced on an experimental basis in the course of the + # research and development conducted during the project and is provided + # to users as so produced on an experimental basis. Accordingly, the + # program is provided without any warranty whatsoever, whether express, + # implied, statutory or otherwise. The term "warranty" used herein + # includes, but is not limited to, any warranty of the quality, + # performance, merchantability and fitness for a particular purpose of + # the program and the nonexistence of any infringement or violation of + # any right of any third party. + # + # Each user of the program will agree and understand, and be deemed to + # have agreed and understood, that there is no warranty whatsoever for + # the program and, accordingly, the entire risk arising from or + # otherwise connected with the program is assumed by the user. + # + # Therefore, neither ICOT, the copyright holder, or any other + # organization that participated in or was otherwise related to the + # development of the program and their respective officials, directors, + # officers and other employees shall be held liable for any and all + # damages, including, without limitation, general, special, incidental + # and consequential damages, arising out of or otherwise in connection + # with the use or inability to use the program or any product, material + # or result produced or otherwise obtained by using the program, + # regardless of whether they have been advised of, or otherwise had + # knowledge of, the possibility of such damages at any time during the + # project or thereafter. Each user will be deemed to have agreed to the + # foregoing by his or her commencement of use of the program. The term + # "use" as used herein includes, but is not limited to, the use, + # modification, copying and distribution of the program and the + # production of secondary products from the program. + # + # In the case where the program, whether in its original form or + # modified, was distributed or delivered to or received by a user from + # any person, organization or entity other than ICOT, unless it makes or + # grants independently of ICOT any specific warranty to the user in + # writing, such person, organization or entity, will also be exempted + # from and not be held liable to the user for any such damages as noted + # above as far as the program is concerned. + # + # ---------------COPYING.ipadic-----END---------------------------------- + +---------------------------------------------------------------------- + +Lao Word Break Dictionary Data (laodict.txt) + + # Copyright (C) 2016 and later: Unicode, Inc. and others. + # License & terms of use: http://www.unicode.org/copyright.html + # Copyright (c) 2015 International Business Machines Corporation + # and others. All Rights Reserved. + # + # Project: https://github.com/rober42539/lao-dictionary + # Dictionary: https://github.com/rober42539/lao-dictionary/laodict.txt + # License: https://github.com/rober42539/lao-dictionary/LICENSE.txt + # (copied below) + # + # This file is derived from the above dictionary version of Nov 22, 2020 + # ---------------------------------------------------------------------- + # Copyright (C) 2013 Brian Eugene Wilson, Robert Martin Campbell. + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions are met: + # + # Redistributions of source code must retain the above copyright notice, this + # list of conditions and the following disclaimer. Redistributions in binary + # form must reproduce the above copyright notice, this list of conditions and + # the following disclaimer in the documentation and/or other materials + # provided with the distribution. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # OF THE POSSIBILITY OF SUCH DAMAGE. + # -------------------------------------------------------------------------- + +---------------------------------------------------------------------- + +Burmese Word Break Dictionary Data (burmesedict.txt) + + # Copyright (c) 2014 International Business Machines Corporation + # and others. All Rights Reserved. + # + # This list is part of a project hosted at: + # github.com/kanyawtech/myanmar-karen-word-lists + # + # -------------------------------------------------------------------------- + # Copyright (c) 2013, LeRoy Benjamin Sharon + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions + # are met: Redistributions of source code must retain the above + # copyright notice, this list of conditions and the following + # disclaimer. Redistributions in binary form must reproduce the + # above copyright notice, this list of conditions and the following + # disclaimer in the documentation and/or other materials provided + # with the distribution. + # + # Neither the name Myanmar Karen Word Lists, nor the names of its + # contributors may be used to endorse or promote products derived + # from this software without specific prior written permission. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS + # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF + # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + # SUCH DAMAGE. + # -------------------------------------------------------------------------- + +---------------------------------------------------------------------- + +Time Zone Database + + ICU uses the public domain data and code derived from Time Zone +Database for its time zone support. The ownership of the TZ database +is explained in BCP 175: Procedure for Maintaining the Time Zone +Database section 7. + + # 7. Database Ownership + # + # The TZ database itself is not an IETF Contribution or an IETF + # document. Rather it is a pre-existing and regularly updated work + # that is in the public domain, and is intended to remain in the + # public domain. Therefore, BCPs 78 [RFC5378] and 79 [RFC3979] do + # not apply to the TZ Database or contributions that individuals make + # to it. Should any claims be made and substantiated against the TZ + # Database, the organization that is providing the IANA + # Considerations defined in this RFC, under the memorandum of + # understanding with the IETF, currently ICANN, may act in accordance + # with all competent court orders. No ownership claims will be made + # by ICANN or the IETF Trust on the database or the code. Any person + # making a contribution to the database or code waives all rights to + # future claims in that contribution or in the TZ Database. + +---------------------------------------------------------------------- + +Google double-conversion + +Copyright 2006-2011, the V8 project authors. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---------------------------------------------------------------------- + +JSON parsing library (nlohmann/json) + +File: vendor/json/upstream/single_include/nlohmann/json.hpp (only for ICU4C) + +MIT License + +Copyright (c) 2013-2022 Niels Lohmann + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +---------------------------------------------------------------------- + +File: aclocal.m4 (only for ICU4C) +Section: pkg.m4 - Macros to locate and utilise pkg-config. + + +Copyright © 2004 Scott James Remnant . +Copyright © 2012-2015 Dan Nicholson + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. + +As a special exception to the GNU General Public License, if you +distribute this file as part of a program that contains a +configuration script generated by Autoconf, you may include it under +the same distribution terms that you use for the rest of that +program. + + +(The condition for the exception is fulfilled because +ICU4C includes a configuration script generated by Autoconf, +namely the `configure` script.) + +---------------------------------------------------------------------- + +File: config.guess (only for ICU4C) + + +This file is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, see . + +As a special exception to the GNU General Public License, if you +distribute this file as part of a program that contains a +configuration script generated by Autoconf, you may include it under +the same distribution terms that you use for the rest of that +program. This Exception is an additional permission under section 7 +of the GNU General Public License, version 3 ("GPLv3"). + + +(The condition for the exception is fulfilled because +ICU4C includes a configuration script generated by Autoconf, +namely the `configure` script.) + +---------------------------------------------------------------------- + +File: install-sh (only for ICU4C) + + +Copyright 1991 by the Massachusetts Institute of Technology + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation, and that the name of M.I.T. not be used in advertising or +publicity pertaining to distribution of the software without specific, +written prior permission. M.I.T. makes no representations about the +suitability of this software for any purpose. It is provided "as is" +without express or implied warranty. + +---------------------------------------------------------------------- + +File: sorttable.js (only for ICU4J) + +The MIT Licence, for code from kryogenix.org + +Code downloaded from the Browser Experiments section of kryogenix.org is +licenced under the so-called MIT licence. The licence is below. + +Copyright (c) 1997-date Stuart Langridge + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/lcms.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/lcms.txt new file mode 100644 index 0000000..a657cd9 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/lcms.txt @@ -0,0 +1,27 @@ +//--------------------------------------------------------------------------------- +// +// Little Color Management System +// Copyright (c) 1998-2026 Marti Maria Saguer +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the Software +// is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//--------------------------------------------------------------------------------- +// +// Version 2.19 +// diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/libjpeg_turbo.ijg b/eat-rs/vendor/pdfium-macos-arm64/licenses/libjpeg_turbo.ijg new file mode 100644 index 0000000..dbf8070 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/libjpeg_turbo.ijg @@ -0,0 +1,260 @@ +libjpeg-turbo note: This file has been modified by The libjpeg-turbo Project +to include only information relevant to libjpeg-turbo, to wordsmith certain +sections, and to remove impolitic language that existed in the libjpeg v8 +README. It is included only for reference. Please see README.md for +information specific to libjpeg-turbo. + + +The Independent JPEG Group's JPEG software +========================================== + +This distribution contains a release of the Independent JPEG Group's free JPEG +software. You are welcome to redistribute this software and to use it for any +purpose, subject to the conditions under LEGAL ISSUES, below. + +This software is the work of Tom Lane, Guido Vollbeding, Philip Gladstone, +Bill Allombert, Jim Boucher, Lee Crocker, Bob Friesenhahn, Ben Jackson, +Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi, Ge' Weijers, +and other members of the Independent JPEG Group. + +IJG is not affiliated with the ISO/IEC JTC1/SC29/WG1 standards committee +(also known as JPEG, together with ITU-T SG16). + + +DOCUMENTATION ROADMAP +===================== + +This file contains the following sections: + +OVERVIEW General description of JPEG and the IJG software. +LEGAL ISSUES Copyright, lack of warranty, terms of distribution. +REFERENCES Where to learn more about JPEG. +ARCHIVE LOCATIONS Where to find newer versions of this software. +FILE FORMAT WARS Software *not* to get. +TO DO Plans for future IJG releases. + +Other documentation files in the distribution are: + +User documentation: + doc/usage.txt Usage instructions for cjpeg, djpeg, jpegtran, + rdjpgcom, and wrjpgcom. + doc/*.1 Unix-style man pages for programs (same info as + usage.txt). + doc/wizard.txt Advanced usage instructions for JPEG wizards only. + doc/change.log Version-to-version change highlights. +Programmer and internal documentation: + doc/libjpeg.txt How to use the JPEG library in your own programs. + src/example.c Sample code for calling the JPEG library. + doc/structure.txt Overview of the JPEG library's internal structure. + doc/coderules.txt Coding style rules --- please read if you contribute + code. + +Please read at least usage.txt. Some information can also be found in the JPEG +FAQ (Frequently Asked Questions) article. See ARCHIVE LOCATIONS below to find +out where to obtain the FAQ article. + +If you want to understand how the JPEG code works, we suggest reading one or +more of the REFERENCES, then looking at the documentation files (in roughly +the order listed) before diving into the code. + + +OVERVIEW +======== + +This package contains C software to implement JPEG image encoding, decoding, +and transcoding. JPEG (pronounced "jay-peg") is a standardized compression +method for full-color and grayscale images. JPEG's strong suit is compressing +photographic images or other types of images that have smooth color and +brightness transitions between neighboring pixels. Images with sharp lines or +other abrupt features may not compress well with JPEG, and a higher JPEG +quality may have to be used to avoid visible compression artifacts with such +images. + +JPEG is normally lossy, meaning that the output pixels are not necessarily +identical to the input pixels. However, on photographic content and other +"smooth" images, very good compression ratios can be obtained with no visible +compression artifacts, and extremely high compression ratios are possible if +you are willing to sacrifice image quality (by reducing the "quality" setting +in the compressor.) + +This software implements JPEG baseline, extended-sequential, progressive, and +lossless compression processes. Provision is made for supporting all variants +of these processes, although some uncommon parameter settings aren't +implemented yet. We have made no provision for supporting the hierarchical +processes defined in the standard. + +We provide a set of library routines for reading and writing JPEG image files, +plus two sample applications "cjpeg" and "djpeg", which use the library to +perform conversion between JPEG and some other popular image file formats. +The library is intended to be reused in other applications. + +In order to support file conversion and viewing software, we have included +considerable functionality beyond the bare JPEG coding/decoding capability; +for example, the color quantization modules are not strictly part of JPEG +decoding, but they are essential for output to colormapped file formats. These +extra functions can be compiled out of the library if not required for a +particular application. + +We have also included "jpegtran", a utility for lossless transcoding between +different JPEG processes, and "rdjpgcom" and "wrjpgcom", two simple +applications for inserting and extracting textual comments in JFIF files. + +The emphasis in designing this software has been on achieving portability and +flexibility, while also making it fast enough to be useful. In particular, +the software is not intended to be read as a tutorial on JPEG. (See the +REFERENCES section for introductory material.) Rather, it is intended to +be reliable, portable, industrial-strength code. We do not claim to have +achieved that goal in every aspect of the software, but we strive for it. + +We welcome the use of this software as a component of commercial products. +No royalty is required, but we do ask for an acknowledgement in product +documentation, as described under LEGAL ISSUES. + + +LEGAL ISSUES +============ + +In plain English: + +1. We don't promise that this software works. (But if you find any bugs, + please let us know!) +2. You can use this software for whatever you want. You don't have to pay us. +3. You may not pretend that you wrote this software. If you use it in a + program, you must acknowledge somewhere in your documentation that + you've used the IJG code. + +In legalese: + +The authors make NO WARRANTY or representation, either express or implied, +with respect to this software, its quality, accuracy, merchantability, or +fitness for a particular purpose. This software is provided "AS IS", and you, +its user, assume the entire risk as to its quality and accuracy. + +This software is copyright (C) 1991-2020, Thomas G. Lane, Guido Vollbeding. +All Rights Reserved except as specified below. + +Permission is hereby granted to use, copy, modify, and distribute this +software (or portions thereof) for any purpose, without fee, subject to these +conditions: +(1) If any part of the source code for this software is distributed, then this +README file must be included, with this copyright and no-warranty notice +unaltered; and any additions, deletions, or changes to the original files +must be clearly indicated in accompanying documentation. +(2) If only executable code is distributed, then the accompanying +documentation must state that "this software is based in part on the work of +the Independent JPEG Group". +(3) Permission for use of this software is granted only if the user accepts +full responsibility for any undesirable consequences; the authors accept +NO LIABILITY for damages of any kind. + +These conditions apply to any software derived from or based on the IJG code, +not just to the unmodified library. If you use our work, you ought to +acknowledge us. + +Permission is NOT granted for the use of any IJG author's name or company name +in advertising or publicity relating to this software or products derived from +it. This software may be referred to only as "the Independent JPEG Group's +software". + +We specifically permit and encourage the use of this software as the basis of +commercial products, provided that all warranty or liability claims are +assumed by the product vendor. + + +REFERENCES +========== + +We recommend reading one or more of these references before trying to +understand the innards of the JPEG software. + +The best short technical introduction to the JPEG compression algorithm is + Wallace, Gregory K. "The JPEG Still Picture Compression Standard", + Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44. +(Adjacent articles in that issue discuss MPEG motion picture compression, +applications of JPEG, and related topics.) If you don't have the CACM issue +handy, a PDF file containing a revised version of Wallace's article is +available at http://www.ijg.org/files/Wallace.JPEG.pdf. The file (actually +a preprint for an article that appeared in IEEE Trans. Consumer Electronics) +omits the sample images that appeared in CACM, but it includes corrections +and some added material. Note: the Wallace article is copyright ACM and IEEE, +and it may not be used for commercial purposes. + +A somewhat less technical, more leisurely introduction to JPEG can be found in +"The Data Compression Book" by Mark Nelson and Jean-loup Gailly, published by +M&T Books (New York), 2nd ed. 1996, ISBN 1-55851-434-1. This book provides +good explanations and example C code for a multitude of compression methods +including JPEG. It is an excellent source if you are comfortable reading C +code but don't know much about data compression in general. The book's JPEG +sample code is far from industrial-strength, but when you are ready to look +at a full implementation, you've got one here... + +The best currently available description of JPEG is the textbook "JPEG Still +Image Data Compression Standard" by William B. Pennebaker and Joan L. +Mitchell, published by Van Nostrand Reinhold, 1993, ISBN 0-442-01272-1. +Price US$59.95, 638 pp. The book includes the complete text of the ISO JPEG +standards (DIS 10918-1 and draft DIS 10918-2). + +The original JPEG standard is divided into two parts, Part 1 being the actual +specification, while Part 2 covers compliance testing methods. Part 1 is +titled "Digital Compression and Coding of Continuous-tone Still Images, +Part 1: Requirements and guidelines" and has document numbers ISO/IEC IS +10918-1, ITU-T T.81. Part 2 is titled "Digital Compression and Coding of +Continuous-tone Still Images, Part 2: Compliance testing" and has document +numbers ISO/IEC IS 10918-2, ITU-T T.83. + +The JPEG standard does not specify all details of an interchangeable file +format. For the omitted details, we follow the "JFIF" conventions, revision +1.02. JFIF version 1 has been adopted as ISO/IEC 10918-5 (05/2013) and +Recommendation ITU-T T.871 (05/2011): Information technology - Digital +compression and coding of continuous-tone still images: JPEG File Interchange +Format (JFIF). It is available as a free download in PDF file format from +https://www.iso.org/standard/54989.html and http://www.itu.int/rec/T-REC-T.871. +A PDF file of the older JFIF 1.02 specification is available at +http://www.w3.org/Graphics/JPEG/jfif3.pdf. + +The TIFF 6.0 file format specification can be obtained from +http://mirrors.ctan.org/graphics/tiff/TIFF6.ps.gz. The JPEG incorporation +scheme found in the TIFF 6.0 spec of 3-June-92 has a number of serious +problems. IJG does not recommend use of the TIFF 6.0 design (TIFF Compression +tag 6). Instead, we recommend the JPEG design proposed by TIFF Technical Note +#2 (Compression tag 7). Copies of this Note can be obtained from +http://www.ijg.org/files/. It is expected that the next revision +of the TIFF spec will replace the 6.0 JPEG design with the Note's design. +Although IJG's own code does not support TIFF/JPEG, the free libtiff library +uses our library to implement TIFF/JPEG per the Note. + + +ARCHIVE LOCATIONS +================= + +The "official" archive site for this software is www.ijg.org. +The most recent released version can always be found there in +directory "files". + +The JPEG FAQ (Frequently Asked Questions) article is a source of some +general information about JPEG. It is available at +http://www.faqs.org/faqs/jpeg-faq. + + +FILE FORMAT COMPATIBILITY +========================= + +This software implements ITU T.81 | ISO/IEC 10918 with some extensions from +ITU T.871 | ISO/IEC 10918-5 (JPEG File Interchange Format-- see REFERENCES). +Informally, the term "JPEG image" or "JPEG file" most often refers to JFIF or +a subset thereof, but there are other formats containing the name "JPEG" that +are incompatible with the original JPEG standard or with JFIF (for instance, +JPEG 2000 and JPEG XR). This software therefore does not support these +formats. Indeed, one of the original reasons for developing this free software +was to help force convergence on a common, interoperable format standard for +JPEG files. + +JFIF is a minimal or "low end" representation. TIFF/JPEG (TIFF revision 6.0 as +modified by TIFF Technical Note #2) can be used for "high end" applications +that need to record a lot of additional data about an image. + + +TO DO +===== + +Please send bug reports, offers of help, etc. to jpeg-info@jpegclub.org. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/libjpeg_turbo.md b/eat-rs/vendor/pdfium-macos-arm64/licenses/libjpeg_turbo.md new file mode 100644 index 0000000..a785258 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/libjpeg_turbo.md @@ -0,0 +1,135 @@ +libjpeg-turbo Licenses +====================== + +libjpeg-turbo is covered by two compatible BSD-style open source licenses: + +- The IJG (Independent JPEG Group) License, which is listed in + [README.ijg](README.ijg) + + This license applies to the libjpeg API library and associated programs, + including any code inherited from libjpeg and any modifications to that + code. Note that the libjpeg-turbo SIMD source code bears the + [zlib License](https://opensource.org/licenses/Zlib), but in the context of + the overall libjpeg API library, the terms of the zlib License are subsumed + by the terms of the IJG License. + +- The Modified (3-clause) BSD License, which is listed below + + This license applies to the TurboJPEG API library and associated programs, as + well as the build system. Note that the TurboJPEG API library wraps the + libjpeg API library, so in the context of the overall TurboJPEG API library, + both the terms of the IJG License and the terms of the Modified (3-clause) + BSD License apply. + + +Complying with the libjpeg-turbo Licenses +========================================= + +This section provides a roll-up of the libjpeg-turbo licensing terms, to the +best of our understanding. This is not a license in and of itself. It is +intended solely for clarification. + +1. If you are distributing a modified version of the libjpeg-turbo source, + then: + + 1. You cannot alter or remove any existing copyright or license notices + from the source. + + **Origin** + - Clause 1 of the IJG License + - Clause 1 of the Modified BSD License + - Clauses 1 and 3 of the zlib License + + 2. You must add your own copyright notice to the header of each source + file you modified, so others can tell that you modified that file. (If + there is not an existing copyright header in that file, then you can + simply add a notice stating that you modified the file.) + + **Origin** + - Clause 1 of the IJG License + - Clause 2 of the zlib License + + 3. You must include the IJG README file, and you must not alter any of the + copyright or license text in that file. + + **Origin** + - Clause 1 of the IJG License + +2. If you are distributing only libjpeg-turbo binaries without the source, or + if you are distributing an application that statically links with + libjpeg-turbo, then: + + 1. Your product documentation must include a message stating: + + This software is based in part on the work of the Independent JPEG + Group. + + **Origin** + - Clause 2 of the IJG license + + 2. If your binary distribution includes or uses the TurboJPEG API, then + your product documentation must include the text of the Modified BSD + License (see below.) + + **Origin** + - Clause 2 of the Modified BSD License + +3. You cannot use the name of the IJG or The libjpeg-turbo Project or the + contributors thereof in advertising, publicity, etc. + + **Origin** + - IJG License + - Clause 3 of the Modified BSD License + +4. The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be + free of defects, nor do we accept any liability for undesirable + consequences resulting from your use of the software. + + **Origin** + - IJG License + - Modified BSD License + - zlib License + + +The Modified (3-clause) BSD License +=================================== + +Copyright (C)2009-2024 D. R. Commander. All Rights Reserved.
+Copyright (C)2015 Viktor Szathmáry. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +- Neither the name of the libjpeg-turbo Project nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS", +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + + +Why Two Licenses? +================= + +The zlib License could have been used instead of the Modified (3-clause) BSD +License, and since the IJG License effectively subsumes the distribution +conditions of the zlib License, this would have effectively placed +libjpeg-turbo binary distributions under the IJG License. However, the IJG +License specifically refers to the Independent JPEG Group and does not extend +attribution and endorsement protections to other entities. Thus, it was +desirable to choose a license that granted us the same protections for new code +that were granted to the IJG for code derived from their software. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/libopenjpeg.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/libopenjpeg.txt new file mode 100644 index 0000000..89df544 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/libopenjpeg.txt @@ -0,0 +1,32 @@ +/* + * The copyright in this software is being made available under the 2-clauses + * BSD License, included below. This software may be subject to other third + * party and contributor rights, including patent rights, and no such rights + * are granted under this license. + * + * Copyright (c) 2005, Herve Drolon, FreeImage Team + * Copyright (c) 2008, 2011-2012, Centre National d'Etudes Spatiales (CNES), FR + * Copyright (c) 2012, CS Systemes d'Information, France + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/libpng.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/libpng.txt new file mode 100644 index 0000000..1b765ae --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/libpng.txt @@ -0,0 +1,134 @@ +COPYRIGHT NOTICE, DISCLAIMER, and LICENSE +========================================= + +PNG Reference Library License version 2 +--------------------------------------- + + * Copyright (c) 1995-2026 The PNG Reference Library Authors. + * Copyright (c) 2018-2026 Cosmin Truta. + * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. + * Copyright (c) 1996-1997 Andreas Dilger. + * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. + +The software is supplied "as is", without warranty of any kind, +express or implied, including, without limitation, the warranties +of merchantability, fitness for a particular purpose, title, and +non-infringement. In no event shall the Copyright owners, or +anyone distributing the software, be liable for any damages or +other liability, whether in contract, tort or otherwise, arising +from, out of, or in connection with the software, or the use or +other dealings in the software, even if advised of the possibility +of such damage. + +Permission is hereby granted to use, copy, modify, and distribute +this software, or portions hereof, for any purpose, without fee, +subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you + must not claim that you wrote the original software. If you + use this software in a product, an acknowledgment in the product + documentation would be appreciated, but is not required. + + 2. Altered source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + + +PNG Reference Library License version 1 (for libpng 0.5 through 1.6.35) +----------------------------------------------------------------------- + +libpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are +Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are +derived from libpng-1.0.6, and are distributed according to the same +disclaimer and license as libpng-1.0.6 with the following individuals +added to the list of Contributing Authors: + + Simon-Pierre Cadieux + Eric S. Raymond + Mans Rullgard + Cosmin Truta + Gilles Vollant + James Yu + Mandar Sahastrabuddhe + Google Inc. + Vadim Barkov + +and with the following additions to the disclaimer: + + There is no warranty against interference with your enjoyment of + the library or against infringement. There is no warranty that our + efforts or the library will fulfill any of your particular purposes + or needs. This library is provided with all faults, and the entire + risk of satisfactory quality, performance, accuracy, and effort is + with the user. + +Some files in the "contrib" directory and some configure-generated +files that are distributed with libpng have other copyright owners, and +are released under other open source licenses. + +libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are +Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from +libpng-0.96, and are distributed according to the same disclaimer and +license as libpng-0.96, with the following individuals added to the +list of Contributing Authors: + + Tom Lane + Glenn Randers-Pehrson + Willem van Schaik + +libpng versions 0.89, June 1996, through 0.96, May 1997, are +Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88, +and are distributed according to the same disclaimer and license as +libpng-0.88, with the following individuals added to the list of +Contributing Authors: + + John Bowler + Kevin Bracey + Sam Bushell + Magnus Holmgren + Greg Roelofs + Tom Tanner + +Some files in the "scripts" directory have other copyright owners, +but are released under this license. + +libpng versions 0.5, May 1995, through 0.88, January 1996, are +Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. + +For the purposes of this copyright and license, "Contributing Authors" +is defined as the following set of individuals: + + Andreas Dilger + Dave Martindale + Guy Eric Schalnat + Paul Schmidt + Tim Wegner + +The PNG Reference Library is supplied "AS IS". The Contributing +Authors and Group 42, Inc. disclaim all warranties, expressed or +implied, including, without limitation, the warranties of +merchantability and of fitness for any purpose. The Contributing +Authors and Group 42, Inc. assume no liability for direct, indirect, +incidental, special, exemplary, or consequential damages, which may +result from the use of the PNG Reference Library, even if advised of +the possibility of such damage. + +Permission is hereby granted to use, copy, modify, and distribute this +source code, or portions hereof, for any purpose, without fee, subject +to the following restrictions: + + 1. The origin of this source code must not be misrepresented. + + 2. Altered versions must be plainly marked as such and must not + be misrepresented as being the original source. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + +The Contributing Authors and Group 42, Inc. specifically permit, +without fee, and encourage the use of this source code as a component +to supporting the PNG file format in commercial products. If you use +this source code in a product, acknowledgment is not required but would +be appreciated. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/llvm-libc.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/llvm-libc.txt new file mode 100644 index 0000000..24806ab --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/llvm-libc.txt @@ -0,0 +1,278 @@ +============================================================================== +The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: +============================================================================== + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +---- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. + +============================================================================== +Software from third parties included in the LLVM Project: +============================================================================== +The LLVM Project contains third party software which is under different license +terms. All such code will be identified clearly using at least one of two +mechanisms: +1) It will be in a separate directory tree with its own `LICENSE.txt` or + `LICENSE` file at the top containing the specific license and restrictions + which apply to that software, or +2) It will contain specific license and restriction terms at the top of every + file. + +============================================================================== +Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2007-2019 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/pdfium.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/pdfium.txt new file mode 100644 index 0000000..161ca16 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/pdfium.txt @@ -0,0 +1,230 @@ +// Copyright 2014 The PDFium Authors +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/simdutf.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/simdutf.txt new file mode 100644 index 0000000..74c8302 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/simdutf.txt @@ -0,0 +1,18 @@ +Copyright 2021 The simdutf authors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/eat-rs/vendor/pdfium-macos-arm64/licenses/zlib.txt b/eat-rs/vendor/pdfium-macos-arm64/licenses/zlib.txt new file mode 100644 index 0000000..f664e82 --- /dev/null +++ b/eat-rs/vendor/pdfium-macos-arm64/licenses/zlib.txt @@ -0,0 +1,29 @@ +/* zlib.h -- interface of the 'zlib' general purpose compression library + version 1.3.2.1, February xxth, 2026 + + Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + + + The data format used by the zlib library is described by RFCs (Request for + Comments) 1950 to 1952 at https://datatracker.ietf.org/doc/html/rfc1950 + (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). +*/ diff --git a/eat-rs/vendor/pdfium-win-x64/LICENSE b/eat-rs/vendor/pdfium-win-x64/LICENSE new file mode 100644 index 0000000..34239ca --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/LICENSE @@ -0,0 +1,9 @@ +Copyright 2014-2025 Benoit Blanchon + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +This package also includes third-party software. See the licenses/ directory for their respective licenses. diff --git a/eat-rs/vendor/pdfium-win-x64/PDFiumConfig.cmake b/eat-rs/vendor/pdfium-win-x64/PDFiumConfig.cmake new file mode 100644 index 0000000..a5285d9 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/PDFiumConfig.cmake @@ -0,0 +1,61 @@ +# PDFium Package Configuration for CMake +# +# To use PDFium in your CMake project: +# +# 1. set the environment variable PDFium_DIR to the folder containing this file. +# 2. in your CMakeLists.txt, add +# find_package(PDFium) +# 3. then link your executable with PDFium +# target_link_libraries(my_exe pdfium) + +include(FindPackageHandleStandardArgs) + +find_path(PDFium_INCLUDE_DIR + NAMES "fpdfview.h" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "include" +) + +set(PDFium_VERSION "159.0.8152.0") + +if(WIN32) + find_file(PDFium_LIBRARY + NAMES "pdfium.dll" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "bin") + + find_file(PDFium_IMPLIB + NAMES "pdfium.dll.lib" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "lib") + + add_library(pdfium SHARED IMPORTED) + set_target_properties(pdfium + PROPERTIES + IMPORTED_LOCATION "${PDFium_LIBRARY}" + IMPORTED_IMPLIB "${PDFium_IMPLIB}" + INTERFACE_INCLUDE_DIRECTORIES "${PDFium_INCLUDE_DIR};${PDFium_INCLUDE_DIR}/cpp" + ) + + find_package_handle_standard_args(PDFium + REQUIRED_VARS PDFium_LIBRARY PDFium_IMPLIB PDFium_INCLUDE_DIR + VERSION_VAR PDFium_VERSION + ) +else() + find_library(PDFium_LIBRARY + NAMES "pdfium" + PATHS "${CMAKE_CURRENT_LIST_DIR}" + PATH_SUFFIXES "lib") + + add_library(pdfium SHARED IMPORTED) + set_target_properties(pdfium + PROPERTIES + IMPORTED_LOCATION "${PDFium_LIBRARY}" + INTERFACE_INCLUDE_DIRECTORIES "${PDFium_INCLUDE_DIR};${PDFium_INCLUDE_DIR}/cpp" + ) + + find_package_handle_standard_args(PDFium + REQUIRED_VARS PDFium_LIBRARY PDFium_INCLUDE_DIR + VERSION_VAR PDFium_VERSION + ) +endif() diff --git a/eat-rs/vendor/pdfium-win-x64/VERSION b/eat-rs/vendor/pdfium-win-x64/VERSION new file mode 100644 index 0000000..e7b4393 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/VERSION @@ -0,0 +1,4 @@ +MAJOR=159 +MINOR=0 +BUILD=8152 +PATCH=0 diff --git a/eat-rs/vendor/pdfium-win-x64/args.gn b/eat-rs/vendor/pdfium-win-x64/args.gn new file mode 100644 index 0000000..39849d7 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/args.gn @@ -0,0 +1,9 @@ +is_component_build = false +is_debug = false +pdf_enable_v8 = false +pdf_enable_xfa = false +pdf_is_standalone = true +pdf_use_partition_alloc = false +target_cpu = "x64" +target_os = "win" +treat_warnings_as_errors = false diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/abseil.txt b/eat-rs/vendor/pdfium-win-x64/licenses/abseil.txt new file mode 100644 index 0000000..5f1cb8a --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/abseil.txt @@ -0,0 +1,203 @@ + + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/agg23.txt b/eat-rs/vendor/pdfium-win-x64/licenses/agg23.txt new file mode 100644 index 0000000..3040a2b --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/agg23.txt @@ -0,0 +1,14 @@ +//---------------------------------------------------------------------------- +// Anti-Grain Geometry - Version 2.3 +// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) +// +// Permission to copy, use, modify, sell and distribute this software +// is granted provided this copyright notice appears in all copies. +// This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. +// +//---------------------------------------------------------------------------- +// Contact: mcseem@antigrain.com +// mcseemagg@yahoo.com +// http://www.antigrain.com +//---------------------------------------------------------------------------- diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/dragonbox-Apache2-LLVM.txt b/eat-rs/vendor/pdfium-win-x64/licenses/dragonbox-Apache2-LLVM.txt new file mode 100644 index 0000000..b849e09 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/dragonbox-Apache2-LLVM.txt @@ -0,0 +1,218 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +--- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/dragonbox-Boost.txt b/eat-rs/vendor/pdfium-win-x64/licenses/dragonbox-Boost.txt new file mode 100644 index 0000000..1dad8e9 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/dragonbox-Boost.txt @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/fast_float.txt b/eat-rs/vendor/pdfium-win-x64/licenses/fast_float.txt new file mode 100644 index 0000000..15ef4cf --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/fast_float.txt @@ -0,0 +1,27 @@ +MIT License + +Copyright (c) 2021 The fast_float authors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/freetype.txt b/eat-rs/vendor/pdfium-win-x64/licenses/freetype.txt new file mode 100644 index 0000000..bbaba33 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/freetype.txt @@ -0,0 +1,169 @@ + The FreeType Project LICENSE + ---------------------------- + + 2006-Jan-27 + + Copyright 1996-2002, 2006 by + David Turner, Robert Wilhelm, and Werner Lemberg + + + +Introduction +============ + + The FreeType Project is distributed in several archive packages; + some of them may contain, in addition to the FreeType font engine, + various tools and contributions which rely on, or relate to, the + FreeType Project. + + This license applies to all files found in such packages, and + which do not fall under their own explicit license. The license + affects thus the FreeType font engine, the test programs, + documentation and makefiles, at the very least. + + This license was inspired by the BSD, Artistic, and IJG + (Independent JPEG Group) licenses, which all encourage inclusion + and use of free software in commercial and freeware products + alike. As a consequence, its main points are that: + + o We don't promise that this software works. However, we will be + interested in any kind of bug reports. (`as is' distribution) + + o You can use this software for whatever you want, in parts or + full form, without having to pay us. (`royalty-free' usage) + + o You may not pretend that you wrote this software. If you use + it, or only parts of it, in a program, you must acknowledge + somewhere in your documentation that you have used the + FreeType code. (`credits') + + We specifically permit and encourage the inclusion of this + software, with or without modifications, in commercial products. + We disclaim all warranties covering The FreeType Project and + assume no liability related to The FreeType Project. + + + Finally, many people asked us for a preferred form for a + credit/disclaimer to use in compliance with this license. We thus + encourage you to use the following text: + + """ + Portions of this software are copyright © The FreeType + Project (www.freetype.org). All rights reserved. + """ + + Please replace with the value from the FreeType version you + actually use. + + +Legal Terms +=========== + +0. Definitions +-------------- + + Throughout this license, the terms `package', `FreeType Project', + and `FreeType archive' refer to the set of files originally + distributed by the authors (David Turner, Robert Wilhelm, and + Werner Lemberg) as the `FreeType Project', be they named as alpha, + beta or final release. + + `You' refers to the licensee, or person using the project, where + `using' is a generic term including compiling the project's source + code as well as linking it to form a `program' or `executable'. + This program is referred to as `a program using the FreeType + engine'. + + This license applies to all files distributed in the original + FreeType Project, including all source code, binaries and + documentation, unless otherwise stated in the file in its + original, unmodified form as distributed in the original archive. + If you are unsure whether or not a particular file is covered by + this license, you must contact us to verify this. + + The FreeType Project is copyright (C) 1996-2000 by David Turner, + Robert Wilhelm, and Werner Lemberg. All rights reserved except as + specified below. + +1. No Warranty +-------------- + + THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO + USE, OF THE FREETYPE PROJECT. + +2. Redistribution +----------------- + + This license grants a worldwide, royalty-free, perpetual and + irrevocable right and license to use, execute, perform, compile, + display, copy, create derivative works of, distribute and + sublicense the FreeType Project (in both source and object code + forms) and derivative works thereof for any purpose; and to + authorize others to exercise some or all of the rights granted + herein, subject to the following conditions: + + o Redistribution of source code must retain this license file + (`FTL.TXT') unaltered; any additions, deletions or changes to + the original files must be clearly indicated in accompanying + documentation. The copyright notices of the unaltered, + original files must be preserved in all copies of source + files. + + o Redistribution in binary form must provide a disclaimer that + states that the software is based in part of the work of the + FreeType Team, in the distribution documentation. We also + encourage you to put an URL to the FreeType web page in your + documentation, though this isn't mandatory. + + These conditions apply to any software derived from or based on + the FreeType Project, not just the unmodified files. If you use + our work, you must acknowledge us. However, no fee need be paid + to us. + +3. Advertising +-------------- + + Neither the FreeType authors and contributors nor you shall use + the name of the other for commercial, advertising, or promotional + purposes without specific prior written permission. + + We suggest, but do not require, that you use one or more of the + following phrases to refer to this software in your documentation + or advertising materials: `FreeType Project', `FreeType Engine', + `FreeType library', or `FreeType Distribution'. + + As you have not signed this license, you are not required to + accept it. However, as the FreeType Project is copyrighted + material, only this license, or another one contracted with the + authors, grants you the right to use, distribute, and modify it. + Therefore, by using, distributing, or modifying the FreeType + Project, you indicate that you understand and accept all the terms + of this license. + +4. Contacts +----------- + + There are two mailing lists related to FreeType: + + o freetype@nongnu.org + + Discusses general use and applications of FreeType, as well as + future and wanted additions to the library and distribution. + If you are looking for support, start in this list if you + haven't found anything to help you in the documentation. + + o freetype-devel@nongnu.org + + Discusses bugs, as well as engine internals, design issues, + specific licenses, porting, etc. + + Our home page can be found at + + http://www.freetype.org + + +--- end of FTL.TXT --- diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/harfbuzz.txt b/eat-rs/vendor/pdfium-win-x64/licenses/harfbuzz.txt new file mode 100644 index 0000000..be7c0a1 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/harfbuzz.txt @@ -0,0 +1,42 @@ +HarfBuzz is licensed under the so-called "Old MIT" license. Details follow. +For parts of HarfBuzz that are licensed under different licenses see individual +files names COPYING in subdirectories where applicable. + +Copyright © 2010-2022 Google, Inc. +Copyright © 2015-2020 Ebrahim Byagowi +Copyright © 2019,2020 Facebook, Inc. +Copyright © 2012,2015 Mozilla Foundation +Copyright © 2011 Codethink Limited +Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies) +Copyright © 2009 Keith Stribley +Copyright © 2011 Martin Hosken and SIL International +Copyright © 2007 Chris Wilson +Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod +Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc. +Copyright © 1998-2005 David Turner and Werner Lemberg +Copyright © 2016 Igalia S.L. +Copyright © 2022 Matthias Clasen +Copyright © 2018,2021 Khaled Hosny +Copyright © 2018,2019,2020 Adobe, Inc +Copyright © 2013-2015 Alexei Podtelezhnikov + +For full copyright notices consult the individual files in the package. + + +Permission is hereby granted, without written agreement and without +license or royalty fees, to use, copy, modify, and distribute this +software and its documentation for any purpose, provided that the +above copyright notice and the following two paragraphs appear in +all copies of this software. + +IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR +DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN +IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + +THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS +ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO +PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/highway.txt b/eat-rs/vendor/pdfium-win-x64/licenses/highway.txt new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/highway.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/icu.txt b/eat-rs/vendor/pdfium-win-x64/licenses/icu.txt new file mode 100644 index 0000000..f27631c --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/icu.txt @@ -0,0 +1,568 @@ +UNICODE LICENSE V3 + +COPYRIGHT AND PERMISSION NOTICE + +Copyright © 2016-2025 Unicode, Inc. + +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. + +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. + +SPDX-License-Identifier: Unicode-3.0 + +---------------------------------------------------------------------- + +Third-Party Software Licenses + +This section contains third-party software notices and/or additional +terms for licensed third-party software components included within ICU +libraries. + +---------------------------------------------------------------------- + +ICU License - ICU 1.8.1 to ICU 57.1 + +COPYRIGHT AND PERMISSION NOTICE + +Copyright (c) 1995-2016 International Business Machines Corporation and others +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, provided that the above +copyright notice(s) and this permission notice appear in all copies of +the Software and that both the above copyright notice(s) and this +permission notice appear in supporting documentation. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY +SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER +RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF +CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Except as contained in this notice, the name of a copyright holder +shall not be used in advertising or otherwise to promote the sale, use +or other dealings in this Software without prior written authorization +of the copyright holder. + +All trademarks and registered trademarks mentioned herein are the +property of their respective owners. + +---------------------------------------------------------------------- + +Chinese/Japanese Word Break Dictionary Data (cjdict.txt) + + # The Google Chrome software developed by Google is licensed under + # the BSD license. Other software included in this distribution is + # provided under other licenses, as set forth below. + # + # The BSD License + # http://opensource.org/licenses/bsd-license.php + # Copyright (C) 2006-2008, Google Inc. + # + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions are met: + # + # Redistributions of source code must retain the above copyright notice, + # this list of conditions and the following disclaimer. + # Redistributions in binary form must reproduce the above + # copyright notice, this list of conditions and the following + # disclaimer in the documentation and/or other materials provided with + # the distribution. + # Neither the name of Google Inc. nor the names of its + # contributors may be used to endorse or promote products derived from + # this software without specific prior written permission. + # + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + # + # + # The word list in cjdict.txt are generated by combining three word lists + # listed below with further processing for compound word breaking. The + # frequency is generated with an iterative training against Google web + # corpora. + # + # * Libtabe (Chinese) + # - https://sourceforge.net/project/?group_id=1519 + # - Its license terms and conditions are shown below. + # + # * IPADIC (Japanese) + # - http://chasen.aist-nara.ac.jp/chasen/distribution.html + # - Its license terms and conditions are shown below. + # + # ---------COPYING.libtabe ---- BEGIN-------------------- + # + # /* + # * Copyright (c) 1999 TaBE Project. + # * Copyright (c) 1999 Pai-Hsiang Hsiao. + # * All rights reserved. + # * + # * Redistribution and use in source and binary forms, with or without + # * modification, are permitted provided that the following conditions + # * are met: + # * + # * . Redistributions of source code must retain the above copyright + # * notice, this list of conditions and the following disclaimer. + # * . Redistributions in binary form must reproduce the above copyright + # * notice, this list of conditions and the following disclaimer in + # * the documentation and/or other materials provided with the + # * distribution. + # * . Neither the name of the TaBE Project nor the names of its + # * contributors may be used to endorse or promote products derived + # * from this software without specific prior written permission. + # * + # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # * OF THE POSSIBILITY OF SUCH DAMAGE. + # */ + # + # /* + # * Copyright (c) 1999 Computer Systems and Communication Lab, + # * Institute of Information Science, Academia + # * Sinica. All rights reserved. + # * + # * Redistribution and use in source and binary forms, with or without + # * modification, are permitted provided that the following conditions + # * are met: + # * + # * . Redistributions of source code must retain the above copyright + # * notice, this list of conditions and the following disclaimer. + # * . Redistributions in binary form must reproduce the above copyright + # * notice, this list of conditions and the following disclaimer in + # * the documentation and/or other materials provided with the + # * distribution. + # * . Neither the name of the Computer Systems and Communication Lab + # * nor the names of its contributors may be used to endorse or + # * promote products derived from this software without specific + # * prior written permission. + # * + # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # * OF THE POSSIBILITY OF SUCH DAMAGE. + # */ + # + # Copyright 1996 Chih-Hao Tsai @ Beckman Institute, + # University of Illinois + # c-tsai4@uiuc.edu http://casper.beckman.uiuc.edu/~c-tsai4 + # + # ---------------COPYING.libtabe-----END-------------------------------- + # + # + # ---------------COPYING.ipadic-----BEGIN------------------------------- + # + # Copyright 2000, 2001, 2002, 2003 Nara Institute of Science + # and Technology. All Rights Reserved. + # + # Use, reproduction, and distribution of this software is permitted. + # Any copy of this software, whether in its original form or modified, + # must include both the above copyright notice and the following + # paragraphs. + # + # Nara Institute of Science and Technology (NAIST), + # the copyright holders, disclaims all warranties with regard to this + # software, including all implied warranties of merchantability and + # fitness, in no event shall NAIST be liable for + # any special, indirect or consequential damages or any damages + # whatsoever resulting from loss of use, data or profits, whether in an + # action of contract, negligence or other tortuous action, arising out + # of or in connection with the use or performance of this software. + # + # A large portion of the dictionary entries + # originate from ICOT Free Software. The following conditions for ICOT + # Free Software applies to the current dictionary as well. + # + # Each User may also freely distribute the Program, whether in its + # original form or modified, to any third party or parties, PROVIDED + # that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear + # on, or be attached to, the Program, which is distributed substantially + # in the same form as set out herein and that such intended + # distribution, if actually made, will neither violate or otherwise + # contravene any of the laws and regulations of the countries having + # jurisdiction over the User or the intended distribution itself. + # + # NO WARRANTY + # + # The program was produced on an experimental basis in the course of the + # research and development conducted during the project and is provided + # to users as so produced on an experimental basis. Accordingly, the + # program is provided without any warranty whatsoever, whether express, + # implied, statutory or otherwise. The term "warranty" used herein + # includes, but is not limited to, any warranty of the quality, + # performance, merchantability and fitness for a particular purpose of + # the program and the nonexistence of any infringement or violation of + # any right of any third party. + # + # Each user of the program will agree and understand, and be deemed to + # have agreed and understood, that there is no warranty whatsoever for + # the program and, accordingly, the entire risk arising from or + # otherwise connected with the program is assumed by the user. + # + # Therefore, neither ICOT, the copyright holder, or any other + # organization that participated in or was otherwise related to the + # development of the program and their respective officials, directors, + # officers and other employees shall be held liable for any and all + # damages, including, without limitation, general, special, incidental + # and consequential damages, arising out of or otherwise in connection + # with the use or inability to use the program or any product, material + # or result produced or otherwise obtained by using the program, + # regardless of whether they have been advised of, or otherwise had + # knowledge of, the possibility of such damages at any time during the + # project or thereafter. Each user will be deemed to have agreed to the + # foregoing by his or her commencement of use of the program. The term + # "use" as used herein includes, but is not limited to, the use, + # modification, copying and distribution of the program and the + # production of secondary products from the program. + # + # In the case where the program, whether in its original form or + # modified, was distributed or delivered to or received by a user from + # any person, organization or entity other than ICOT, unless it makes or + # grants independently of ICOT any specific warranty to the user in + # writing, such person, organization or entity, will also be exempted + # from and not be held liable to the user for any such damages as noted + # above as far as the program is concerned. + # + # ---------------COPYING.ipadic-----END---------------------------------- + +---------------------------------------------------------------------- + +Lao Word Break Dictionary Data (laodict.txt) + + # Copyright (C) 2016 and later: Unicode, Inc. and others. + # License & terms of use: http://www.unicode.org/copyright.html + # Copyright (c) 2015 International Business Machines Corporation + # and others. All Rights Reserved. + # + # Project: https://github.com/rober42539/lao-dictionary + # Dictionary: https://github.com/rober42539/lao-dictionary/laodict.txt + # License: https://github.com/rober42539/lao-dictionary/LICENSE.txt + # (copied below) + # + # This file is derived from the above dictionary version of Nov 22, 2020 + # ---------------------------------------------------------------------- + # Copyright (C) 2013 Brian Eugene Wilson, Robert Martin Campbell. + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions are met: + # + # Redistributions of source code must retain the above copyright notice, this + # list of conditions and the following disclaimer. Redistributions in binary + # form must reproduce the above copyright notice, this list of conditions and + # the following disclaimer in the documentation and/or other materials + # provided with the distribution. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # OF THE POSSIBILITY OF SUCH DAMAGE. + # -------------------------------------------------------------------------- + +---------------------------------------------------------------------- + +Burmese Word Break Dictionary Data (burmesedict.txt) + + # Copyright (c) 2014 International Business Machines Corporation + # and others. All Rights Reserved. + # + # This list is part of a project hosted at: + # github.com/kanyawtech/myanmar-karen-word-lists + # + # -------------------------------------------------------------------------- + # Copyright (c) 2013, LeRoy Benjamin Sharon + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions + # are met: Redistributions of source code must retain the above + # copyright notice, this list of conditions and the following + # disclaimer. Redistributions in binary form must reproduce the + # above copyright notice, this list of conditions and the following + # disclaimer in the documentation and/or other materials provided + # with the distribution. + # + # Neither the name Myanmar Karen Word Lists, nor the names of its + # contributors may be used to endorse or promote products derived + # from this software without specific prior written permission. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS + # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF + # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + # SUCH DAMAGE. + # -------------------------------------------------------------------------- + +---------------------------------------------------------------------- + +Time Zone Database + + ICU uses the public domain data and code derived from Time Zone +Database for its time zone support. The ownership of the TZ database +is explained in BCP 175: Procedure for Maintaining the Time Zone +Database section 7. + + # 7. Database Ownership + # + # The TZ database itself is not an IETF Contribution or an IETF + # document. Rather it is a pre-existing and regularly updated work + # that is in the public domain, and is intended to remain in the + # public domain. Therefore, BCPs 78 [RFC5378] and 79 [RFC3979] do + # not apply to the TZ Database or contributions that individuals make + # to it. Should any claims be made and substantiated against the TZ + # Database, the organization that is providing the IANA + # Considerations defined in this RFC, under the memorandum of + # understanding with the IETF, currently ICANN, may act in accordance + # with all competent court orders. No ownership claims will be made + # by ICANN or the IETF Trust on the database or the code. Any person + # making a contribution to the database or code waives all rights to + # future claims in that contribution or in the TZ Database. + +---------------------------------------------------------------------- + +Google double-conversion + +Copyright 2006-2011, the V8 project authors. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---------------------------------------------------------------------- + +JSON parsing library (nlohmann/json) + +File: vendor/json/upstream/single_include/nlohmann/json.hpp (only for ICU4C) + +MIT License + +Copyright (c) 2013-2022 Niels Lohmann + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +---------------------------------------------------------------------- + +File: aclocal.m4 (only for ICU4C) +Section: pkg.m4 - Macros to locate and utilise pkg-config. + + +Copyright © 2004 Scott James Remnant . +Copyright © 2012-2015 Dan Nicholson + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. + +As a special exception to the GNU General Public License, if you +distribute this file as part of a program that contains a +configuration script generated by Autoconf, you may include it under +the same distribution terms that you use for the rest of that +program. + + +(The condition for the exception is fulfilled because +ICU4C includes a configuration script generated by Autoconf, +namely the `configure` script.) + +---------------------------------------------------------------------- + +File: config.guess (only for ICU4C) + + +This file is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, see . + +As a special exception to the GNU General Public License, if you +distribute this file as part of a program that contains a +configuration script generated by Autoconf, you may include it under +the same distribution terms that you use for the rest of that +program. This Exception is an additional permission under section 7 +of the GNU General Public License, version 3 ("GPLv3"). + + +(The condition for the exception is fulfilled because +ICU4C includes a configuration script generated by Autoconf, +namely the `configure` script.) + +---------------------------------------------------------------------- + +File: install-sh (only for ICU4C) + + +Copyright 1991 by the Massachusetts Institute of Technology + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation, and that the name of M.I.T. not be used in advertising or +publicity pertaining to distribution of the software without specific, +written prior permission. M.I.T. makes no representations about the +suitability of this software for any purpose. It is provided "as is" +without express or implied warranty. + +---------------------------------------------------------------------- + +File: sorttable.js (only for ICU4J) + +The MIT Licence, for code from kryogenix.org + +Code downloaded from the Browser Experiments section of kryogenix.org is +licenced under the so-called MIT licence. The licence is below. + +Copyright (c) 1997-date Stuart Langridge + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/lcms.txt b/eat-rs/vendor/pdfium-win-x64/licenses/lcms.txt new file mode 100644 index 0000000..a657cd9 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/lcms.txt @@ -0,0 +1,27 @@ +//--------------------------------------------------------------------------------- +// +// Little Color Management System +// Copyright (c) 1998-2026 Marti Maria Saguer +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the Software +// is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//--------------------------------------------------------------------------------- +// +// Version 2.19 +// diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/libjpeg_turbo.ijg b/eat-rs/vendor/pdfium-win-x64/licenses/libjpeg_turbo.ijg new file mode 100644 index 0000000..1e5525c --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/libjpeg_turbo.ijg @@ -0,0 +1,260 @@ +libjpeg-turbo note: This file has been modified by The libjpeg-turbo Project +to include only information relevant to libjpeg-turbo, to wordsmith certain +sections, and to remove impolitic language that existed in the libjpeg v8 +README. It is included only for reference. Please see README.md for +information specific to libjpeg-turbo. + + +The Independent JPEG Group's JPEG software +========================================== + +This distribution contains a release of the Independent JPEG Group's free JPEG +software. You are welcome to redistribute this software and to use it for any +purpose, subject to the conditions under LEGAL ISSUES, below. + +This software is the work of Tom Lane, Guido Vollbeding, Philip Gladstone, +Bill Allombert, Jim Boucher, Lee Crocker, Bob Friesenhahn, Ben Jackson, +Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi, Ge' Weijers, +and other members of the Independent JPEG Group. + +IJG is not affiliated with the ISO/IEC JTC1/SC29/WG1 standards committee +(also known as JPEG, together with ITU-T SG16). + + +DOCUMENTATION ROADMAP +===================== + +This file contains the following sections: + +OVERVIEW General description of JPEG and the IJG software. +LEGAL ISSUES Copyright, lack of warranty, terms of distribution. +REFERENCES Where to learn more about JPEG. +ARCHIVE LOCATIONS Where to find newer versions of this software. +FILE FORMAT WARS Software *not* to get. +TO DO Plans for future IJG releases. + +Other documentation files in the distribution are: + +User documentation: + doc/usage.txt Usage instructions for cjpeg, djpeg, jpegtran, + rdjpgcom, and wrjpgcom. + doc/*.1 Unix-style man pages for programs (same info as + usage.txt). + doc/wizard.txt Advanced usage instructions for JPEG wizards only. + doc/change.log Version-to-version change highlights. +Programmer and internal documentation: + doc/libjpeg.txt How to use the JPEG library in your own programs. + src/example.c Sample code for calling the JPEG library. + doc/structure.txt Overview of the JPEG library's internal structure. + doc/coderules.txt Coding style rules --- please read if you contribute + code. + +Please read at least usage.txt. Some information can also be found in the JPEG +FAQ (Frequently Asked Questions) article. See ARCHIVE LOCATIONS below to find +out where to obtain the FAQ article. + +If you want to understand how the JPEG code works, we suggest reading one or +more of the REFERENCES, then looking at the documentation files (in roughly +the order listed) before diving into the code. + + +OVERVIEW +======== + +This package contains C software to implement JPEG image encoding, decoding, +and transcoding. JPEG (pronounced "jay-peg") is a standardized compression +method for full-color and grayscale images. JPEG's strong suit is compressing +photographic images or other types of images that have smooth color and +brightness transitions between neighboring pixels. Images with sharp lines or +other abrupt features may not compress well with JPEG, and a higher JPEG +quality may have to be used to avoid visible compression artifacts with such +images. + +JPEG is normally lossy, meaning that the output pixels are not necessarily +identical to the input pixels. However, on photographic content and other +"smooth" images, very good compression ratios can be obtained with no visible +compression artifacts, and extremely high compression ratios are possible if +you are willing to sacrifice image quality (by reducing the "quality" setting +in the compressor.) + +This software implements JPEG baseline, extended-sequential, progressive, and +lossless compression processes. Provision is made for supporting all variants +of these processes, although some uncommon parameter settings aren't +implemented yet. We have made no provision for supporting the hierarchical +processes defined in the standard. + +We provide a set of library routines for reading and writing JPEG image files, +plus two sample applications "cjpeg" and "djpeg", which use the library to +perform conversion between JPEG and some other popular image file formats. +The library is intended to be reused in other applications. + +In order to support file conversion and viewing software, we have included +considerable functionality beyond the bare JPEG coding/decoding capability; +for example, the color quantization modules are not strictly part of JPEG +decoding, but they are essential for output to colormapped file formats. These +extra functions can be compiled out of the library if not required for a +particular application. + +We have also included "jpegtran", a utility for lossless transcoding between +different JPEG processes, and "rdjpgcom" and "wrjpgcom", two simple +applications for inserting and extracting textual comments in JFIF files. + +The emphasis in designing this software has been on achieving portability and +flexibility, while also making it fast enough to be useful. In particular, +the software is not intended to be read as a tutorial on JPEG. (See the +REFERENCES section for introductory material.) Rather, it is intended to +be reliable, portable, industrial-strength code. We do not claim to have +achieved that goal in every aspect of the software, but we strive for it. + +We welcome the use of this software as a component of commercial products. +No royalty is required, but we do ask for an acknowledgement in product +documentation, as described under LEGAL ISSUES. + + +LEGAL ISSUES +============ + +In plain English: + +1. We don't promise that this software works. (But if you find any bugs, + please let us know!) +2. You can use this software for whatever you want. You don't have to pay us. +3. You may not pretend that you wrote this software. If you use it in a + program, you must acknowledge somewhere in your documentation that + you've used the IJG code. + +In legalese: + +The authors make NO WARRANTY or representation, either express or implied, +with respect to this software, its quality, accuracy, merchantability, or +fitness for a particular purpose. This software is provided "AS IS", and you, +its user, assume the entire risk as to its quality and accuracy. + +This software is copyright (C) 1991-2020, Thomas G. Lane, Guido Vollbeding. +All Rights Reserved except as specified below. + +Permission is hereby granted to use, copy, modify, and distribute this +software (or portions thereof) for any purpose, without fee, subject to these +conditions: +(1) If any part of the source code for this software is distributed, then this +README file must be included, with this copyright and no-warranty notice +unaltered; and any additions, deletions, or changes to the original files +must be clearly indicated in accompanying documentation. +(2) If only executable code is distributed, then the accompanying +documentation must state that "this software is based in part on the work of +the Independent JPEG Group". +(3) Permission for use of this software is granted only if the user accepts +full responsibility for any undesirable consequences; the authors accept +NO LIABILITY for damages of any kind. + +These conditions apply to any software derived from or based on the IJG code, +not just to the unmodified library. If you use our work, you ought to +acknowledge us. + +Permission is NOT granted for the use of any IJG author's name or company name +in advertising or publicity relating to this software or products derived from +it. This software may be referred to only as "the Independent JPEG Group's +software". + +We specifically permit and encourage the use of this software as the basis of +commercial products, provided that all warranty or liability claims are +assumed by the product vendor. + + +REFERENCES +========== + +We recommend reading one or more of these references before trying to +understand the innards of the JPEG software. + +The best short technical introduction to the JPEG compression algorithm is + Wallace, Gregory K. "The JPEG Still Picture Compression Standard", + Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44. +(Adjacent articles in that issue discuss MPEG motion picture compression, +applications of JPEG, and related topics.) If you don't have the CACM issue +handy, a PDF file containing a revised version of Wallace's article is +available at http://www.ijg.org/files/Wallace.JPEG.pdf. The file (actually +a preprint for an article that appeared in IEEE Trans. Consumer Electronics) +omits the sample images that appeared in CACM, but it includes corrections +and some added material. Note: the Wallace article is copyright ACM and IEEE, +and it may not be used for commercial purposes. + +A somewhat less technical, more leisurely introduction to JPEG can be found in +"The Data Compression Book" by Mark Nelson and Jean-loup Gailly, published by +M&T Books (New York), 2nd ed. 1996, ISBN 1-55851-434-1. This book provides +good explanations and example C code for a multitude of compression methods +including JPEG. It is an excellent source if you are comfortable reading C +code but don't know much about data compression in general. The book's JPEG +sample code is far from industrial-strength, but when you are ready to look +at a full implementation, you've got one here... + +The best currently available description of JPEG is the textbook "JPEG Still +Image Data Compression Standard" by William B. Pennebaker and Joan L. +Mitchell, published by Van Nostrand Reinhold, 1993, ISBN 0-442-01272-1. +Price US$59.95, 638 pp. The book includes the complete text of the ISO JPEG +standards (DIS 10918-1 and draft DIS 10918-2). + +The original JPEG standard is divided into two parts, Part 1 being the actual +specification, while Part 2 covers compliance testing methods. Part 1 is +titled "Digital Compression and Coding of Continuous-tone Still Images, +Part 1: Requirements and guidelines" and has document numbers ISO/IEC IS +10918-1, ITU-T T.81. Part 2 is titled "Digital Compression and Coding of +Continuous-tone Still Images, Part 2: Compliance testing" and has document +numbers ISO/IEC IS 10918-2, ITU-T T.83. + +The JPEG standard does not specify all details of an interchangeable file +format. For the omitted details, we follow the "JFIF" conventions, revision +1.02. JFIF version 1 has been adopted as ISO/IEC 10918-5 (05/2013) and +Recommendation ITU-T T.871 (05/2011): Information technology - Digital +compression and coding of continuous-tone still images: JPEG File Interchange +Format (JFIF). It is available as a free download in PDF file format from +https://www.iso.org/standard/54989.html and http://www.itu.int/rec/T-REC-T.871. +A PDF file of the older JFIF 1.02 specification is available at +http://www.w3.org/Graphics/JPEG/jfif3.pdf. + +The TIFF 6.0 file format specification can be obtained from +http://mirrors.ctan.org/graphics/tiff/TIFF6.ps.gz. The JPEG incorporation +scheme found in the TIFF 6.0 spec of 3-June-92 has a number of serious +problems. IJG does not recommend use of the TIFF 6.0 design (TIFF Compression +tag 6). Instead, we recommend the JPEG design proposed by TIFF Technical Note +#2 (Compression tag 7). Copies of this Note can be obtained from +http://www.ijg.org/files/. It is expected that the next revision +of the TIFF spec will replace the 6.0 JPEG design with the Note's design. +Although IJG's own code does not support TIFF/JPEG, the free libtiff library +uses our library to implement TIFF/JPEG per the Note. + + +ARCHIVE LOCATIONS +================= + +The "official" archive site for this software is www.ijg.org. +The most recent released version can always be found there in +directory "files". + +The JPEG FAQ (Frequently Asked Questions) article is a source of some +general information about JPEG. It is available at +http://www.faqs.org/faqs/jpeg-faq. + + +FILE FORMAT COMPATIBILITY +========================= + +This software implements ITU T.81 | ISO/IEC 10918 with some extensions from +ITU T.871 | ISO/IEC 10918-5 (JPEG File Interchange Format-- see REFERENCES). +Informally, the term "JPEG image" or "JPEG file" most often refers to JFIF or +a subset thereof, but there are other formats containing the name "JPEG" that +are incompatible with the original JPEG standard or with JFIF (for instance, +JPEG 2000 and JPEG XR). This software therefore does not support these +formats. Indeed, one of the original reasons for developing this free software +was to help force convergence on a common, interoperable format standard for +JPEG files. + +JFIF is a minimal or "low end" representation. TIFF/JPEG (TIFF revision 6.0 as +modified by TIFF Technical Note #2) can be used for "high end" applications +that need to record a lot of additional data about an image. + + +TO DO +===== + +Please send bug reports, offers of help, etc. to jpeg-info@jpegclub.org. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/libjpeg_turbo.md b/eat-rs/vendor/pdfium-win-x64/licenses/libjpeg_turbo.md new file mode 100644 index 0000000..7d3f796 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/libjpeg_turbo.md @@ -0,0 +1,135 @@ +libjpeg-turbo Licenses +====================== + +libjpeg-turbo is covered by two compatible BSD-style open source licenses: + +- The IJG (Independent JPEG Group) License, which is listed in + [README.ijg](README.ijg) + + This license applies to the libjpeg API library and associated programs, + including any code inherited from libjpeg and any modifications to that + code. Note that the libjpeg-turbo SIMD source code bears the + [zlib License](https://opensource.org/licenses/Zlib), but in the context of + the overall libjpeg API library, the terms of the zlib License are subsumed + by the terms of the IJG License. + +- The Modified (3-clause) BSD License, which is listed below + + This license applies to the TurboJPEG API library and associated programs, as + well as the build system. Note that the TurboJPEG API library wraps the + libjpeg API library, so in the context of the overall TurboJPEG API library, + both the terms of the IJG License and the terms of the Modified (3-clause) + BSD License apply. + + +Complying with the libjpeg-turbo Licenses +========================================= + +This section provides a roll-up of the libjpeg-turbo licensing terms, to the +best of our understanding. This is not a license in and of itself. It is +intended solely for clarification. + +1. If you are distributing a modified version of the libjpeg-turbo source, + then: + + 1. You cannot alter or remove any existing copyright or license notices + from the source. + + **Origin** + - Clause 1 of the IJG License + - Clause 1 of the Modified BSD License + - Clauses 1 and 3 of the zlib License + + 2. You must add your own copyright notice to the header of each source + file you modified, so others can tell that you modified that file. (If + there is not an existing copyright header in that file, then you can + simply add a notice stating that you modified the file.) + + **Origin** + - Clause 1 of the IJG License + - Clause 2 of the zlib License + + 3. You must include the IJG README file, and you must not alter any of the + copyright or license text in that file. + + **Origin** + - Clause 1 of the IJG License + +2. If you are distributing only libjpeg-turbo binaries without the source, or + if you are distributing an application that statically links with + libjpeg-turbo, then: + + 1. Your product documentation must include a message stating: + + This software is based in part on the work of the Independent JPEG + Group. + + **Origin** + - Clause 2 of the IJG license + + 2. If your binary distribution includes or uses the TurboJPEG API, then + your product documentation must include the text of the Modified BSD + License (see below.) + + **Origin** + - Clause 2 of the Modified BSD License + +3. You cannot use the name of the IJG or The libjpeg-turbo Project or the + contributors thereof in advertising, publicity, etc. + + **Origin** + - IJG License + - Clause 3 of the Modified BSD License + +4. The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be + free of defects, nor do we accept any liability for undesirable + consequences resulting from your use of the software. + + **Origin** + - IJG License + - Modified BSD License + - zlib License + + +The Modified (3-clause) BSD License +=================================== + +Copyright (C)2009-2024 D. R. Commander. All Rights Reserved.
+Copyright (C)2015 Viktor Szathmáry. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +- Neither the name of the libjpeg-turbo Project nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS", +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + + +Why Two Licenses? +================= + +The zlib License could have been used instead of the Modified (3-clause) BSD +License, and since the IJG License effectively subsumes the distribution +conditions of the zlib License, this would have effectively placed +libjpeg-turbo binary distributions under the IJG License. However, the IJG +License specifically refers to the Independent JPEG Group and does not extend +attribution and endorsement protections to other entities. Thus, it was +desirable to choose a license that granted us the same protections for new code +that were granted to the IJG for code derived from their software. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/libopenjpeg.txt b/eat-rs/vendor/pdfium-win-x64/licenses/libopenjpeg.txt new file mode 100644 index 0000000..89df544 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/libopenjpeg.txt @@ -0,0 +1,32 @@ +/* + * The copyright in this software is being made available under the 2-clauses + * BSD License, included below. This software may be subject to other third + * party and contributor rights, including patent rights, and no such rights + * are granted under this license. + * + * Copyright (c) 2005, Herve Drolon, FreeImage Team + * Copyright (c) 2008, 2011-2012, Centre National d'Etudes Spatiales (CNES), FR + * Copyright (c) 2012, CS Systemes d'Information, France + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/libpng.txt b/eat-rs/vendor/pdfium-win-x64/licenses/libpng.txt new file mode 100644 index 0000000..795711a --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/libpng.txt @@ -0,0 +1,134 @@ +COPYRIGHT NOTICE, DISCLAIMER, and LICENSE +========================================= + +PNG Reference Library License version 2 +--------------------------------------- + + * Copyright (c) 1995-2026 The PNG Reference Library Authors. + * Copyright (c) 2018-2026 Cosmin Truta. + * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. + * Copyright (c) 1996-1997 Andreas Dilger. + * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. + +The software is supplied "as is", without warranty of any kind, +express or implied, including, without limitation, the warranties +of merchantability, fitness for a particular purpose, title, and +non-infringement. In no event shall the Copyright owners, or +anyone distributing the software, be liable for any damages or +other liability, whether in contract, tort or otherwise, arising +from, out of, or in connection with the software, or the use or +other dealings in the software, even if advised of the possibility +of such damage. + +Permission is hereby granted to use, copy, modify, and distribute +this software, or portions hereof, for any purpose, without fee, +subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you + must not claim that you wrote the original software. If you + use this software in a product, an acknowledgment in the product + documentation would be appreciated, but is not required. + + 2. Altered source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + + +PNG Reference Library License version 1 (for libpng 0.5 through 1.6.35) +----------------------------------------------------------------------- + +libpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are +Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are +derived from libpng-1.0.6, and are distributed according to the same +disclaimer and license as libpng-1.0.6 with the following individuals +added to the list of Contributing Authors: + + Simon-Pierre Cadieux + Eric S. Raymond + Mans Rullgard + Cosmin Truta + Gilles Vollant + James Yu + Mandar Sahastrabuddhe + Google Inc. + Vadim Barkov + +and with the following additions to the disclaimer: + + There is no warranty against interference with your enjoyment of + the library or against infringement. There is no warranty that our + efforts or the library will fulfill any of your particular purposes + or needs. This library is provided with all faults, and the entire + risk of satisfactory quality, performance, accuracy, and effort is + with the user. + +Some files in the "contrib" directory and some configure-generated +files that are distributed with libpng have other copyright owners, and +are released under other open source licenses. + +libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are +Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from +libpng-0.96, and are distributed according to the same disclaimer and +license as libpng-0.96, with the following individuals added to the +list of Contributing Authors: + + Tom Lane + Glenn Randers-Pehrson + Willem van Schaik + +libpng versions 0.89, June 1996, through 0.96, May 1997, are +Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88, +and are distributed according to the same disclaimer and license as +libpng-0.88, with the following individuals added to the list of +Contributing Authors: + + John Bowler + Kevin Bracey + Sam Bushell + Magnus Holmgren + Greg Roelofs + Tom Tanner + +Some files in the "scripts" directory have other copyright owners, +but are released under this license. + +libpng versions 0.5, May 1995, through 0.88, January 1996, are +Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. + +For the purposes of this copyright and license, "Contributing Authors" +is defined as the following set of individuals: + + Andreas Dilger + Dave Martindale + Guy Eric Schalnat + Paul Schmidt + Tim Wegner + +The PNG Reference Library is supplied "AS IS". The Contributing +Authors and Group 42, Inc. disclaim all warranties, expressed or +implied, including, without limitation, the warranties of +merchantability and of fitness for any purpose. The Contributing +Authors and Group 42, Inc. assume no liability for direct, indirect, +incidental, special, exemplary, or consequential damages, which may +result from the use of the PNG Reference Library, even if advised of +the possibility of such damage. + +Permission is hereby granted to use, copy, modify, and distribute this +source code, or portions hereof, for any purpose, without fee, subject +to the following restrictions: + + 1. The origin of this source code must not be misrepresented. + + 2. Altered versions must be plainly marked as such and must not + be misrepresented as being the original source. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + +The Contributing Authors and Group 42, Inc. specifically permit, +without fee, and encourage the use of this source code as a component +to supporting the PNG file format in commercial products. If you use +this source code in a product, acknowledgment is not required but would +be appreciated. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/llvm-libc.txt b/eat-rs/vendor/pdfium-win-x64/licenses/llvm-libc.txt new file mode 100644 index 0000000..bbcccbe --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/llvm-libc.txt @@ -0,0 +1,278 @@ +============================================================================== +The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: +============================================================================== + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +---- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. + +============================================================================== +Software from third parties included in the LLVM Project: +============================================================================== +The LLVM Project contains third party software which is under different license +terms. All such code will be identified clearly using at least one of two +mechanisms: +1) It will be in a separate directory tree with its own `LICENSE.txt` or + `LICENSE` file at the top containing the specific license and restrictions + which apply to that software, or +2) It will contain specific license and restriction terms at the top of every + file. + +============================================================================== +Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2007-2019 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/pdfium.txt b/eat-rs/vendor/pdfium-win-x64/licenses/pdfium.txt new file mode 100644 index 0000000..4fc4ca9 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/pdfium.txt @@ -0,0 +1,230 @@ +Copyright 2014 The PDFium Authors + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/simdutf.txt b/eat-rs/vendor/pdfium-win-x64/licenses/simdutf.txt new file mode 100644 index 0000000..87f8da9 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/simdutf.txt @@ -0,0 +1,18 @@ +Copyright 2021 The simdutf authors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/eat-rs/vendor/pdfium-win-x64/licenses/zlib.txt b/eat-rs/vendor/pdfium-win-x64/licenses/zlib.txt new file mode 100644 index 0000000..f664e82 --- /dev/null +++ b/eat-rs/vendor/pdfium-win-x64/licenses/zlib.txt @@ -0,0 +1,29 @@ +/* zlib.h -- interface of the 'zlib' general purpose compression library + version 1.3.2.1, February xxth, 2026 + + Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + + + The data format used by the zlib library is described by RFCs (Request for + Comments) 1950 to 1952 at https://datatracker.ietf.org/doc/html/rfc1950 + (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). +*/ diff --git a/eat-rs/vendor/pdfium-win-x64/pdfium.dll b/eat-rs/vendor/pdfium-win-x64/pdfium.dll new file mode 100644 index 0000000..6ab35a1 Binary files /dev/null and b/eat-rs/vendor/pdfium-win-x64/pdfium.dll differ diff --git a/eat-rs/vendor/ppocr/PP-OCRv6_det_medium.onnx b/eat-rs/vendor/ppocr/PP-OCRv6_det_medium.onnx new file mode 100644 index 0000000..f8633ab Binary files /dev/null and b/eat-rs/vendor/ppocr/PP-OCRv6_det_medium.onnx differ diff --git a/eat-rs/vendor/ppocr/PP-OCRv6_det_small.onnx b/eat-rs/vendor/ppocr/PP-OCRv6_det_small.onnx new file mode 100644 index 0000000..b7f8a24 Binary files /dev/null and b/eat-rs/vendor/ppocr/PP-OCRv6_det_small.onnx differ diff --git a/eat-rs/vendor/ppocr/PP-OCRv6_rec_medium.onnx b/eat-rs/vendor/ppocr/PP-OCRv6_rec_medium.onnx new file mode 100644 index 0000000..3093b25 Binary files /dev/null and b/eat-rs/vendor/ppocr/PP-OCRv6_rec_medium.onnx differ diff --git a/eat-rs/vendor/ppocr/PP-OCRv6_rec_small.onnx b/eat-rs/vendor/ppocr/PP-OCRv6_rec_small.onnx new file mode 100644 index 0000000..4adb3f0 Binary files /dev/null and b/eat-rs/vendor/ppocr/PP-OCRv6_rec_small.onnx differ diff --git a/eat-rs/vendor/ppocr/README.md b/eat-rs/vendor/ppocr/README.md new file mode 100644 index 0000000..18c40bc --- /dev/null +++ b/eat-rs/vendor/ppocr/README.md @@ -0,0 +1,12 @@ +# Vendored PP-OCR models (same files the Python `rapidocr` package ships) + +- `PP-OCRv6_det_small.onnx` — text detection (DBNet) +- `PP-OCRv6_rec_small.onnx` — recognition (CRNN, dictionary embedded in ONNX + metadata; also exported to `rec_keys.txt` for the Rust loader) +- `ch_ppocr_mobile_v2.0_cls_mobile.onnx` — orientation classifier. NOT used by + the Rust path: its behaviour regressed under ONNX Runtime ≥1.31 (flips + horizontal handwriting upside-down; verified against constant tensors). + eat-ocr instead retries a 180° rotation per crop when rec confidence is + low. Kept here for reference/testing parity with Python. + +Source: site-packages/rapidocr/models (rapidocr PyPI distribution). diff --git a/eat-rs/vendor/ppocr/ch_ppocr_mobile_v2.0_cls_mobile.onnx b/eat-rs/vendor/ppocr/ch_ppocr_mobile_v2.0_cls_mobile.onnx new file mode 100644 index 0000000..6b9d102 Binary files /dev/null and b/eat-rs/vendor/ppocr/ch_ppocr_mobile_v2.0_cls_mobile.onnx differ diff --git a/eat-rs/vendor/ppocr/rec_keys.txt b/eat-rs/vendor/ppocr/rec_keys.txt new file mode 100644 index 0000000..ea0af92 --- /dev/null +++ b/eat-rs/vendor/ppocr/rec_keys.txt @@ -0,0 +1,18708 @@ +! +" +# +$ +% +& +' +( +) +* ++ +, +- +. +/ +: +; +< += +> +? +@ +[ +\ +] +^ +_ +` +{ +| +} +~ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z +a +b +c +d +e +f +g +h +i +j +k +l +m +n +o +p +q +r +s +t +u +v +w +x +y +z +¢ +£ +¤ +¥ +¦ +§ +¨ +© +ª +« +¬ +® +¯ +° +± +² +³ +´ +µ +¶ +· +¸ +¹ +º +» +¼ +½ +¾ +¿ +À +Á + +à +Ä +Å +Æ +Ç +È +É +Ê +Ë +Ì +Í +Î +Ï +Ð +Ñ +Ò +Ó +Ô +Õ +Ö +× +Ø +Ù +Ú +Û +Ü +Ý +Þ +ß +à +á +â +ã +ä +å +æ +ç +è +é +ê +ë +ì +í +î +ï +ð +ñ +ò +ó +ô +õ +ö +÷ +ø +ù +ú +û +ü +ý +þ +ÿ +Ā +ā +Ă +ă +Ą +ą +Ć +ć +Ĉ +ĉ +Ċ +ċ +Č +č +Ď +ď +Đ +đ +Ē +ē +Ĕ +ĕ +Ė +ė +Ę +ę +Ě +ě +Ĝ +ĝ +Ğ +ğ +Ġ +ġ +Ģ +ģ +Ĥ +ĥ +Ħ +ħ +Ĩ +ĩ +Ī +ī +Ĭ +ĭ +Į +į +İ +ı +IJ +ij +Ĵ +ĵ +Ķ +ķ +ĸ +Ĺ +ĺ +Ļ +ļ +Ľ +ľ +Ŀ +ŀ +Ł +ł +Ń +ń +Ņ +ņ +Ň +ň +ʼn +Ŋ +ŋ +Ō +ō +Ŏ +ŏ +Ő +ő +Œ +œ +Ŕ +ŕ +Ŗ +ŗ +Ř +ř +Ś +ś +Ŝ +ŝ +Ş +ş +Š +š +Ţ +ţ +Ť +ť +Ŧ +ŧ +Ũ +ũ +Ū +ū +Ŭ +ŭ +Ů +ů +Ű +ű +Ų +ų +Ŵ +ŵ +Ŷ +ŷ +Ÿ +Ź +ź +Ż +ż +Ž +ž +ſ +ƀ +Ɓ +Ƃ +ƃ +Ƅ +ƅ +Ɔ +Ƈ +ƈ +Ɖ +Ɗ +Ƌ +ƌ +ƍ +Ǝ +Ə +Ɛ +Ƒ +ƒ +Ɠ +Ɣ +ƕ +Ɩ +Ɨ +Ƙ +ƙ +ƚ +ƛ +Ɯ +Ɲ +ƞ +Ɵ +Ơ +ơ +Ƣ +ƣ +Ƥ +ƥ +Ʀ +Ƨ +ƨ +Ʃ +ƪ +ƫ +Ƭ +ƭ +Ʈ +Ư +ư +Ʊ +Ʋ +Ƴ +ƴ +Ƶ +ƶ +Ʒ +Ƹ +ƹ +ƺ +ƻ +Ƽ +ƽ +ƾ +ƿ +ǀ +ǁ +ǂ +ǃ +DŽ +Dž +dž +LJ +Lj +lj +NJ +Nj +nj +Ǎ +ǎ +Ǐ +ǐ +Ǒ +ǒ +Ǔ +ǔ +Ǖ +ǖ +Ǘ +ǘ +Ǚ +ǚ +Ǜ +ǜ +ǝ +Ǟ +ǟ +Ǡ +ǡ +Ǣ +ǣ +Ǥ +ǥ +Ǧ +ǧ +Ǩ +ǩ +Ǫ +ǫ +Ǭ +ǭ +Ǯ +ǯ +ǰ +DZ +Dz +dz +Ǵ +ǵ +Ƕ +Ƿ +Ǹ +ǹ +Ǻ +ǻ +Ǽ +ǽ +Ǿ +ǿ +Ȁ +ȁ +Ȃ +ȃ +Ȅ +ȅ +Ȇ +ȇ +Ȉ +ȉ +Ȋ +ȋ +Ȍ +ȍ +Ȏ +ȏ +Ȑ +ȑ +Ȓ +ȓ +Ȕ +ȕ +Ȗ +ȗ +Ș +ș +Ț +ț +Ȝ +ȝ +Ȟ +ȟ +Ƞ +ȡ +Ȣ +ȣ +Ȥ +ȥ +Ȧ +ȧ +Ȩ +ȩ +Ȫ +ȫ +Ȭ +ȭ +Ȯ +ȯ +Ȱ +ȱ +Ȳ +ȳ +ȴ +ȵ +ȶ +ȷ +ȸ +ȹ +Ⱥ +Ȼ +ȼ +Ƚ +Ⱦ +ȿ +ɀ +Ɂ +ɂ +Ƀ +Ʉ +Ʌ +Ɇ +ɇ +Ɉ +ɉ +Ɋ +ɋ +Ɍ +ɍ +Ɏ +ɏ +ɐ +ɑ +ɒ +ɓ +ɔ +ɕ +ɖ +ɗ +ɘ +ə +ɚ +ɛ +ɜ +ɝ +ɞ +ɟ +ɠ +ɡ +ɢ +ɣ +ɤ +ɥ +ɦ +ɧ +ɨ +ɩ +ɪ +ɫ +ɬ +ɭ +ɮ +ɯ +ɰ +ɱ +ɲ +ɳ +ɴ +ɵ +ɶ +ɷ +ɸ +ɹ +ɺ +ɻ +ɼ +ɽ +ɾ +ɿ +ʀ +ʁ +ʂ +ʃ +ʄ +ʅ +ʆ +ʇ +ʈ +ʉ +ʊ +ʋ +ʌ +ʍ +ʎ +ʏ +ʐ +ʑ +ʒ +ʓ +ʔ +ʕ +ʖ +ʗ +ʘ +ʙ +ʚ +ʛ +ʜ +ʝ +ʞ +ʟ +ʠ +ʡ +ʢ +ʣ +ʤ +ʥ +ʦ +ʧ +ʨ +ʩ +ʪ +ʫ +ʬ +ʭ +ʮ +ʯ +Α +Β +Γ +Δ +Ε +Ζ +Η +Θ +Ι +Κ +Λ +Μ +Ν +Ξ +Ο +Π +Ρ +Σ +Τ +Υ +Φ +Χ +Ψ +Ω +α +β +γ +δ +ε +ζ +η +θ +ι +κ +λ +μ +ν +ξ +ο +π +ρ +σ +τ +υ +φ +χ +ψ +ω +ϐ +ϑ +ϒ +ϕ +ϖ +ϝ +Ϟ +ϟ +Ϡ +ϡ +Ϣ +ϣ +Ϥ +ϥ +Ϧ +ϧ +Ϩ +ϩ +Ϫ +ϫ +Ϭ +ϭ +Ϯ +ϯ +ϰ +ϱ +ϴ +ϵ +Ạ +ồ +– +— +― +‖ +‘ +’ +“ +” +† +‡ +• +‥ +… +‰ +′ +″ +※ +⁎ +⁰ +⁴ +⁵ +⁶ +⁷ +⁸ +⁹ +⁺ +⁻ +⁼ +⁽ +⁾ +ⁿ +₀ +₁ +₂ +₃ +₄ +₅ +₆ +₇ +₈ +₉ +₊ +₋ +₌ +₍ +₎ +ₒ +₠ +₡ +₢ +₣ +₤ +₥ +₦ +₧ +₨ +₩ +₪ +₫ +€ +₭ +₮ +₯ +₰ +₱ +₲ +₳ +₴ +₵ +₶ +₷ +₸ +₹ +₺ +₻ +₼ +₽ +₾ +₿ +℃ +℉ +ℎ +ℏ +ℑ +℘ +ℜ +™ +℧ +Å +ℵ +ℶ +ℷ +ℸ +ℹ +⅀ +Ⅰ +Ⅱ +Ⅲ +Ⅳ +Ⅴ +Ⅵ +Ⅶ +Ⅷ +Ⅸ +Ⅹ +Ⅺ +Ⅻ +ⅰ +ⅱ +ⅲ +ⅳ +ⅴ +ⅵ +ⅶ +ⅷ +ⅸ +ⅹ +ⅺ +ⅻ +ⅼ +ↀ +ↁ +ↂ +← +↑ +→ +↓ +↔ +↕ +↖ +↗ +↘ +↙ +↚ +↛ +↜ +↝ +↞ +↟ +↠ +↡ +↢ +↣ +↤ +↥ +↦ +↧ +↨ +↩ +↪ +↫ +↬ +↭ +↮ +↯ +↰ +↱ +↲ +↳ +↴ +↵ +↶ +↷ +↸ +↹ +↺ +↻ +↼ +↽ +↾ +↿ +⇀ +⇁ +⇂ +⇃ +⇄ +⇅ +⇆ +⇇ +⇈ +⇉ +⇊ +⇋ +⇌ +⇍ +⇎ +⇏ +⇐ +⇑ +⇒ +⇓ +⇔ +⇕ +⇖ +⇗ +⇘ +⇙ +⇚ +⇛ +⇜ +⇝ +⇞ +⇟ +⇠ +⇡ +⇢ +⇣ +⇤ +⇥ +⇦ +⇧ +⇨ +⇩ +⇪ +⇫ +⇬ +⇭ +⇮ +⇯ +⇰ +⇱ +⇲ +⇳ +⇴ +⇵ +⇶ +⇷ +⇸ +⇹ +⇺ +⇻ +⇼ +⇽ +⇾ +⇿ +∀ +∁ +∂ +∃ +∄ +∅ +∆ +∇ +∈ +∉ +∋ +∏ +∑ +− +∓ +∕ +∖ +∙ +√ +∛ +∜ +∝ +∞ +∟ +∠ +∡ +∢ +∥ +∧ +∨ +∩ +∪ +∫ +∬ +∭ +∮ +∯ +∰ +∱ +∲ +∳ +∴ +∵ +∶ +∷ +∸ +∹ +∺ +∻ +∼ +∽ +∾ +∿ +≀ +≁ +≂ +≃ +≄ +≅ +≆ +≇ +≈ +≉ +≊ +≋ +≌ +≍ +≎ +≏ +≐ +≑ +≒ +≓ +≔ +≕ +≖ +≗ +≘ +≙ +≚ +≛ +≜ +≝ +≞ +≟ +≠ +≡ +≢ +≣ +≤ +≥ +≦ +≧ +≨ +≩ +≪ +≫ +≬ +≭ +≮ +≯ +≰ +≱ +≲ +≳ +≴ +≵ +≶ +≷ +≸ +≹ +≺ +≻ +≼ +≽ +≾ +≿ +⊀ +⊁ +⊂ +⊃ +⊄ +⊅ +⊆ +⊇ +⊈ +⊉ +⊊ +⊋ +⊌ +⊍ +⊎ +⊏ +⊐ +⊑ +⊒ +⊓ +⊔ +⊕ +⊖ +⊗ +⊘ +⊙ +⊚ +⊛ +⊜ +⊝ +⊞ +⊟ +⊠ +⊡ +⊢ +⊣ +⊤ +⊥ +⊦ +⊧ +⊨ +⊩ +⊪ +⊫ +⊬ +⊭ +⊮ +⊯ +⊰ +⊱ +⊲ +⊳ +⊴ +⊵ +⊶ +⊷ +⊸ +⊹ +⊺ +⊻ +⊼ +⊽ +⊾ +⊿ +⋅ +⌀ +⌃ +⌘ +⌚ +⌛ +⌤ +⌥ +⌦ +⌧ +⌨ +〉 +⌫ +⌬ +⌭ +⌮ +⌯ +⍵ +⍺ +⎆ +⎇ +⎈ +⎉ +⎊ +⎋ +⎌ +⎍ +⎎ +⎏ +⎐ +⎑ +⎒ +⎓ +⎔ +⎕ +⎖ +⎗ +⎘ +⎙ +⎚ +⎛ +⎜ +⎝ +⎞ +⎟ +⎠ +⎡ +⎢ +⎣ +⎤ +⎥ +⎦ +⎧ +⎨ +⎩ +⎪ +⎫ +⎬ +⎭ +⎮ +⎯ +⎰ +⎱ +⎲ +⎳ +⎴ +⎵ +⎶ +⎷ +⎸ +⎹ +⎺ +⎻ +⎼ +⎽ +⎾ +⎿ +⏀ +⏁ +⏂ +⏃ +⏄ +⏅ +⏆ +⏇ +⏈ +⏉ +⏊ +⏋ +⏌ +⏍ +⏎ +⏏ +⏐ +⏑ +⏒ +⏓ +⏔ +⏕ +⏖ +⏗ +⏘ +⏙ +⏚ +⏛ +⏜ +⏝ +⏞ +⏟ +⏠ +⏡ +⏢ +⏣ +⏤ +⏥ +⏦ +⏧ +⏨ +⏩ +⏪ +⏫ +⏬ +⏭ +⏮ +⏯ +⏰ +⏱ +⏲ +⏳ +⏴ +⏵ +⏶ +⏷ +⏸ +⏹ +⏺ +⏻ +⏼ +⏽ +⏾ +⏿ +① +② +③ +④ +⑤ +⑥ +⑦ +⑧ +⑨ +⑩ +⑪ +⑫ +⑬ +⑭ +⑮ +⑯ +⑰ +⑱ +⑲ +⑳ +Ⓜ +━ +╆ +╳ +▁ +█ +■ +□ +▪ +▫ +▬ +▲ +△ +▶ +▷ +▼ +▽ +◀ +◆ +◇ +◉ +◊ +○ +◎ +● +◐ +◥ +◻ +◼ +◽ +◾ +☀ +☁ +☂ +☃ +☄ +★ +☆ +☇ +☈ +☉ +☊ +☋ +☌ +☍ +☎ +☏ +☐ +☑ +☒ +☓ +☔ +☕ +☖ +☗ +☘ +☙ +☚ +☛ +☜ +☝ +☞ +☟ +☠ +☡ +☢ +☣ +☤ +☥ +☦ +☧ +☨ +☩ +☪ +☫ +☬ +☭ +☮ +☯ +☰ +☱ +☲ +☳ +☴ +☵ +☶ +☷ +☸ +☹ +☺ +☻ +☼ +☽ +☾ +☿ +♀ +♁ +♂ +♃ +♄ +♅ +♆ +♇ +♈ +♉ +♊ +♋ +♌ +♍ +♎ +♏ +♐ +♑ +♒ +♓ +♔ +♕ +♖ +♗ +♘ +♙ +♚ +♛ +♜ +♝ +♞ +♟ +♠ +♡ +♢ +♣ +♤ +♥ +♦ +♧ +♨ +♩ +♪ +♫ +♬ +♭ +♮ +♯ +♰ +♱ +♲ +♳ +♴ +♵ +♶ +♷ +♸ +♹ +♺ +♻ +♼ +♽ +♾ +♿ +⚀ +⚁ +⚂ +⚃ +⚄ +⚅ +⚆ +⚇ +⚈ +⚉ +⚊ +⚋ +⚌ +⚍ +⚎ +⚏ +⚐ +⚑ +⚒ +⚓ +⚔ +⚕ +⚖ +⚗ +⚘ +⚙ +⚚ +⚛ +⚜ +⚝ +⚞ +⚟ +⚠ +⚡ +⚢ +⚣ +⚤ +⚥ +⚦ +⚧ +⚨ +⚩ +⚪ +⚫ +⚬ +⚭ +⚮ +⚯ +⚰ +⚱ +⚲ +⚳ +⚴ +⚵ +⚶ +⚷ +⚸ +⚹ +⚺ +⚻ +⚼ +⚽ +⚾ +⚿ +⛀ +⛁ +⛂ +⛃ +⛄ +⛅ +⛆ +⛇ +⛈ +⛉ +⛊ +⛋ +⛌ +⛍ +⛎ +⛏ +⛐ +⛑ +⛒ +⛓ +⛔ +⛕ +⛖ +⛗ +⛘ +⛙ +⛚ +⛛ +⛜ +⛝ +⛞ +⛠ +⛡ +⛢ +⛣ +⛤ +⛥ +⛦ +⛧ +⛨ +⛩ +⛪ +⛫ +⛬ +⛭ +⛮ +⛯ +⛲ +⛳ +⛵ +⛶ +⛺ +⛽ +⛾ +⛿ +✂ +✅ +✆ +✇ +✈ +✉ +✊ +✋ +✌ +✍ +✎ +✏ +✐ +✑ +✒ +✓ +✔ +✕ +✖ +✘ +✙ +✚ +✛ +✜ +✝ +✞ +✟ +✠ +✡ +✢ +✣ +✤ +✥ +✦ +✧ +✨ +✩ +✪ +✫ +✬ +✭ +✮ +✯ +✰ +✱ +✲ +✳ +✴ +✵ +✶ +✷ +✸ +✹ +✺ +✻ +✼ +✽ +✾ +✿ +❀ +❁ +❂ +❃ +❄ +❅ +❆ +❇ +❈ +❉ +❊ +❋ +❌ +❍ +❎ +❏ +❐ +❑ +❒ +❓ +❔ +❕ +❖ +❗ +❘ +❙ +❚ +❛ +❜ +❝ +❞ +❡ +❢ +❣ +❤ +❥ +❦ +❧ +❨ +❩ +❪ +❫ +❬ +❭ +❮ +❯ +❰ +❱ +❲ +❳ +❴ +❵ +❶ +❷ +❸ +❹ +❺ +❻ +❼ +❽ +❾ +❿ +➀ +➁ +➂ +➃ +➄ +➅ +➆ +➇ +➈ +➉ +➊ +➋ +➌ +➍ +➎ +➏ +➐ +➑ +➒ +➓ +➔ +➕ +➖ +➗ +➘ +➙ +➚ +➛ +➜ +➝ +➞ +➟ +➠ +➡ +➢ +➣ +➤ +➥ +➦ +➧ +➨ +➩ +➪ +➫ +➬ +➭ +➮ +➯ +➰ +➱ +➲ +➳ +➴ +➵ +➶ +➷ +➸ +➹ +➺ +➻ +➼ +➽ +➾ +➿ +⟶ +⟹ +⤴ +⤵ +⬅ +⬆ +⬇ +⬛ +⬜ +⭐ +⭕ +  +、 +。 +々 +〆 +〇 +〈 +〉 +《 +》 +「 +」 +『 +』 +【 +】 +〒 +〔 +〕 +〖 +〗 +〜 +〰 +〵 +〽 +ぁ +あ +ぃ +い +ぅ +う +ぇ +え +ぉ +お +か +が +き +ぎ +く +ぐ +け +げ +こ +ご +さ +ざ +し +じ +す +ず +せ +ぜ +そ +ぞ +た +だ +ち +ぢ +っ +つ +づ +て +で +と +ど +な +に +ぬ +ね +の +は +ば +ぱ +ひ +び +ぴ +ふ +ぶ +ぷ +へ +べ +ぺ +ほ +ぼ +ぽ +ま +み +む +め +も +ゃ +や +ゅ +ゆ +ょ +よ +ら +り +る +れ +ろ +ゎ +わ +ゑ +を +ん +ゕ +ゖ +ゝ +ゞ +ァ +ア +ィ +イ +ゥ +ウ +ェ +エ +ォ +オ +カ +ガ +キ +ギ +ク +グ +ケ +ゲ +コ +ゴ +サ +ザ +シ +ジ +ス +ズ +セ +ゼ +ソ +ゾ +タ +ダ +チ +ヂ +ッ +ツ +ヅ +テ +デ +ト +ド +ナ +ニ +ヌ +ネ +ノ +ハ +バ +パ +ヒ +ビ +ピ +フ +ブ +プ +ヘ +ベ +ペ +ホ +ボ +ポ +マ +ミ +ム +メ +モ +ャ +ヤ +ュ +ユ +ョ +ヨ +ラ +リ +ル +レ +ロ +ヮ +ワ +ヰ +ヲ +ン +ヴ +ヵ +ヶ +ヷ +ヸ +ヹ +ヺ +・ +ー +ヽ +ヾ +ヿ +㈱ +㊗ +㊙ +㐂 +㐱 +㑇 +㑊 +㑳 +㑺 +㒺 +㕁 +㕑 +㕥 +㕮 +㘎 +㘭 +㙍 +㙘 +㙟 +㙦 +㚷 +㛃 +㛚 +㛹 +㝛 +㝠 +㝡 +㟁 +㟃 +㠇 +㠓 +㠣 +㠯 +㠶 +㡌 +㢘 +㤘 +㤙 +㥄 +㥫 +㥮 +㧐 +㧑 +㧟 +㧱 +㨗 +㨪 +㩗 +㩦 +㩳 +㪚 +㪟 +㫰 +㬉 +㬊 +㬎 +㬚 +㬪 +㭎 +㭕 +㮣 +㮾 +㰀 +㳄 +㳇 +㳒 +㳘 +㳚 +㴔 +㴪 +㴱 +㵐 +㶲 +㸃 +㸆 +㸌 +㺄 +㻬 +㼝 +㽏 +㽞 +㿠 +䁖 +䂮 +䃅 +䃎 +䃮 +䅟 +䈰 +䊀 +䌹 +䎃 +䎖 +䏝 +䏡 +䏲 +䐃 +䓖 +䓛 +䓣 +䓨 +䓫 +䓬 +䖝 +䗖 +䗛 +䗪 +䗬 +䗴 +䘏 +䘑 +䘚 +䜣 +䝉 +䝔 +䝙 +䠀 +䠶 +䢺 +䢼 +䣘 +䥽 +䦃 +䮄 +䰟 +䰾 +䲁 +䲟 +䲠 +䲢 +䴉 +䴓 +䴔 +䴕 +䴖 +䴗 +䴘 +䴙 +䶊 +䶮 +一 +丁 +七 +丄 +万 +丈 +三 +上 +下 +丌 +不 +与 +丏 +丐 +丑 +专 +且 +丕 +世 +丘 +丙 +业 +丛 +东 +丝 +丞 +丟 +両 +丢 +两 +严 +並 +丧 +个 +丫 +中 +丮 +丰 +丱 +串 +临 +丸 +丹 +为 +主 +丼 +丽 +举 +丿 +乂 +乃 +久 +么 +义 +之 +乌 +乍 +乎 +乏 +乐 +乒 +乓 +乔 +乖 +乗 +乘 +乙 +乜 +九 +乞 +也 +习 +乡 +书 +乩 +乭 +买 +乱 +乳 +乸 +乹 +乾 +亀 +亂 +了 +予 +争 +亊 +事 +二 +亍 +于 +亏 +云 +互 +亓 +五 +井 +亘 +亙 +亚 +些 +亜 +亞 +亟 +亡 +亢 +交 +亥 +亦 +产 +亨 +亩 +享 +京 +亭 +亮 +亯 +亰 +亱 +亲 +亳 +亵 +亶 +亷 +亸 +亹 +人 +亾 +亿 +什 +仁 +仂 +仃 +仄 +仅 +仆 +仇 +仉 +今 +介 +仍 +从 +仏 +仑 +仓 +仔 +仕 +他 +仗 +付 +仙 +仛 +仜 +仝 +仞 +仟 +仡 +代 +令 +以 +仨 +仩 +仪 +仫 +们 +仮 +仰 +仱 +仲 +仳 +仵 +件 +价 +仺 +任 +仼 +份 +仿 +伀 +企 +伃 +伈 +伉 +伊 +伋 +伍 +伎 +伏 +伐 +休 +伔 +伕 +众 +优 +伙 +会 +伛 +伝 +伞 +伟 +传 +伢 +伣 +伤 +伥 +伦 +伧 +伪 +伫 +伬 +伭 +伯 +估 +伱 +伲 +伴 +伶 +伷 +伸 +伺 +伻 +似 +伽 +伾 +佀 +佁 +佃 +但 +佇 +佈 +佉 +佋 +佌 +位 +低 +住 +佐 +佑 +佒 +体 +佔 +何 +佖 +佗 +佘 +余 +佚 +佛 +作 +佝 +佞 +佟 +你 +佢 +佣 +佤 +佥 +佧 +佩 +佪 +佬 +佯 +佰 +佳 +佴 +併 +佶 +佷 +佸 +佹 +佺 +佻 +佼 +佽 +佾 +使 +侀 +侁 +侂 +侃 +侄 +侅 +來 +侇 +侈 +侉 +侊 +例 +侍 +侏 +侐 +侑 +侔 +侖 +侗 +侘 +侚 +供 +侜 +依 +侞 +侠 +価 +侣 +侥 +侦 +侧 +侨 +侩 +侪 +侬 +侮 +侯 +侲 +侳 +侴 +侵 +侶 +侷 +侹 +侻 +便 +俁 +係 +促 +俄 +俅 +俇 +俉 +俊 +俋 +俌 +俍 +俎 +俏 +俐 +俑 +俓 +俔 +俗 +俘 +俙 +俚 +俛 +俜 +保 +俞 +俟 +俠 +信 +俣 +俤 +俦 +俨 +俩 +俪 +俫 +俬 +俭 +修 +俯 +俱 +俳 +俴 +俵 +俶 +俷 +俸 +俺 +俽 +俾 +倀 +倃 +倅 +倆 +倇 +倈 +倉 +個 +倌 +倍 +倏 +倐 +們 +倒 +倓 +倔 +倕 +倖 +倗 +倘 +候 +倚 +倛 +倜 +倞 +借 +倠 +倡 +倢 +倣 +値 +倥 +倦 +倧 +倨 +倩 +倪 +倫 +倬 +倭 +倮 +倰 +倳 +倴 +倶 +倷 +倸 +倹 +债 +倻 +值 +倾 +偁 +偃 +偅 +假 +偈 +偉 +偊 +偋 +偌 +偍 +偎 +偏 +偐 +偓 +偕 +偘 +做 +偛 +停 +偝 +偞 +偟 +偠 +偡 +偢 +健 +偨 +偩 +偪 +偫 +偬 +偭 +偯 +偰 +偲 +側 +偵 +偶 +偷 +偸 +偺 +偻 +偽 +偾 +偿 +傀 +傂 +傃 +傅 +傈 +傉 +傋 +傌 +傍 +傎 +傑 +傒 +傔 +傕 +傖 +傘 +備 +傚 +傛 +傜 +傝 +傞 +傢 +傣 +傥 +傧 +储 +傩 +催 +傭 +傮 +傯 +傰 +傱 +傲 +傳 +傴 +債 +傷 +傺 +傻 +傽 +傾 +傿 +僁 +僂 +僄 +僅 +僆 +僇 +僈 +僉 +僊 +僋 +働 +僎 +像 +僑 +僓 +僔 +僕 +僖 +僗 +僙 +僚 +僛 +僜 +僝 +僞 +僡 +僤 +僥 +僦 +僧 +僨 +僩 +僪 +僬 +僭 +僮 +僰 +僱 +僳 +僴 +僵 +僶 +僸 +價 +僻 +僽 +僾 +僿 +儀 +儁 +儂 +儃 +億 +儆 +儇 +儈 +儉 +儋 +儌 +儐 +儑 +儒 +儓 +儔 +儕 +儗 +儘 +儚 +儛 +儜 +儞 +償 +儠 +儡 +儢 +儤 +儥 +儦 +優 +儫 +儰 +儱 +儲 +儳 +儴 +儵 +儷 +儸 +儹 +儺 +儻 +儼 +儽 +儿 +兀 +允 +元 +兄 +充 +兆 +兇 +先 +光 +克 +兌 +免 +兎 +児 +兑 +兒 +兔 +兕 +兖 +兗 +兙 +党 +兛 +兜 +兝 +兞 +兠 +兡 +兢 +兣 +入 +內 +全 +兩 +兪 +八 +公 +六 +兮 +兰 +共 +关 +兴 +兵 +其 +具 +典 +兹 +养 +兼 +兽 +兿 +冀 +冁 +冂 +冄 +内 +円 +冇 +冈 +冉 +冊 +册 +再 +冏 +冐 +冑 +冒 +冓 +冔 +冕 +冗 +冘 +写 +冚 +军 +农 +冞 +冠 +冢 +冣 +冤 +冥 +冧 +冨 +冪 +冬 +冮 +冯 +冰 +冱 +冲 +决 +冴 +况 +冶 +冷 +冺 +冻 +冼 +冽 +净 +凃 +凄 +凅 +准 +凇 +凈 +凉 +凊 +凋 +凌 +凍 +减 +凑 +凔 +凖 +凘 +凛 +凜 +凝 +凞 +几 +凡 +凢 +凤 +処 +凪 +凫 +凬 +凭 +凯 +凰 +凱 +凳 +凵 +凶 +凸 +凹 +出 +击 +凼 +函 +凿 +刀 +刁 +刂 +刃 +刄 +分 +切 +刈 +刉 +刊 +刌 +刍 +刎 +刑 +划 +刓 +刖 +列 +刘 +则 +刚 +创 +刜 +初 +刞 +删 +判 +別 +刦 +刧 +刨 +利 +刪 +别 +刬 +刭 +刮 +到 +刱 +刲 +刳 +刵 +制 +刷 +券 +刹 +刺 +刻 +刼 +刽 +刿 +剀 +剁 +剂 +剃 +剄 +剅 +剆 +則 +剉 +削 +剋 +剌 +前 +剎 +剏 +剐 +剑 +剒 +剔 +剕 +剖 +剗 +剚 +剛 +剜 +剝 +剞 +剟 +剡 +剣 +剤 +剥 +剧 +剩 +剪 +剫 +剬 +剭 +剮 +副 +剰 +割 +剳 +剴 +創 +剷 +剸 +剹 +剺 +剻 +剼 +剽 +剿 +劀 +劁 +劂 +劃 +劄 +劇 +劈 +劉 +劊 +劋 +劌 +劍 +劐 +劑 +劓 +劔 +劖 +劗 +劘 +劙 +力 +劝 +办 +功 +加 +务 +劢 +劣 +劦 +动 +助 +努 +劫 +劬 +劭 +励 +劲 +劳 +労 +劵 +効 +劼 +劾 +势 +勁 +勃 +勅 +勇 +勉 +勋 +勌 +勍 +勐 +勑 +勒 +勔 +動 +勖 +勗 +勘 +務 +勚 +勛 +勝 +勞 +募 +勢 +勣 +勤 +勦 +勧 +勩 +勰 +勱 +勲 +勳 +勴 +勵 +勷 +勸 +勺 +勻 +勾 +勿 +匀 +匁 +匂 +匃 +匄 +包 +匆 +匈 +匊 +匋 +匍 +匏 +匐 +匕 +化 +北 +匙 +匜 +匝 +匟 +匠 +匡 +匢 +匣 +匦 +匪 +匭 +匮 +匯 +匰 +匱 +匲 +匴 +匷 +匸 +匹 +区 +医 +匼 +匽 +匾 +匿 +區 +十 +千 +卅 +升 +午 +卉 +半 +卋 +卌 +卍 +华 +协 +卐 +卑 +卒 +卓 +協 +单 +卖 +南 +単 +博 +卜 +卞 +卟 +占 +卡 +卢 +卣 +卤 +卦 +卧 +卫 +卬 +卮 +卯 +印 +危 +卲 +即 +却 +卵 +卷 +卸 +卹 +卺 +卻 +卼 +卽 +卿 +厀 +厂 +厄 +厅 +历 +厉 +压 +厌 +厍 +厎 +厒 +厓 +厔 +厕 +厖 +厗 +厘 +厙 +厚 +厜 +厝 +厞 +原 +厠 +厢 +厣 +厤 +厥 +厦 +厨 +厩 +厬 +厭 +厮 +厰 +厲 +厳 +厴 +厹 +去 +厾 +县 +叁 +参 +參 +叄 +叆 +叇 +又 +叉 +及 +友 +双 +反 +収 +发 +叔 +叕 +取 +受 +变 +叙 +叚 +叛 +叟 +叠 +叡 +叢 +口 +古 +句 +另 +叨 +叩 +只 +叫 +召 +叭 +叮 +可 +台 +叱 +史 +右 +叵 +叶 +号 +司 +叹 +叻 +叼 +叽 +吁 +吃 +各 +吆 +合 +吉 +吊 +吋 +同 +名 +后 +吏 +吐 +向 +吒 +吓 +吔 +吕 +吖 +吗 +吚 +君 +吝 +吞 +吟 +吠 +吡 +吣 +吥 +否 +吧 +吨 +吩 +吪 +含 +听 +吭 +吮 +启 +吰 +吱 +吲 +吳 +吴 +吵 +吶 +吷 +吸 +吹 +吻 +吼 +吽 +吾 +呀 +呂 +呃 +呆 +呇 +呈 +呉 +告 +呋 +呌 +呎 +呐 +呑 +呒 +呓 +呔 +呕 +呖 +呗 +员 +呙 +呛 +呜 +呢 +呣 +呤 +呥 +呦 +周 +呪 +呫 +呬 +呰 +呱 +呲 +味 +呴 +呵 +呶 +呷 +呸 +呺 +呻 +呼 +命 +呾 +呿 +咀 +咁 +咂 +咄 +咅 +咆 +咇 +咈 +咉 +咊 +咋 +和 +咍 +咎 +咏 +咐 +咑 +咒 +咔 +咕 +咖 +咗 +咘 +咙 +咚 +咛 +咝 +咟 +咠 +咡 +咢 +咣 +咤 +咥 +咦 +咧 +咨 +咩 +咪 +咫 +咬 +咭 +咮 +咯 +咱 +咲 +咳 +咴 +咶 +咷 +咸 +咺 +咻 +咼 +咽 +咾 +咿 +哀 +品 +哂 +哃 +哄 +哅 +哆 +哇 +哈 +哉 +哌 +响 +哎 +哏 +哐 +哑 +哒 +哓 +哔 +哕 +哖 +哗 +哙 +哚 +哝 +哞 +哟 +員 +哢 +哤 +哥 +哦 +哧 +哨 +哩 +哪 +哫 +哭 +哮 +哱 +哲 +哳 +哶 +哺 +哼 +哽 +哿 +唁 +唃 +唄 +唅 +唆 +唇 +唈 +唉 +唌 +唏 +唐 +唑 +唒 +唔 +唕 +唖 +唗 +唘 +唚 +唛 +唝 +唠 +唢 +唣 +唤 +唦 +唧 +唪 +唫 +唬 +唭 +售 +唯 +唰 +唱 +唲 +唳 +唴 +唵 +唶 +唷 +唸 +唻 +唼 +唾 +唿 +啁 +啃 +啄 +啅 +商 +啉 +啊 +啍 +啎 +問 +啐 +啑 +啒 +啓 +啕 +啖 +啗 +啚 +啜 +啞 +啟 +啡 +啢 +啣 +啤 +啥 +啦 +啧 +啪 +啫 +啬 +啭 +啮 +啯 +啰 +啱 +啲 +啴 +啵 +啶 +啷 +啸 +啻 +啼 +啽 +啾 +喀 +喁 +喂 +喃 +善 +喆 +喇 +喈 +喉 +喊 +喋 +喌 +喍 +喏 +喑 +喒 +喓 +喔 +喘 +喙 +喚 +喜 +喝 +喟 +喢 +喣 +喤 +喥 +喦 +喧 +喨 +喩 +喪 +喫 +喬 +喭 +單 +喰 +喱 +喲 +喳 +喵 +営 +喷 +喹 +喻 +喼 +喽 +喾 +喿 +嗀 +嗁 +嗃 +嗄 +嗅 +嗆 +嗇 +嗈 +嗉 +嗊 +嗋 +嗌 +嗍 +嗎 +嗏 +嗐 +嗑 +嗒 +嗓 +嗔 +嗕 +嗖 +嗚 +嗛 +嗜 +嗝 +嗞 +嗟 +嗡 +嗢 +嗣 +嗤 +嗥 +嗦 +嗧 +嗨 +嗩 +嗪 +嗫 +嗬 +嗮 +嗯 +嗲 +嗳 +嗵 +嗶 +嗷 +嗹 +嗺 +嗼 +嗽 +嗾 +嗿 +嘀 +嘁 +嘂 +嘄 +嘅 +嘆 +嘈 +嘉 +嘌 +嘍 +嘎 +嘏 +嘐 +嘑 +嘒 +嘓 +嘔 +嘕 +嘖 +嘗 +嘘 +嘚 +嘛 +嘜 +嘝 +嘞 +嘟 +嘠 +嘡 +嘢 +嘣 +嘤 +嘥 +嘧 +嘩 +嘬 +嘭 +嘮 +嘯 +嘰 +嘱 +嘲 +嘳 +嘴 +嘵 +嘶 +嘷 +嘸 +嘹 +嘻 +嘽 +嘾 +嘿 +噀 +噁 +噂 +噅 +噆 +噇 +噈 +噉 +噊 +噌 +噍 +噎 +噏 +噓 +噔 +噗 +噘 +噙 +噚 +噛 +噜 +噝 +噞 +噠 +噢 +噣 +噤 +噥 +噦 +器 +噩 +噪 +噫 +噬 +噭 +噮 +噯 +噰 +噱 +噲 +噳 +噴 +噶 +噸 +噹 +噺 +噻 +噼 +嚀 +嚃 +嚄 +嚅 +嚆 +嚇 +嚈 +嚌 +嚍 +嚎 +嚏 +嚐 +嚒 +嚓 +嚕 +嚗 +嚘 +嚙 +嚚 +嚜 +嚞 +嚟 +嚢 +嚣 +嚤 +嚥 +嚦 +嚧 +嚨 +嚩 +嚪 +嚫 +嚬 +嚭 +嚮 +嚯 +嚲 +嚳 +嚴 +嚵 +嚶 +嚷 +嚼 +嚽 +嚾 +嚿 +囀 +囁 +囂 +囃 +囅 +囆 +囈 +囉 +囊 +囋 +囌 +囍 +囑 +囒 +囓 +囔 +囗 +囙 +囚 +四 +囝 +回 +囟 +因 +囡 +团 +団 +囤 +囧 +囪 +囫 +园 +囮 +囯 +困 +囱 +囲 +図 +围 +囵 +囶 +囷 +囹 +固 +国 +图 +囿 +圀 +圁 +圂 +圃 +圄 +圅 +圆 +圇 +圈 +圉 +圊 +國 +圌 +圍 +圏 +圐 +園 +圓 +圖 +圗 +團 +圙 +圜 +圞 +土 +圠 +圢 +圣 +圧 +在 +圩 +圪 +圫 +圬 +圭 +圮 +圯 +地 +圲 +圳 +圹 +场 +圻 +圾 +址 +坁 +坂 +坅 +均 +坉 +坊 +坋 +坌 +坍 +坎 +坏 +坐 +坑 +坒 +坖 +块 +坚 +坛 +坜 +坝 +坞 +坟 +坠 +坡 +坣 +坤 +坥 +坦 +坨 +坩 +坪 +坫 +坬 +坭 +坮 +坯 +坰 +坱 +坲 +坳 +坴 +坵 +坶 +坷 +坻 +坼 +坽 +坿 +垀 +垂 +垃 +垄 +垆 +垈 +型 +垌 +垍 +垎 +垏 +垒 +垓 +垔 +垕 +垗 +垘 +垙 +垚 +垛 +垜 +垝 +垞 +垟 +垠 +垡 +垢 +垣 +垤 +垦 +垧 +垩 +垫 +垭 +垮 +垯 +垰 +垱 +垲 +垴 +垵 +垸 +垺 +垻 +垼 +垽 +垾 +垿 +埂 +埃 +埅 +埆 +埇 +埈 +埋 +埌 +城 +埏 +埒 +埔 +埕 +埗 +埘 +埙 +埚 +埜 +埝 +域 +埠 +埡 +埢 +埤 +埧 +埨 +埪 +埫 +埭 +埮 +埯 +埳 +埴 +埵 +埶 +執 +埸 +培 +基 +埻 +埼 +埽 +堀 +堂 +堃 +堅 +堆 +堇 +堈 +堉 +堊 +堋 +堌 +堍 +堎 +堐 +堑 +堔 +堕 +堖 +堘 +堙 +堝 +堞 +堠 +堡 +堣 +堤 +堥 +堦 +堧 +堨 +堩 +堪 +堮 +堯 +堰 +報 +堲 +場 +堵 +堷 +堺 +堼 +堽 +堾 +堿 +塀 +塁 +塄 +塅 +塆 +塈 +塉 +塊 +塋 +塌 +塍 +塏 +塑 +塒 +塓 +塔 +塕 +塗 +塘 +塙 +塚 +塜 +塝 +塞 +塟 +塡 +塢 +塤 +塥 +塨 +塩 +填 +塬 +塭 +塯 +塰 +塱 +塲 +塴 +塵 +塸 +塹 +塺 +塼 +塽 +塾 +塿 +墀 +墁 +境 +墅 +墆 +墈 +墉 +墊 +墋 +墎 +墐 +墒 +墓 +墕 +墖 +増 +墘 +墙 +墚 +墜 +墝 +增 +墟 +墠 +墡 +墣 +墦 +墨 +墩 +墪 +墫 +墬 +墮 +墯 +墱 +墳 +墶 +墺 +墻 +墼 +墽 +墾 +壁 +壄 +壅 +壆 +壇 +壈 +壊 +壋 +壌 +壎 +壐 +壑 +壓 +壔 +壕 +壖 +壘 +壙 +壚 +壛 +壝 +壞 +壟 +壠 +壢 +壤 +壩 +壪 +士 +壬 +壮 +壯 +声 +壱 +売 +壳 +壴 +壶 +壷 +壸 +壹 +壺 +壻 +壼 +壽 +壾 +壿 +夀 +夃 +处 +夆 +备 +変 +夊 +夋 +夌 +复 +夎 +夏 +夐 +夒 +夔 +夕 +外 +夗 +夘 +夙 +多 +夜 +够 +夠 +夢 +夤 +夥 +大 +天 +太 +夫 +夬 +夭 +央 +夯 +失 +头 +夷 +夸 +夹 +夺 +夼 +夾 +奀 +奁 +奂 +奄 +奅 +奇 +奈 +奉 +奊 +奋 +奎 +奏 +奐 +契 +奓 +奔 +奕 +奖 +套 +奘 +奚 +奠 +奡 +奢 +奣 +奥 +奧 +奨 +奩 +奪 +奫 +奬 +奭 +奮 +奰 +奲 +女 +奴 +奶 +奸 +她 +奼 +好 +妀 +妁 +如 +妃 +妄 +妆 +妇 +妈 +妊 +妍 +妎 +妏 +妐 +妑 +妒 +妓 +妖 +妗 +妘 +妙 +妝 +妞 +妠 +妢 +妣 +妤 +妥 +妦 +妧 +妨 +妩 +妪 +妫 +妬 +妭 +妮 +妯 +妲 +妳 +妵 +妷 +妸 +妹 +妺 +妻 +妾 +姀 +姁 +姃 +姆 +姈 +姉 +姊 +始 +姌 +姍 +姎 +姏 +姐 +姑 +姒 +姓 +委 +姗 +姘 +姙 +姚 +姜 +姝 +姞 +姡 +姣 +姤 +姥 +姦 +姨 +姪 +姫 +姬 +姮 +姱 +姵 +姶 +姸 +姹 +姺 +姻 +姼 +姽 +姿 +娀 +威 +娃 +娄 +娅 +娆 +娇 +娈 +娉 +娋 +娌 +娍 +娎 +娑 +娓 +娖 +娘 +娙 +娛 +娜 +娟 +娠 +娣 +娥 +娩 +娫 +娭 +娯 +娱 +娲 +娳 +娴 +娵 +娶 +娷 +娸 +娼 +娽 +娿 +婀 +婁 +婆 +婉 +婊 +婌 +婍 +婐 +婑 +婓 +婕 +婗 +婘 +婚 +婞 +婟 +婠 +婢 +婣 +婤 +婥 +婦 +婧 +婪 +婫 +婬 +婭 +婯 +婳 +婴 +婵 +婶 +婷 +婸 +婺 +婻 +婼 +婿 +媂 +媃 +媄 +媆 +媊 +媐 +媒 +媓 +媔 +媕 +媖 +媗 +媚 +媛 +媜 +媞 +媟 +媢 +媥 +媦 +媧 +媪 +媬 +媭 +媮 +媯 +媰 +媱 +媲 +媳 +媵 +媸 +媺 +媻 +媼 +媽 +媾 +媿 +嫁 +嫂 +嫄 +嫇 +嫈 +嫉 +嫋 +嫌 +嫐 +嫒 +嫔 +嫕 +嫖 +嫗 +嫘 +嫚 +嫛 +嫜 +嫠 +嫡 +嫢 +嫣 +嫥 +嫦 +嫩 +嫪 +嫫 +嫭 +嫮 +嫰 +嫱 +嫲 +嫳 +嫴 +嫵 +嫶 +嫷 +嫺 +嫻 +嫽 +嫿 +嬀 +嬃 +嬅 +嬈 +嬉 +嬋 +嬌 +嬎 +嬐 +嬓 +嬖 +嬗 +嬙 +嬛 +嬝 +嬡 +嬢 +嬤 +嬥 +嬨 +嬪 +嬬 +嬭 +嬰 +嬲 +嬴 +嬷 +嬸 +嬽 +嬾 +嬿 +孀 +孁 +孃 +孅 +孆 +孈 +孋 +孌 +子 +孑 +孓 +孔 +孕 +孖 +字 +存 +孙 +孚 +孛 +孜 +孝 +孟 +孢 +季 +孤 +孥 +学 +孩 +孪 +孫 +孬 +孮 +孰 +孱 +孲 +孳 +孵 +孷 +學 +孺 +孻 +孼 +孽 +孿 +宁 +宂 +它 +宄 +宅 +宇 +守 +安 +宋 +完 +宍 +宎 +宏 +宓 +宕 +宗 +官 +宙 +定 +宛 +宜 +宝 +实 +実 +宠 +审 +客 +宣 +室 +宥 +宦 +宧 +宨 +宪 +宫 +宬 +宮 +宰 +害 +宴 +宵 +家 +宸 +容 +宽 +宾 +宿 +寀 +寁 +寂 +寃 +寄 +寅 +密 +寇 +寈 +寊 +寋 +富 +寍 +寐 +寑 +寒 +寓 +寔 +寕 +寖 +寗 +寘 +寙 +寛 +寜 +寝 +寞 +察 +寠 +寡 +寢 +寤 +寥 +實 +寧 +寨 +審 +寪 +寫 +寬 +寮 +寯 +寰 +寱 +寳 +寵 +寶 +寸 +对 +寺 +寻 +导 +対 +寿 +封 +専 +尃 +射 +尅 +将 +將 +專 +尉 +尊 +尋 +尌 +對 +導 +小 +尐 +少 +尒 +尓 +尔 +尕 +尖 +尗 +尘 +尙 +尚 +尜 +尝 +尟 +尢 +尤 +尥 +尧 +尨 +尪 +尬 +尭 +尰 +就 +尳 +尴 +尷 +尸 +尹 +尺 +尻 +尼 +尽 +尾 +尿 +局 +屁 +层 +屃 +屄 +居 +屆 +屇 +屈 +屉 +届 +屋 +屌 +屍 +屎 +屏 +屐 +屑 +屓 +屔 +展 +屖 +屘 +屙 +屚 +屜 +屝 +属 +屠 +屡 +屢 +屣 +層 +履 +屦 +屧 +屨 +屩 +屬 +屭 +屮 +屯 +山 +屴 +屹 +屺 +屻 +屼 +屾 +屿 +岀 +岁 +岂 +岅 +岈 +岉 +岊 +岋 +岌 +岍 +岏 +岐 +岑 +岒 +岔 +岖 +岗 +岘 +岙 +岚 +岛 +岜 +岝 +岞 +岟 +岠 +岡 +岢 +岣 +岤 +岧 +岨 +岩 +岪 +岫 +岬 +岭 +岮 +岯 +岰 +岱 +岳 +岵 +岷 +岸 +岻 +岽 +岿 +峁 +峂 +峃 +峄 +峅 +峇 +峉 +峊 +峋 +峌 +峍 +峐 +峒 +峗 +峘 +峙 +峚 +峛 +峝 +峞 +峠 +峡 +峣 +峤 +峥 +峦 +峧 +峨 +峩 +峪 +峬 +峭 +峮 +峯 +峰 +峱 +峴 +島 +峷 +峻 +峼 +峽 +峿 +崀 +崁 +崂 +崃 +崄 +崆 +崇 +崈 +崋 +崌 +崍 +崎 +崏 +崐 +崑 +崒 +崔 +崖 +崗 +崘 +崙 +崚 +崛 +崝 +崞 +崟 +崠 +崡 +崢 +崣 +崤 +崥 +崦 +崧 +崨 +崩 +崬 +崭 +崮 +崰 +崱 +崳 +崴 +崵 +崶 +崷 +崺 +崽 +崾 +崿 +嵁 +嵂 +嵃 +嵅 +嵇 +嵊 +嵋 +嵌 +嵎 +嵐 +嵑 +嵒 +嵕 +嵖 +嵗 +嵘 +嵙 +嵚 +嵛 +嵜 +嵝 +嵞 +嵣 +嵥 +嵨 +嵩 +嵫 +嵬 +嵮 +嵯 +嵰 +嵱 +嵲 +嵴 +嵷 +嵺 +嵻 +嵽 +嵾 +嵿 +嶀 +嶁 +嶂 +嶃 +嶄 +嶅 +嶆 +嶇 +嶈 +嶉 +嶊 +嶋 +嶌 +嶍 +嶒 +嶓 +嶔 +嶕 +嶗 +嶙 +嶚 +嶜 +嶝 +嶞 +嶟 +嶠 +嶡 +嶢 +嶦 +嶧 +嶨 +嶩 +嶪 +嶬 +嶭 +嶮 +嶰 +嶱 +嶲 +嶴 +嶵 +嶷 +嶸 +嶺 +嶼 +嶽 +巀 +巂 +巃 +巄 +巅 +巆 +巇 +巉 +巋 +巌 +巍 +巎 +巏 +巑 +巒 +巔 +巕 +巖 +巗 +巘 +巛 +川 +州 +巟 +巡 +巢 +巣 +工 +左 +巧 +巨 +巩 +巫 +差 +巯 +巰 +己 +已 +巳 +巴 +巵 +巶 +巷 +巹 +巻 +巽 +巾 +巿 +帀 +币 +市 +布 +帅 +帆 +师 +帊 +希 +帏 +帐 +帑 +帔 +帕 +帖 +帗 +帘 +帙 +帚 +帛 +帜 +帝 +帟 +帠 +帡 +帢 +帣 +帤 +帥 +带 +帧 +帨 +帩 +師 +帬 +席 +帮 +帯 +帰 +帱 +帳 +帴 +帶 +帷 +常 +帻 +帼 +帽 +帾 +幀 +幂 +幃 +幄 +幅 +幇 +幌 +幎 +幏 +幑 +幓 +幔 +幕 +幖 +幗 +幘 +幙 +幚 +幛 +幝 +幞 +幟 +幠 +幡 +幢 +幣 +幦 +幧 +幨 +幩 +幪 +幫 +幬 +幭 +幰 +干 +平 +年 +幵 +并 +幷 +幸 +幹 +幺 +幻 +幼 +幽 +幾 +广 +庀 +庁 +庂 +広 +庄 +庆 +庇 +庈 +庉 +床 +庋 +庌 +序 +庐 +庑 +库 +应 +底 +庖 +店 +庙 +庚 +庛 +府 +庞 +废 +庠 +庢 +庣 +庤 +庥 +度 +座 +庨 +庪 +庫 +庬 +庭 +庮 +庰 +庱 +庲 +庳 +庴 +庵 +庶 +康 +庸 +庹 +庻 +庼 +庽 +庾 +廁 +廂 +廃 +廄 +廅 +廆 +廇 +廈 +廉 +廊 +廋 +廌 +廍 +廎 +廐 +廑 +廒 +廓 +廔 +廕 +廖 +廗 +廘 +廙 +廚 +廛 +廜 +廝 +廞 +廟 +廠 +廡 +廢 +廣 +廥 +廦 +廧 +廨 +廩 +廪 +廬 +廮 +廯 +廰 +廱 +廳 +廵 +延 +廷 +廸 +廹 +建 +廻 +廼 +廾 +廿 +开 +弁 +异 +弃 +弄 +弅 +弆 +弇 +弈 +弉 +弊 +弋 +弌 +弍 +式 +弐 +弑 +弒 +弓 +弔 +引 +弖 +弗 +弘 +弚 +弛 +弝 +弟 +张 +弢 +弣 +弤 +弥 +弦 +弧 +弨 +弩 +弭 +弮 +弯 +弱 +弳 +張 +弶 +強 +弸 +弹 +强 +弼 +弾 +彀 +彃 +彄 +彅 +彆 +彈 +彉 +彊 +彋 +彌 +彎 +彏 +彐 +归 +当 +彔 +录 +彖 +彗 +彘 +彙 +彜 +彝 +彞 +彟 +彠 +彡 +形 +彣 +彤 +彥 +彦 +彧 +彩 +彪 +彫 +彬 +彭 +彯 +彰 +影 +彳 +彴 +彷 +彸 +役 +彻 +彼 +彾 +彿 +往 +征 +徂 +徃 +径 +待 +徇 +很 +徉 +徊 +律 +後 +徐 +徑 +徒 +従 +徕 +得 +徘 +徙 +徛 +徜 +從 +徠 +御 +徥 +徦 +徧 +徨 +復 +循 +徫 +徬 +徭 +微 +徯 +徲 +徳 +徴 +徵 +德 +徸 +徹 +徼 +徽 +徾 +徿 +忀 +忁 +心 +必 +忆 +忉 +忌 +忍 +忏 +忐 +忑 +忒 +忔 +忕 +忖 +志 +忘 +忙 +応 +忝 +忞 +忠 +忡 +忣 +忤 +忥 +忧 +忨 +忪 +快 +忬 +忭 +忮 +忯 +忱 +忳 +念 +忷 +忸 +忺 +忻 +忼 +忽 +忾 +忿 +怀 +态 +怂 +怃 +怄 +怅 +怆 +怊 +怋 +怍 +怎 +怏 +怐 +怒 +怓 +怔 +怕 +怖 +怗 +怙 +怚 +怛 +怜 +思 +怞 +怠 +怡 +怢 +急 +怦 +性 +怨 +怩 +怪 +怫 +怬 +怭 +怮 +怯 +怱 +怲 +怳 +怴 +怵 +怷 +怹 +总 +怼 +怿 +恀 +恁 +恂 +恃 +恅 +恆 +恇 +恉 +恊 +恋 +恌 +恍 +恐 +恒 +恓 +恔 +恕 +恙 +恚 +恛 +恝 +恞 +恟 +恠 +恡 +恢 +恣 +恤 +恥 +恧 +恨 +恩 +恪 +恫 +恬 +恭 +息 +恰 +恲 +恳 +恵 +恶 +恸 +恹 +恺 +恻 +恼 +恽 +恿 +悀 +悁 +悃 +悄 +悅 +悆 +悇 +悈 +悉 +悊 +悌 +悍 +悐 +悒 +悔 +悕 +悖 +悗 +悚 +悛 +悝 +悞 +悟 +悠 +悢 +患 +悤 +悦 +悧 +您 +悩 +悪 +悫 +悬 +悭 +悯 +悰 +悱 +悲 +悳 +悴 +悵 +悶 +悷 +悸 +悹 +悺 +悻 +悼 +悽 +悾 +惄 +情 +惆 +惇 +惈 +惉 +惊 +惋 +惌 +惎 +惏 +惑 +惓 +惔 +惕 +惘 +惙 +惚 +惛 +惜 +惝 +惟 +惠 +惡 +惢 +惣 +惤 +惥 +惦 +惧 +惨 +惩 +惪 +惫 +惬 +惭 +惮 +惯 +惰 +惱 +惲 +想 +惴 +惵 +惶 +惷 +惸 +惹 +惺 +惻 +惼 +惾 +愀 +愁 +愃 +愅 +愆 +愈 +愉 +愊 +愍 +愎 +意 +愐 +愒 +愓 +愔 +愕 +愖 +愚 +愛 +愜 +感 +愠 +愣 +愤 +愦 +愧 +愨 +愫 +愬 +愭 +愮 +愯 +愲 +愴 +愶 +愷 +愼 +愽 +愾 +愿 +慁 +慂 +慄 +慅 +慆 +慇 +慈 +慉 +慊 +態 +慌 +慍 +慎 +慑 +慒 +慓 +慔 +慕 +慘 +慚 +慛 +慜 +慝 +慞 +慟 +慢 +慣 +慤 +慥 +慧 +慨 +慪 +慫 +慬 +慭 +慮 +慰 +慱 +慲 +慳 +慴 +慵 +慶 +慷 +慹 +慺 +慼 +慽 +慾 +憀 +憂 +憃 +憇 +憉 +憊 +憋 +憍 +憎 +憐 +憑 +憒 +憓 +憔 +憕 +憖 +憙 +憚 +憛 +憝 +憟 +憡 +憢 +憤 +憧 +憨 +憩 +憪 +憫 +憬 +憭 +憮 +憯 +憰 +憱 +憲 +憴 +憵 +憶 +憷 +憸 +憺 +憻 +憼 +憾 +憿 +懁 +懂 +懃 +懅 +懆 +懇 +懈 +應 +懊 +懋 +懌 +懍 +懐 +懑 +懒 +懔 +懘 +懞 +懟 +懠 +懣 +懤 +懥 +懦 +懧 +懨 +懪 +懫 +懭 +懮 +懰 +懱 +懲 +懵 +懶 +懷 +懸 +懺 +懻 +懼 +懽 +懾 +懿 +戀 +戁 +戃 +戄 +戆 +戇 +戈 +戉 +戊 +戋 +戌 +戍 +戎 +戏 +成 +我 +戒 +戔 +戕 +或 +戗 +战 +戙 +戚 +戛 +戞 +戟 +戠 +戡 +戢 +戣 +戤 +戥 +戦 +戧 +戩 +截 +戬 +戭 +戮 +戯 +戰 +戱 +戲 +戳 +戴 +戶 +户 +戸 +戹 +戺 +戻 +戼 +戽 +戾 +房 +所 +扁 +扂 +扃 +扅 +扆 +扇 +扈 +扉 +扊 +手 +才 +扎 +扐 +扑 +扒 +打 +扔 +払 +托 +扙 +扛 +扜 +扞 +扡 +扢 +扣 +扤 +扥 +扦 +执 +扩 +扪 +扫 +扬 +扭 +扮 +扯 +扰 +扱 +扳 +扶 +批 +扺 +扻 +扼 +扽 +找 +承 +技 +抃 +抄 +抆 +抇 +抉 +把 +抌 +抎 +抏 +抑 +抒 +抓 +抔 +投 +抖 +抗 +折 +抚 +抛 +抜 +抝 +択 +抟 +抠 +抡 +抢 +护 +报 +抦 +抨 +抪 +披 +抬 +抭 +抮 +抱 +抴 +抵 +抶 +抹 +抻 +押 +抽 +抾 +抿 +拂 +拃 +拄 +担 +拆 +拇 +拈 +拉 +拊 +拋 +拌 +拍 +拎 +拏 +拐 +拑 +拒 +拓 +拔 +拕 +拖 +拗 +拘 +拙 +拚 +招 +拜 +拝 +拟 +拠 +拡 +拢 +拣 +拤 +拥 +拦 +拧 +拨 +择 +拫 +括 +拭 +拮 +拯 +拱 +拲 +拳 +拴 +拵 +拶 +拷 +拸 +拹 +拺 +拼 +拽 +拾 +拿 +挀 +持 +挂 +挃 +指 +挈 +按 +挋 +挌 +挍 +挎 +挏 +挐 +挑 +挓 +挖 +挙 +挚 +挛 +挝 +挞 +挟 +挠 +挡 +挣 +挤 +挥 +挦 +挨 +挩 +挪 +挫 +挬 +振 +挱 +挲 +挴 +挵 +挶 +挹 +挺 +挻 +挼 +挽 +挾 +挿 +捁 +捂 +捃 +捄 +捅 +捆 +捉 +捊 +捋 +捌 +捍 +捎 +捏 +捐 +捒 +捔 +捕 +捖 +捗 +捘 +捜 +捞 +损 +捡 +换 +捣 +捥 +捦 +捧 +捨 +捩 +捫 +捭 +据 +捯 +捱 +捲 +捵 +捶 +捷 +捺 +捻 +捼 +捽 +掀 +掂 +掃 +掄 +掇 +授 +掉 +掊 +掌 +掎 +掏 +掐 +排 +掔 +掖 +掗 +掘 +掙 +掛 +掜 +掝 +掞 +掟 +掠 +採 +探 +掣 +掤 +接 +控 +推 +掩 +措 +掫 +掬 +掭 +掮 +掯 +掰 +掱 +掲 +掳 +掴 +掷 +掸 +掺 +掻 +掼 +掽 +掾 +揀 +揃 +揄 +揅 +揆 +揉 +揊 +揍 +揎 +描 +提 +揑 +插 +揔 +揕 +揖 +揘 +揚 +換 +揜 +揝 +揟 +揠 +握 +揣 +揤 +揥 +揨 +揩 +揪 +揫 +揭 +揮 +揯 +揱 +揲 +揳 +援 +揵 +揶 +揷 +揸 +揹 +揺 +揽 +揿 +搀 +搁 +搂 +搅 +搆 +搉 +搊 +搋 +搌 +損 +搏 +搐 +搒 +搓 +搔 +搕 +搖 +搗 +搘 +搚 +搛 +搜 +搞 +搟 +搠 +搡 +搢 +搣 +搤 +搥 +搦 +搧 +搨 +搪 +搫 +搬 +搭 +搯 +搰 +搳 +搴 +搵 +搶 +搷 +搹 +携 +搽 +搾 +摀 +摁 +摂 +摃 +摄 +摅 +摆 +摇 +摈 +摊 +摋 +摍 +摎 +摏 +摐 +摑 +摒 +摓 +摔 +摘 +摛 +摜 +摝 +摞 +摟 +摠 +摡 +摦 +摧 +摩 +摭 +摮 +摯 +摰 +摲 +摳 +摴 +摵 +摶 +摸 +摹 +摺 +摻 +摽 +摿 +撂 +撃 +撄 +撅 +撇 +撈 +撊 +撋 +撌 +撏 +撐 +撑 +撒 +撓 +撕 +撖 +撗 +撙 +撚 +撜 +撝 +撞 +撟 +撠 +撢 +撣 +撤 +撥 +撦 +撩 +撫 +撬 +播 +撮 +撰 +撲 +撳 +撵 +撷 +撸 +撹 +撺 +撻 +撼 +撽 +撾 +撿 +擀 +擁 +擂 +擄 +擅 +擇 +擉 +擊 +擋 +操 +擎 +擏 +擐 +擒 +擓 +擔 +擕 +擖 +擗 +擘 +據 +擞 +擠 +擡 +擢 +擣 +擤 +擥 +擦 +擧 +擨 +擩 +擫 +擬 +擭 +擯 +擰 +擱 +擲 +擴 +擷 +擸 +擺 +擻 +擼 +擽 +擾 +擿 +攀 +攄 +攆 +攇 +攉 +攌 +攍 +攏 +攐 +攒 +攓 +攔 +攕 +攖 +攗 +攘 +攙 +攛 +攜 +攝 +攞 +攠 +攡 +攢 +攣 +攤 +攥 +攦 +攩 +攪 +攫 +攬 +攭 +攮 +支 +攲 +攳 +攴 +收 +攷 +攸 +改 +攻 +攽 +放 +政 +敁 +敂 +故 +敆 +效 +敉 +敊 +敌 +敍 +敎 +敏 +救 +敓 +敔 +敕 +敖 +敗 +敘 +教 +敛 +敜 +敝 +敞 +敟 +敢 +散 +敤 +敦 +敧 +敩 +敪 +敫 +敬 +敭 +敯 +数 +敲 +敳 +整 +敵 +敶 +敷 +數 +敹 +敺 +敻 +敾 +敿 +斀 +斁 +斂 +斃 +斄 +文 +斉 +斋 +斌 +斎 +斐 +斑 +斒 +斓 +斔 +斕 +斖 +斗 +料 +斛 +斜 +斝 +斞 +斟 +斠 +斡 +斤 +斥 +斧 +斨 +斩 +斪 +斫 +斬 +断 +斮 +斯 +新 +斲 +斵 +斶 +斷 +方 +斻 +於 +施 +斿 +旁 +旂 +旃 +旄 +旅 +旆 +旉 +旋 +旌 +旍 +旎 +族 +旐 +旒 +旓 +旖 +旗 +旙 +旚 +旛 +旝 +旞 +旟 +无 +旡 +既 +日 +旦 +旧 +旨 +早 +旬 +旭 +旮 +旯 +旰 +旱 +旲 +旳 +旴 +旵 +时 +旷 +旸 +旺 +旻 +旼 +旽 +旾 +旿 +昀 +昂 +昃 +昄 +昆 +昇 +昈 +昉 +昊 +昌 +昍 +明 +昏 +昐 +昒 +易 +昔 +昕 +昙 +昚 +昛 +昜 +昝 +昞 +星 +映 +昡 +昢 +昣 +昤 +春 +昦 +昧 +昨 +昪 +昫 +昬 +昭 +是 +昰 +昱 +昲 +昳 +昴 +昵 +昶 +昺 +昼 +昽 +显 +晁 +時 +晃 +晅 +晇 +晈 +晉 +晊 +晋 +晌 +晏 +晐 +晒 +晓 +晔 +晕 +晖 +晗 +晙 +晚 +晛 +晜 +晝 +晞 +晟 +晡 +晢 +晤 +晥 +晦 +晧 +晨 +晩 +晪 +晫 +晬 +晭 +普 +景 +晰 +晱 +晳 +晴 +晶 +晷 +晸 +智 +晻 +晼 +晾 +暀 +暁 +暂 +暃 +暄 +暅 +暆 +暇 +暈 +暉 +暊 +暋 +暌 +暍 +暎 +暏 +暐 +暑 +暕 +暖 +暗 +暘 +暝 +暟 +暠 +暡 +暢 +暦 +暧 +暨 +暩 +暫 +暮 +暰 +暱 +暲 +暴 +暵 +暶 +暸 +暹 +暻 +暾 +暿 +曀 +曄 +曅 +曆 +曇 +曈 +曉 +曊 +曋 +曌 +曏 +曒 +曔 +曖 +曙 +曚 +曛 +曜 +曝 +曠 +曡 +曣 +曦 +曧 +曨 +曩 +曬 +曭 +曮 +曰 +曲 +曳 +更 +曶 +曷 +書 +曹 +曺 +曼 +曽 +曾 +替 +最 +朁 +會 +朄 +朅 +月 +有 +朊 +朋 +服 +朏 +朐 +朒 +朓 +朔 +朕 +朖 +朗 +朘 +望 +朝 +朞 +期 +朡 +朢 +朣 +朦 +朧 +木 +未 +末 +本 +札 +朮 +术 +朱 +朳 +朴 +朵 +朶 +朸 +朹 +机 +朻 +朼 +朽 +朾 +朿 +杀 +杁 +杂 +权 +杄 +杅 +杆 +杇 +杈 +杉 +杋 +杌 +李 +杏 +材 +村 +杓 +杕 +杖 +杗 +杙 +杜 +杝 +杞 +束 +杠 +条 +杢 +杣 +杤 +来 +杧 +杨 +杩 +杪 +杬 +杭 +杮 +杯 +杰 +東 +杲 +杳 +杴 +杵 +杶 +杷 +杻 +杼 +松 +板 +极 +构 +枅 +枆 +枇 +枉 +枋 +枌 +枍 +枎 +枏 +析 +枒 +枓 +枕 +枖 +林 +枘 +枚 +枛 +果 +枝 +枞 +枠 +枡 +枢 +枣 +枥 +枧 +枨 +枪 +枫 +枭 +枯 +枰 +枱 +枲 +枳 +枴 +枵 +架 +枷 +枸 +枹 +枺 +枻 +枼 +柀 +柁 +柂 +柃 +柄 +柅 +柈 +柉 +柊 +柍 +柎 +柏 +某 +柑 +柒 +染 +柔 +柖 +柘 +柙 +柚 +柜 +柝 +柞 +柟 +柠 +柢 +柣 +柤 +查 +柧 +柩 +柫 +柬 +柮 +柯 +柰 +柱 +柲 +柳 +柴 +柵 +柶 +柷 +柸 +柹 +柺 +査 +柽 +柾 +柿 +栀 +栁 +栂 +栃 +栄 +栅 +标 +栈 +栉 +栊 +栋 +栌 +栎 +栏 +栐 +树 +栒 +栓 +栔 +栖 +栗 +栘 +栚 +栜 +栝 +栞 +栟 +校 +栢 +栨 +栩 +株 +栫 +栭 +栯 +栰 +栱 +栲 +栳 +栴 +栵 +样 +核 +根 +栻 +格 +栽 +栾 +桀 +桁 +桂 +桃 +桄 +桅 +框 +案 +桉 +桊 +桋 +桌 +桎 +桏 +桐 +桑 +桒 +桓 +桔 +桕 +桖 +桙 +桜 +桝 +桟 +桠 +桡 +桢 +档 +桤 +桥 +桦 +桧 +桨 +桩 +桫 +桭 +桮 +桯 +桱 +桲 +桴 +桵 +桶 +桷 +桹 +桺 +桼 +桾 +桿 +梀 +梁 +梂 +梃 +梅 +梆 +梇 +梉 +梌 +梏 +梐 +梒 +梓 +梔 +梗 +梘 +梛 +梜 +條 +梟 +梠 +梡 +梢 +梣 +梦 +梧 +梨 +梩 +梫 +梬 +梭 +梮 +梯 +械 +梱 +梲 +梳 +梴 +梵 +梶 +梼 +梽 +梾 +梿 +检 +棁 +棂 +棃 +棄 +棆 +棉 +棊 +棋 +棌 +棍 +棐 +棒 +棓 +棕 +棖 +棗 +棘 +棚 +棛 +棜 +棟 +棠 +棡 +棣 +棤 +棧 +棨 +棩 +棪 +棫 +棬 +森 +棯 +棰 +棱 +棲 +棳 +棵 +棶 +棷 +棸 +棹 +棺 +棻 +棼 +棽 +椀 +椁 +椄 +椅 +椆 +椇 +椈 +椉 +椋 +椌 +植 +椎 +椏 +椐 +椑 +椒 +椓 +椔 +椗 +椙 +検 +椟 +椠 +椤 +椥 +椪 +椭 +椰 +椲 +椳 +椴 +椵 +椶 +椸 +椹 +椽 +椿 +楀 +楂 +楄 +楅 +楈 +楉 +楊 +楎 +楒 +楓 +楔 +楕 +楖 +楗 +楘 +楙 +楚 +楛 +楝 +楞 +楟 +楠 +楡 +楢 +楣 +楤 +楥 +楦 +楧 +楨 +楩 +楪 +楫 +楬 +業 +楮 +楯 +楰 +楱 +楳 +極 +楶 +楷 +楸 +楹 +楺 +楼 +楽 +楿 +概 +榃 +榄 +榅 +榆 +榇 +榈 +榉 +榊 +榍 +榎 +榑 +榔 +榕 +榖 +榗 +榘 +榙 +榛 +榜 +榞 +榠 +榢 +榣 +榤 +榦 +榧 +榨 +榩 +榪 +榫 +榬 +榭 +榮 +榯 +榰 +榱 +榲 +榴 +榶 +榷 +榹 +榻 +榼 +榽 +榾 +榿 +槀 +槁 +槃 +槄 +槇 +槉 +槊 +構 +槌 +槍 +槎 +槐 +槑 +槓 +槔 +槕 +槗 +様 +槙 +槚 +槛 +槜 +槟 +槠 +槢 +槤 +槥 +槧 +槨 +槩 +槬 +槭 +槮 +槰 +槱 +槲 +槳 +槷 +槸 +槺 +槻 +槼 +槽 +槾 +槿 +樀 +樁 +樂 +樅 +樆 +樊 +樋 +樑 +樓 +樔 +樕 +樗 +樘 +標 +樛 +樝 +樞 +樟 +樠 +模 +樣 +樧 +樨 +権 +横 +樫 +樯 +樱 +樲 +樴 +樵 +樸 +樹 +樺 +樻 +樽 +樾 +樿 +橀 +橁 +橄 +橇 +橈 +橉 +橋 +橐 +橑 +橒 +橓 +橘 +橙 +橚 +橛 +橜 +橝 +橞 +機 +橡 +橢 +橤 +橥 +橦 +橧 +橨 +橪 +橫 +橭 +橱 +橶 +橹 +橼 +橾 +橿 +檀 +檁 +檃 +檄 +檇 +檉 +檊 +檍 +檎 +檐 +檑 +檓 +檔 +檕 +檖 +檗 +檛 +檜 +檝 +檞 +檟 +檠 +檡 +檢 +檣 +檥 +檦 +檨 +檩 +檫 +檬 +檮 +檯 +檳 +檵 +檸 +檹 +檻 +檽 +櫂 +櫃 +櫅 +櫆 +櫈 +櫋 +櫌 +櫐 +櫑 +櫓 +櫙 +櫚 +櫛 +櫜 +櫝 +櫞 +櫟 +櫠 +櫡 +櫥 +櫧 +櫨 +櫪 +櫫 +櫬 +櫰 +櫱 +櫳 +櫸 +櫹 +櫺 +櫻 +櫼 +櫾 +櫿 +欂 +欃 +欄 +欅 +欈 +欉 +權 +欋 +欏 +欐 +欑 +欒 +欖 +欘 +欞 +欠 +次 +欢 +欣 +欤 +欥 +欧 +欨 +欬 +欭 +欯 +欱 +欲 +欳 +欴 +欵 +欶 +欷 +欸 +欹 +欺 +欻 +欽 +款 +欿 +歂 +歃 +歅 +歆 +歇 +歈 +歉 +歊 +歋 +歌 +歍 +歎 +歐 +歓 +歔 +歕 +歙 +歛 +歜 +歟 +歠 +歡 +止 +正 +此 +步 +武 +歧 +歩 +歪 +歭 +歯 +歲 +歳 +歴 +歶 +歷 +歸 +歹 +死 +歼 +歾 +歿 +殀 +殁 +殂 +殃 +殄 +殆 +殇 +殈 +殉 +殊 +残 +殍 +殏 +殑 +殒 +殓 +殔 +殖 +殗 +殘 +殙 +殚 +殛 +殞 +殟 +殠 +殡 +殢 +殣 +殤 +殥 +殦 +殧 +殪 +殫 +殭 +殮 +殯 +殰 +殲 +殳 +殴 +段 +殶 +殷 +殺 +殻 +殼 +殽 +殿 +毀 +毁 +毂 +毃 +毄 +毅 +毆 +毇 +毈 +毉 +毊 +毋 +毌 +母 +毎 +每 +毐 +毒 +毓 +比 +毕 +毖 +毗 +毘 +毙 +毚 +毛 +毞 +毡 +毣 +毤 +毦 +毨 +毪 +毫 +毬 +毯 +毰 +毲 +毳 +毴 +毵 +毸 +毹 +毻 +毼 +毽 +毾 +毿 +氀 +氁 +氂 +氄 +氅 +氆 +氇 +氈 +氊 +氌 +氍 +氏 +氐 +民 +氓 +气 +氕 +氖 +気 +氘 +氙 +氚 +氛 +氟 +氠 +氡 +氢 +氣 +氤 +氦 +氧 +氨 +氩 +氪 +氫 +氬 +氮 +氯 +氰 +氲 +氳 +水 +氶 +氷 +永 +氹 +氻 +氽 +氾 +氿 +汀 +汁 +求 +汃 +汆 +汇 +汈 +汉 +汊 +汋 +汍 +汎 +汏 +汐 +汒 +汔 +汕 +汗 +汙 +汚 +汛 +汜 +汝 +汞 +江 +池 +污 +汤 +汦 +汧 +汨 +汩 +汪 +汫 +汭 +汯 +汰 +汱 +汲 +汳 +汴 +汶 +汸 +汹 +決 +汽 +汾 +沁 +沂 +沃 +沄 +沅 +沆 +沇 +沈 +沉 +沋 +沌 +沍 +沏 +沐 +沒 +沓 +沔 +沕 +沖 +沘 +沙 +沚 +沛 +沜 +沟 +没 +沢 +沣 +沤 +沥 +沦 +沧 +沨 +沩 +沪 +沫 +沬 +沭 +沮 +沯 +沱 +河 +沴 +沶 +沷 +沸 +油 +沺 +治 +沼 +沽 +沾 +沿 +況 +泂 +泃 +泄 +泅 +泆 +泇 +泉 +泊 +泌 +泐 +泒 +泓 +泔 +法 +泖 +泗 +泙 +泚 +泛 +泜 +泝 +泞 +泠 +泡 +波 +泣 +泥 +泧 +注 +泩 +泪 +泫 +泬 +泭 +泮 +泯 +泰 +泱 +泲 +泳 +泵 +泷 +泸 +泺 +泻 +泼 +泽 +泾 +洀 +洁 +洄 +洇 +洈 +洊 +洋 +洌 +洍 +洎 +洑 +洒 +洓 +洗 +洘 +洙 +洚 +洛 +洞 +洟 +洢 +洣 +洤 +津 +洧 +洨 +洩 +洪 +洫 +洭 +洮 +洱 +洲 +洳 +洴 +洵 +洶 +洸 +洹 +洺 +活 +洼 +洽 +派 +洿 +流 +浃 +浄 +浅 +浆 +浇 +浈 +浉 +浊 +测 +浍 +济 +浏 +浐 +浑 +浒 +浓 +浔 +浕 +浘 +浙 +浚 +浛 +浜 +浞 +浟 +浠 +浡 +浢 +浣 +浤 +浥 +浦 +浧 +浩 +浪 +浬 +浭 +浮 +浯 +浰 +浲 +浴 +浵 +浶 +海 +浸 +浹 +浺 +浼 +浿 +涂 +涄 +涅 +涆 +涇 +消 +涉 +涊 +涌 +涍 +涎 +涐 +涑 +涒 +涓 +涔 +涕 +涖 +涗 +涘 +涙 +涛 +涝 +涞 +涟 +涠 +涡 +涢 +涣 +涤 +润 +涧 +涨 +涩 +涪 +涫 +涬 +涮 +涯 +液 +涳 +涴 +涵 +涷 +涸 +涼 +涽 +涾 +涿 +淀 +淄 +淅 +淆 +淇 +淈 +淊 +淋 +淌 +淍 +淎 +淏 +淑 +淒 +淓 +淔 +淖 +淘 +淙 +淚 +淛 +淜 +淝 +淞 +淟 +淠 +淡 +淢 +淤 +淥 +淦 +淨 +淩 +淪 +淫 +淬 +淭 +淮 +淯 +淰 +深 +淳 +淴 +淵 +淶 +混 +淸 +淹 +淺 +添 +淼 +淽 +渀 +渃 +清 +渇 +済 +渉 +渊 +渋 +渌 +渍 +渎 +渐 +渑 +渓 +渔 +渕 +渗 +渙 +渚 +減 +渜 +渝 +渟 +渠 +渡 +渢 +渣 +渤 +渥 +渦 +渨 +温 +渫 +測 +渭 +渮 +港 +渰 +渱 +渲 +渳 +渴 +游 +渹 +渺 +渻 +渼 +渽 +渾 +渿 +湀 +湁 +湃 +湄 +湅 +湆 +湇 +湉 +湊 +湋 +湍 +湎 +湑 +湓 +湔 +湖 +湘 +湛 +湜 +湝 +湞 +湟 +湠 +湡 +湢 +湣 +湥 +湧 +湨 +湩 +湫 +湮 +湯 +湱 +湲 +湳 +湴 +湻 +湼 +湾 +湿 +満 +溁 +溃 +溅 +溆 +溇 +溈 +溉 +溋 +溍 +溎 +溏 +源 +溓 +溔 +準 +溘 +溙 +溚 +溛 +溜 +溝 +溞 +溟 +溠 +溢 +溥 +溦 +溧 +溪 +溫 +溮 +溯 +溰 +溱 +溲 +溳 +溴 +溵 +溶 +溷 +溹 +溺 +溻 +溼 +溽 +溾 +滀 +滁 +滂 +滃 +滄 +滅 +滆 +滇 +滈 +滉 +滋 +滌 +滍 +滎 +滏 +滑 +滒 +滓 +滔 +滕 +滖 +滗 +滘 +滙 +滚 +滛 +滜 +滝 +滞 +滟 +滠 +满 +滢 +滤 +滥 +滦 +滧 +滨 +滩 +滪 +滫 +滬 +滭 +滮 +滯 +滱 +滲 +滴 +滵 +滷 +滸 +滹 +滻 +滽 +滾 +滿 +漁 +漂 +漃 +漅 +漆 +漇 +漈 +漉 +漊 +漋 +漎 +漏 +漑 +漒 +漓 +演 +漕 +漖 +漘 +漙 +漚 +漠 +漢 +漣 +漤 +漥 +漦 +漧 +漩 +漪 +漫 +漬 +漭 +漮 +漯 +漰 +漱 +漲 +漳 +漴 +漵 +漶 +漷 +漸 +漹 +漻 +漼 +漾 +漿 +潀 +潁 +潃 +潄 +潅 +潆 +潇 +潋 +潍 +潎 +潏 +潐 +潑 +潒 +潔 +潕 +潖 +潗 +潘 +潙 +潚 +潛 +潜 +潝 +潞 +潟 +潠 +潢 +潤 +潦 +潩 +潬 +潭 +潮 +潯 +潰 +潲 +潳 +潴 +潵 +潶 +潷 +潸 +潺 +潼 +潽 +潾 +潿 +澀 +澁 +澂 +澄 +澅 +澆 +澇 +澈 +澉 +澋 +澌 +澍 +澎 +澐 +澒 +澓 +澔 +澖 +澗 +澛 +澜 +澞 +澠 +澡 +澣 +澤 +澥 +澦 +澧 +澨 +澩 +澪 +澫 +澭 +澮 +澯 +澱 +澳 +澴 +澶 +澹 +澻 +澼 +澽 +激 +濁 +濂 +濃 +濄 +濆 +濇 +濈 +濉 +濊 +濋 +濌 +濎 +濑 +濒 +濔 +濕 +濘 +濙 +濛 +濜 +濞 +濟 +濠 +濡 +濣 +濤 +濦 +濧 +濩 +濫 +濬 +濭 +濮 +濯 +濰 +濱 +濲 +濴 +濶 +濺 +濻 +濼 +濾 +濿 +瀀 +瀁 +瀄 +瀅 +瀆 +瀇 +瀉 +瀋 +瀌 +瀍 +瀎 +瀏 +瀑 +瀔 +瀕 +瀖 +瀘 +瀙 +瀚 +瀛 +瀝 +瀞 +瀟 +瀠 +瀡 +瀢 +瀣 +瀦 +瀧 +瀨 +瀩 +瀫 +瀬 +瀯 +瀰 +瀱 +瀲 +瀴 +瀵 +瀶 +瀷 +瀸 +瀹 +瀺 +瀼 +瀾 +瀿 +灂 +灃 +灄 +灈 +灉 +灊 +灋 +灌 +灏 +灑 +灕 +灖 +灗 +灘 +灛 +灝 +灞 +灟 +灡 +灣 +灤 +灧 +灨 +灩 +灪 +火 +灭 +灯 +灰 +灴 +灵 +灶 +灸 +灼 +災 +灾 +灿 +炀 +炁 +炅 +炆 +炉 +炊 +炌 +炎 +炒 +炔 +炕 +炖 +炘 +炙 +炜 +炝 +炟 +炣 +炤 +炫 +炬 +炭 +炮 +炯 +炰 +炱 +炲 +炳 +炷 +炸 +点 +為 +炻 +炼 +炽 +炾 +烀 +烁 +烂 +烃 +烈 +烉 +烊 +烋 +烏 +烑 +烒 +烓 +烔 +烖 +烘 +烙 +烛 +烜 +烝 +烟 +烠 +烤 +烦 +烧 +烨 +烩 +烫 +烬 +热 +烯 +烰 +烱 +烴 +烶 +烷 +烹 +烺 +烻 +烽 +焃 +焄 +焆 +焉 +焊 +焌 +焍 +焐 +焓 +焔 +焕 +焖 +焗 +焘 +焙 +焚 +焜 +焞 +焠 +無 +焣 +焦 +焮 +焯 +焰 +焱 +焴 +然 +焻 +焼 +焿 +煁 +煃 +煅 +煆 +煇 +煉 +煊 +煋 +煌 +煎 +煐 +煑 +煒 +煓 +煔 +煕 +煖 +煗 +煙 +煚 +煜 +煝 +煞 +煟 +煠 +煢 +煣 +煤 +煥 +煦 +照 +煨 +煩 +煬 +煮 +煲 +煳 +煴 +煵 +煶 +煸 +煺 +煽 +熀 +熂 +熄 +熅 +熇 +熈 +熉 +熊 +熏 +熐 +熒 +熔 +熖 +熗 +熘 +熙 +熚 +熛 +熜 +熟 +熠 +熤 +熥 +熨 +熬 +熯 +熰 +熱 +熲 +熳 +熵 +熸 +熹 +熺 +熻 +熼 +熾 +熿 +燀 +燁 +燂 +燃 +燄 +燅 +燈 +燉 +燊 +燋 +燎 +燏 +燐 +燒 +燔 +燕 +燖 +燗 +燘 +燙 +燚 +燜 +燝 +營 +燠 +燡 +燥 +燦 +燧 +燫 +燬 +燭 +燮 +燴 +燹 +燻 +燼 +燾 +燿 +爀 +爁 +爂 +爆 +爇 +爊 +爌 +爍 +爐 +爓 +爔 +爕 +爚 +爛 +爝 +爞 +爟 +爢 +爣 +爨 +爪 +爬 +爭 +爯 +爰 +爱 +爲 +爵 +父 +爷 +爸 +爹 +爺 +爻 +爼 +爽 +爾 +爿 +牀 +牁 +牂 +牄 +牆 +片 +版 +牉 +牋 +牌 +牍 +牎 +牏 +牒 +牓 +牕 +牖 +牘 +牙 +牚 +牛 +牝 +牟 +牠 +牡 +牢 +牣 +牤 +牥 +牦 +牧 +物 +牬 +牮 +牯 +牰 +牲 +牴 +牵 +牷 +牸 +特 +牺 +牻 +牼 +牽 +牾 +牿 +犀 +犁 +犂 +犄 +犅 +犆 +犇 +犈 +犉 +犊 +犋 +犌 +犍 +犎 +犏 +犐 +犑 +犒 +犓 +犕 +犖 +犗 +犘 +犚 +犛 +犝 +犞 +犟 +犠 +犢 +犣 +犤 +犥 +犦 +犧 +犨 +犩 +犪 +犬 +犮 +犯 +犰 +犴 +犵 +状 +犷 +犸 +犹 +犽 +犿 +狀 +狁 +狂 +狃 +狄 +狆 +狈 +狉 +狊 +狋 +狌 +狍 +狎 +狐 +狑 +狒 +狓 +狔 +狖 +狗 +狘 +狙 +狚 +狛 +狜 +狝 +狞 +狟 +狠 +狡 +狣 +狤 +狥 +狦 +狨 +狩 +狪 +狫 +独 +狭 +狮 +狯 +狰 +狱 +狲 +狳 +狴 +狶 +狷 +狸 +狹 +狺 +狻 +狼 +狽 +狾 +狿 +猀 +猁 +猂 +猃 +猄 +猇 +猈 +猊 +猋 +猎 +猏 +猑 +猒 +猓 +猕 +猖 +猗 +猘 +猙 +猛 +猜 +猝 +猞 +猟 +猡 +猢 +猣 +猥 +猦 +猧 +猨 +猩 +猪 +猫 +猬 +猭 +献 +猯 +猰 +猱 +猲 +猳 +猴 +猵 +猶 +猷 +猹 +猺 +猻 +猼 +猾 +猿 +獀 +獁 +獂 +獃 +獄 +獅 +獇 +獊 +獋 +獌 +獍 +獎 +獏 +獐 +獑 +獒 +獗 +獘 +獛 +獝 +獞 +獟 +獠 +獡 +獢 +獣 +獥 +獦 +獧 +獨 +獩 +獪 +獫 +獬 +獭 +獮 +獯 +獰 +獲 +獳 +獴 +獵 +獶 +獷 +獸 +獺 +獻 +獼 +獽 +獾 +獿 +玀 +玁 +玂 +玃 +玄 +玅 +玆 +率 +玈 +玉 +玊 +王 +玎 +玏 +玑 +玒 +玓 +玔 +玕 +玖 +玗 +玘 +玙 +玚 +玛 +玞 +玟 +玠 +玡 +玢 +玤 +玥 +玦 +玧 +玨 +玩 +玫 +玭 +玮 +环 +现 +玱 +玲 +玳 +玶 +玷 +玹 +玺 +玻 +玼 +玾 +玿 +珀 +珂 +珅 +珇 +珈 +珉 +珊 +珋 +珌 +珍 +珎 +珏 +珐 +珑 +珒 +珓 +珕 +珖 +珙 +珛 +珝 +珞 +珠 +珡 +珢 +珣 +珤 +珥 +珦 +珧 +珩 +珪 +珫 +班 +珮 +珰 +珲 +珵 +珶 +珷 +珸 +珹 +珺 +珽 +現 +琀 +琁 +球 +琄 +琅 +理 +琇 +琈 +琉 +琊 +琍 +琎 +琏 +琐 +琔 +琖 +琚 +琛 +琟 +琡 +琢 +琤 +琥 +琦 +琨 +琪 +琫 +琬 +琭 +琮 +琯 +琰 +琱 +琲 +琳 +琴 +琵 +琶 +琹 +琺 +琼 +琿 +瑀 +瑁 +瑂 +瑃 +瑄 +瑅 +瑆 +瑇 +瑈 +瑊 +瑋 +瑑 +瑒 +瑓 +瑔 +瑕 +瑖 +瑗 +瑙 +瑚 +瑛 +瑜 +瑝 +瑞 +瑟 +瑠 +瑢 +瑣 +瑤 +瑥 +瑧 +瑨 +瑩 +瑪 +瑬 +瑭 +瑯 +瑰 +瑱 +瑲 +瑳 +瑴 +瑵 +瑶 +瑷 +瑺 +瑽 +瑾 +瑿 +璀 +璁 +璃 +璄 +璅 +璆 +璇 +璈 +璉 +璊 +璋 +璌 +璎 +璐 +璒 +璕 +璗 +璘 +璙 +璚 +璜 +璞 +璟 +璠 +璡 +璢 +璣 +璥 +璦 +璧 +璨 +璩 +璪 +璫 +璬 +璮 +環 +璱 +璲 +璵 +璸 +璹 +璺 +璽 +璿 +瓀 +瓁 +瓅 +瓈 +瓊 +瓋 +瓌 +瓏 +瓑 +瓒 +瓔 +瓖 +瓘 +瓚 +瓛 +瓜 +瓝 +瓞 +瓟 +瓠 +瓡 +瓢 +瓣 +瓤 +瓥 +瓦 +瓨 +瓩 +瓬 +瓮 +瓯 +瓴 +瓵 +瓶 +瓷 +瓻 +瓽 +瓾 +瓿 +甀 +甂 +甃 +甄 +甈 +甋 +甌 +甍 +甏 +甐 +甑 +甒 +甓 +甔 +甕 +甖 +甗 +甘 +甙 +甚 +甜 +甝 +甞 +生 +甡 +產 +産 +甥 +甦 +用 +甩 +甪 +甫 +甬 +甭 +甮 +甯 +田 +由 +甲 +申 +电 +男 +甸 +甹 +町 +画 +甽 +甾 +甿 +畀 +畅 +畇 +畈 +畊 +畋 +界 +畎 +畏 +畐 +畑 +畔 +畖 +留 +畚 +畛 +畜 +畝 +畟 +畠 +畢 +畣 +畤 +略 +畦 +畧 +番 +畫 +畬 +畯 +異 +畱 +畲 +畳 +畴 +畵 +當 +畷 +畸 +畹 +畺 +畽 +畿 +疀 +疁 +疃 +疆 +疇 +疊 +疋 +疌 +疍 +疎 +疏 +疐 +疑 +疒 +疔 +疕 +疖 +疗 +疘 +疙 +疚 +疝 +疟 +疠 +疡 +疢 +疣 +疤 +疥 +疧 +疫 +疬 +疭 +疮 +疯 +疰 +疱 +疲 +疳 +疴 +疵 +疸 +疹 +疻 +疼 +疽 +疾 +疿 +痀 +痁 +痂 +痃 +痄 +病 +症 +痈 +痉 +痊 +痋 +痌 +痍 +痎 +痏 +痐 +痑 +痒 +痓 +痔 +痕 +痗 +痘 +痙 +痚 +痛 +痝 +痞 +痟 +痠 +痡 +痢 +痣 +痤 +痦 +痧 +痨 +痩 +痪 +痫 +痯 +痰 +痱 +痲 +痳 +痴 +痷 +痸 +痹 +痺 +痻 +痼 +痾 +痿 +瘀 +瘁 +瘃 +瘅 +瘆 +瘈 +瘉 +瘊 +瘋 +瘌 +瘍 +瘏 +瘐 +瘑 +瘓 +瘕 +瘖 +瘗 +瘘 +瘙 +瘛 +瘜 +瘝 +瘞 +瘟 +瘠 +瘡 +瘢 +瘣 +瘤 +瘥 +瘦 +瘧 +瘩 +瘪 +瘫 +瘭 +瘮 +瘯 +瘰 +瘱 +瘲 +瘳 +瘴 +瘵 +瘸 +瘺 +瘻 +瘼 +瘽 +瘾 +瘿 +癀 +療 +癃 +癄 +癅 +癆 +癇 +癈 +癉 +癌 +癍 +癐 +癒 +癓 +癔 +癖 +癗 +癘 +癙 +癜 +癞 +癟 +癠 +癡 +癢 +癣 +癤 +癥 +癧 +癩 +癪 +癫 +癬 +癭 +癮 +癯 +癰 +癱 +癲 +癵 +癸 +癹 +発 +登 +發 +白 +百 +癿 +皁 +皂 +的 +皆 +皇 +皈 +皊 +皋 +皎 +皏 +皐 +皑 +皓 +皕 +皖 +皙 +皚 +皛 +皜 +皝 +皞 +皤 +皦 +皫 +皭 +皮 +皯 +皰 +皱 +皲 +皴 +皵 +皷 +皸 +皺 +皻 +皽 +皾 +皿 +盂 +盃 +盄 +盅 +盆 +盇 +盈 +盉 +益 +盋 +盌 +盍 +盎 +盏 +盐 +监 +盒 +盓 +盔 +盖 +盗 +盘 +盛 +盜 +盝 +盞 +盟 +盡 +監 +盤 +盥 +盦 +盧 +盨 +盩 +盪 +盫 +盬 +盭 +目 +盯 +盱 +盲 +盳 +直 +盷 +相 +盹 +盺 +盻 +盼 +盾 +眀 +省 +眃 +眄 +眅 +眇 +眈 +眉 +眊 +看 +県 +眍 +眐 +眑 +眒 +眓 +眕 +眙 +眚 +眛 +眜 +眝 +眞 +真 +眠 +眢 +眣 +眥 +眦 +眨 +眩 +眬 +眭 +眯 +眱 +眲 +眳 +眴 +眵 +眶 +眷 +眸 +眹 +眺 +眼 +眽 +眾 +着 +睁 +睃 +睄 +睅 +睆 +睇 +睊 +睋 +睌 +睍 +睎 +睏 +睐 +睑 +睒 +睔 +睕 +睖 +睚 +睛 +睜 +睞 +睟 +睠 +睡 +睢 +督 +睥 +睦 +睧 +睨 +睩 +睪 +睫 +睬 +睭 +睮 +睯 +睹 +睺 +睼 +睽 +睾 +睿 +瞀 +瞁 +瞂 +瞄 +瞅 +瞇 +瞉 +瞋 +瞌 +瞍 +瞎 +瞏 +瞑 +瞒 +瞓 +瞖 +瞘 +瞚 +瞛 +瞜 +瞝 +瞞 +瞟 +瞠 +瞡 +瞢 +瞥 +瞧 +瞩 +瞪 +瞫 +瞬 +瞭 +瞰 +瞲 +瞳 +瞴 +瞵 +瞶 +瞷 +瞻 +瞼 +瞽 +瞿 +矁 +矂 +矇 +矉 +矊 +矌 +矍 +矎 +矏 +矐 +矓 +矔 +矕 +矗 +矘 +矙 +矚 +矛 +矜 +矞 +矠 +矢 +矣 +知 +矧 +矩 +矫 +矬 +短 +矮 +矯 +矰 +矱 +矲 +石 +矴 +矶 +矸 +矹 +矺 +矻 +矼 +矽 +矾 +矿 +砀 +码 +砂 +砄 +砅 +砆 +砉 +砋 +砌 +砍 +砎 +砏 +砐 +砑 +砒 +研 +砕 +砖 +砗 +砘 +砚 +砜 +砝 +砟 +砠 +砢 +砣 +砥 +砦 +砧 +砨 +砩 +砫 +砬 +砭 +砮 +砯 +砰 +砲 +砳 +破 +砵 +砷 +砸 +砹 +砺 +砻 +砼 +砾 +础 +硁 +硂 +硃 +硅 +硇 +硈 +硉 +硊 +硌 +硍 +硎 +硏 +硐 +硒 +硓 +硔 +硕 +硖 +硗 +硙 +硚 +硜 +硝 +硠 +硤 +硥 +硨 +硩 +硪 +硫 +硬 +硭 +确 +硯 +硰 +硱 +硼 +硾 +硿 +碁 +碃 +碄 +碅 +碆 +碇 +碈 +碉 +碌 +碍 +碎 +碏 +碑 +碓 +碔 +碕 +碗 +碘 +碚 +碛 +碜 +碞 +碟 +碡 +碣 +碥 +碧 +碨 +碩 +碪 +碫 +碭 +碰 +碱 +碲 +碳 +碴 +碶 +碸 +碹 +確 +碻 +碼 +碽 +碾 +磁 +磃 +磅 +磈 +磉 +磊 +磋 +磌 +磍 +磎 +磏 +磐 +磑 +磔 +磕 +磘 +磙 +磚 +磛 +磜 +磝 +磞 +磟 +磡 +磣 +磥 +磧 +磨 +磩 +磪 +磬 +磯 +磱 +磲 +磳 +磴 +磵 +磷 +磹 +磺 +磻 +磼 +磽 +磾 +磿 +礁 +礂 +礄 +礅 +礉 +礌 +礎 +礐 +礑 +礒 +礓 +礔 +礙 +礛 +礜 +礝 +礞 +礠 +礣 +礥 +礦 +礧 +礨 +礪 +礫 +礬 +礭 +礮 +礱 +礴 +礵 +示 +礼 +礽 +社 +礿 +祀 +祁 +祂 +祃 +祅 +祆 +祇 +祈 +祉 +祊 +祋 +祌 +祎 +祏 +祐 +祑 +祒 +祓 +祔 +祕 +祖 +祗 +祙 +祚 +祛 +祜 +祝 +神 +祟 +祠 +祡 +祢 +祣 +祤 +祥 +祧 +票 +祩 +祪 +祫 +祭 +祯 +祲 +祳 +祴 +祷 +祸 +祹 +祺 +祼 +祾 +祿 +禀 +禁 +禂 +禃 +禄 +禅 +禇 +禊 +禋 +禍 +禎 +福 +禑 +禒 +禓 +禔 +禕 +禖 +禗 +禘 +禚 +禛 +禜 +禟 +禠 +禡 +禤 +禦 +禧 +禨 +禩 +禪 +禫 +禬 +禭 +禮 +禰 +禱 +禳 +禴 +禵 +禷 +禸 +禹 +禺 +离 +禼 +禽 +禾 +禿 +秀 +私 +秃 +秅 +秆 +秈 +秉 +秊 +秋 +种 +秎 +秏 +科 +秒 +秔 +秕 +秖 +秘 +租 +秠 +秣 +秤 +秦 +秧 +秩 +秪 +秫 +秬 +秭 +秮 +积 +称 +秳 +秶 +秸 +秺 +移 +秽 +秾 +稀 +稂 +稃 +稅 +稆 +稈 +稉 +稊 +程 +稌 +稍 +税 +稑 +稒 +稔 +稗 +稘 +稙 +稚 +稜 +稞 +稟 +稠 +稣 +稫 +稬 +稭 +種 +稯 +稰 +稱 +稲 +稳 +稷 +稹 +稺 +稻 +稼 +稽 +稾 +稿 +穀 +穂 +穄 +穅 +穆 +穇 +穈 +穉 +穊 +穋 +穌 +積 +穎 +穏 +穑 +穖 +穗 +穙 +穛 +穜 +穟 +穠 +穡 +穢 +穣 +穤 +穧 +穨 +穩 +穫 +穬 +穭 +穮 +穰 +穱 +穴 +穵 +究 +穷 +穸 +穹 +空 +穽 +穾 +穿 +窀 +突 +窃 +窄 +窅 +窆 +窈 +窉 +窊 +窋 +窌 +窍 +窎 +窏 +窐 +窑 +窒 +窓 +窔 +窕 +窖 +窗 +窘 +窙 +窜 +窝 +窞 +窟 +窠 +窢 +窣 +窥 +窦 +窨 +窩 +窪 +窫 +窬 +窭 +窮 +窯 +窰 +窱 +窲 +窳 +窴 +窵 +窶 +窸 +窺 +窻 +窾 +窿 +竀 +竁 +竃 +竄 +竅 +竇 +竈 +竊 +立 +竑 +竖 +竘 +站 +竚 +竜 +竝 +竞 +竟 +章 +竢 +竣 +童 +竦 +竩 +竪 +竫 +竭 +端 +竴 +競 +竷 +竹 +竺 +竻 +竽 +竿 +笃 +笄 +笅 +笆 +笈 +笊 +笋 +笏 +笐 +笑 +笓 +笔 +笕 +笘 +笙 +笛 +笝 +笞 +笠 +笢 +笤 +笥 +符 +笨 +笩 +笪 +笫 +第 +笭 +笮 +笯 +笰 +笱 +笲 +笳 +笴 +笵 +笸 +笹 +笺 +笻 +笼 +笾 +筀 +筄 +筅 +筆 +筇 +筈 +等 +筊 +筋 +筌 +筍 +筏 +筐 +筑 +筒 +答 +策 +筘 +筚 +筛 +筜 +筝 +筞 +筠 +筡 +筢 +筤 +筥 +筦 +筧 +筩 +筬 +筭 +筮 +筯 +筰 +筱 +筲 +筳 +筴 +筵 +筶 +筷 +筹 +筻 +筼 +签 +简 +箄 +箅 +箆 +箇 +箈 +箊 +箋 +箌 +箍 +箎 +箏 +箐 +箑 +箒 +箓 +箔 +箕 +箖 +算 +箘 +箙 +箛 +箜 +箝 +箠 +管 +箢 +箦 +箧 +箨 +箩 +箪 +箫 +箬 +箭 +箯 +箱 +箴 +箷 +箸 +箹 +箾 +節 +篁 +範 +篆 +篇 +築 +篊 +篋 +篌 +篎 +篑 +篓 +篔 +篕 +篙 +篚 +篛 +篝 +篞 +篠 +篡 +篣 +篤 +篥 +篦 +篧 +篨 +篩 +篪 +篭 +篮 +篯 +篱 +篲 +篳 +篴 +篷 +篸 +篹 +篻 +篼 +篽 +篾 +篿 +簀 +簁 +簂 +簃 +簅 +簇 +簉 +簋 +簌 +簍 +簎 +簏 +簑 +簒 +簕 +簖 +簗 +簙 +簜 +簝 +簞 +簟 +簠 +簡 +簢 +簣 +簥 +簦 +簧 +簨 +簩 +簪 +簫 +簬 +簭 +簮 +簰 +簳 +簷 +簸 +簹 +簺 +簻 +簼 +簽 +簾 +簿 +籀 +籁 +籃 +籈 +籉 +籊 +籌 +籍 +籐 +籔 +籗 +籙 +籛 +籜 +籝 +籟 +籠 +籣 +籤 +籥 +籦 +籧 +籩 +籪 +籬 +籮 +籯 +籲 +米 +籴 +籸 +籹 +籺 +类 +籼 +籽 +籾 +粂 +粃 +粄 +粇 +粉 +粊 +粋 +粍 +粑 +粒 +粔 +粕 +粗 +粘 +粛 +粜 +粝 +粞 +粟 +粢 +粤 +粥 +粦 +粧 +粩 +粪 +粮 +粱 +粲 +粳 +粵 +粹 +粺 +粻 +粼 +粽 +精 +粿 +糀 +糁 +糅 +糇 +糈 +糉 +糊 +糌 +糍 +糎 +糒 +糔 +糕 +糖 +糗 +糙 +糜 +糝 +糞 +糟 +糠 +糢 +糧 +糨 +糪 +糬 +糯 +糰 +糱 +糲 +糴 +糵 +糶 +糷 +糸 +糹 +糺 +系 +糾 +紀 +紂 +紃 +約 +紅 +紆 +紇 +紈 +紉 +紊 +紋 +納 +紎 +紐 +紑 +紒 +紓 +純 +紕 +紖 +紗 +紘 +紙 +級 +紛 +紜 +紝 +紞 +紟 +素 +紡 +索 +紥 +紧 +紩 +紫 +紬 +紮 +累 +細 +紱 +紲 +紳 +紵 +紶 +紸 +紹 +紺 +紼 +紽 +紾 +紿 +絀 +絁 +終 +絃 +組 +絅 +絆 +絇 +経 +絎 +絏 +結 +絓 +絕 +絖 +絘 +絛 +絜 +絝 +絞 +絡 +絢 +絣 +給 +絧 +絨 +絪 +絫 +絭 +絮 +絯 +絰 +統 +絲 +絳 +絵 +絶 +絷 +絹 +絺 +絻 +絼 +絽 +絿 +綀 +綁 +綃 +綄 +綅 +綆 +綈 +綉 +綌 +綍 +綎 +綏 +綑 +經 +綔 +綖 +継 +続 +綜 +綝 +綞 +綟 +綠 +綢 +綣 +綦 +綧 +綪 +綫 +綬 +維 +綮 +綯 +綰 +綱 +網 +綳 +綴 +綵 +綷 +綸 +綹 +綺 +綻 +綼 +綽 +綾 +綿 +緀 +緁 +緂 +緃 +緄 +緅 +緆 +緇 +緈 +緊 +緋 +緌 +緎 +総 +緐 +緑 +緒 +緔 +緖 +緗 +緘 +緙 +線 +緛 +緜 +緝 +緞 +締 +緡 +緣 +緤 +緥 +緦 +緧 +編 +緩 +緪 +緬 +緯 +緰 +緱 +緲 +緳 +練 +緵 +緶 +緷 +緹 +緺 +緻 +縁 +縂 +縃 +縄 +縅 +縈 +縉 +縊 +縋 +縌 +縎 +縏 +縐 +縑 +縒 +縓 +縕 +縗 +縚 +縛 +縜 +縝 +縞 +縟 +縠 +縡 +縢 +縣 +縤 +縦 +縧 +縩 +縪 +縫 +縭 +縮 +縯 +縰 +縱 +縲 +縳 +縴 +縵 +縶 +縷 +縸 +縹 +縻 +縼 +總 +績 +縿 +繀 +繁 +繂 +繃 +繄 +繅 +繆 +繇 +繈 +繉 +繊 +繋 +繍 +繐 +繑 +繒 +織 +繕 +繖 +繘 +繙 +繚 +繜 +繝 +繞 +繟 +繠 +繡 +繢 +繣 +繦 +繧 +繩 +繪 +繫 +繭 +繮 +繯 +繰 +繲 +繳 +繴 +繵 +繶 +繷 +繸 +繹 +繺 +繻 +繼 +繽 +繾 +纀 +纁 +纂 +纆 +纇 +纈 +纊 +纋 +續 +纍 +纏 +纐 +纑 +纒 +纓 +纔 +纕 +纖 +纗 +纘 +纚 +纛 +纜 +纠 +纡 +红 +纣 +纤 +纥 +约 +级 +纨 +纩 +纪 +纫 +纬 +纭 +纮 +纯 +纰 +纱 +纲 +纳 +纴 +纵 +纶 +纷 +纸 +纹 +纺 +纻 +纼 +纽 +纾 +线 +绀 +绁 +绂 +练 +组 +绅 +细 +织 +终 +绉 +绊 +绋 +绌 +绍 +绎 +经 +绐 +绑 +绒 +结 +绔 +绕 +绖 +绗 +绘 +给 +绚 +绛 +络 +绝 +绞 +统 +绠 +绡 +绢 +绣 +绤 +绥 +绦 +继 +绨 +绩 +绪 +绫 +续 +绮 +绯 +绰 +绱 +绲 +绳 +维 +绵 +绶 +绷 +绸 +绹 +绺 +绻 +综 +绽 +绾 +绿 +缀 +缁 +缂 +缃 +缄 +缅 +缆 +缇 +缈 +缉 +缊 +缌 +缎 +缐 +缑 +缒 +缓 +缔 +缕 +编 +缗 +缘 +缙 +缚 +缛 +缜 +缝 +缞 +缟 +缠 +缡 +缢 +缣 +缤 +缥 +缦 +缧 +缨 +缩 +缪 +缫 +缬 +缭 +缮 +缯 +缰 +缱 +缲 +缳 +缴 +缵 +缶 +缸 +缹 +缺 +缽 +缾 +缿 +罂 +罃 +罄 +罅 +罇 +罈 +罉 +罊 +罋 +罌 +罍 +罎 +罏 +罐 +网 +罔 +罕 +罗 +罘 +罚 +罛 +罜 +罝 +罞 +罟 +罠 +罡 +罢 +罣 +罥 +罦 +罧 +罨 +罩 +罪 +罫 +罬 +罭 +置 +罰 +罱 +署 +罳 +罴 +罵 +罶 +罷 +罹 +罺 +罻 +罼 +罽 +罾 +罿 +羁 +羂 +羃 +羅 +羆 +羇 +羈 +羉 +羊 +羋 +羌 +羍 +美 +羑 +羒 +羓 +羔 +羕 +羖 +羗 +羙 +羚 +羛 +羜 +羝 +羞 +羟 +羠 +羡 +羢 +羣 +群 +羥 +羦 +羧 +羨 +義 +羬 +羭 +羯 +羰 +羱 +羲 +羳 +羴 +羵 +羶 +羷 +羸 +羹 +羺 +羼 +羽 +羾 +羿 +翀 +翁 +翂 +翃 +翄 +翅 +翇 +翈 +翊 +翋 +翌 +翍 +翎 +翏 +翐 +翑 +習 +翔 +翕 +翘 +翙 +翚 +翛 +翜 +翟 +翠 +翡 +翢 +翣 +翥 +翦 +翨 +翩 +翪 +翫 +翬 +翭 +翮 +翯 +翰 +翱 +翲 +翳 +翴 +翷 +翹 +翺 +翻 +翼 +翽 +翾 +翿 +耀 +老 +考 +耄 +者 +耆 +耇 +耋 +而 +耍 +耎 +耏 +耐 +耑 +耒 +耔 +耕 +耖 +耗 +耘 +耙 +耜 +耞 +耟 +耠 +耡 +耢 +耤 +耥 +耦 +耧 +耨 +耩 +耪 +耬 +耮 +耰 +耱 +耳 +耴 +耵 +耶 +耷 +耸 +耹 +耻 +耽 +耾 +耿 +聂 +聃 +聆 +聇 +聈 +聊 +聋 +职 +聍 +聏 +聑 +聒 +联 +聖 +聘 +聚 +聝 +聞 +聟 +聡 +聨 +聩 +聪 +聯 +聰 +聱 +聲 +聳 +聴 +聵 +聶 +職 +聹 +聽 +聾 +聿 +肂 +肃 +肄 +肅 +肆 +肇 +肉 +肋 +肌 +肎 +肏 +肐 +肒 +肓 +肕 +肖 +肘 +肙 +肚 +肛 +肜 +肝 +肟 +肠 +股 +肢 +肣 +肤 +肥 +肧 +肩 +肪 +肫 +肭 +肮 +肯 +肱 +育 +肴 +肵 +肷 +肸 +肹 +肺 +肼 +肽 +肾 +肿 +胀 +胁 +胂 +胃 +胄 +胅 +胆 +胇 +胈 +胉 +胊 +背 +胍 +胎 +胏 +胐 +胑 +胔 +胕 +胖 +胗 +胘 +胙 +胚 +胛 +胜 +胝 +胞 +胠 +胡 +胣 +胤 +胥 +胧 +胨 +胩 +胪 +胫 +胬 +胭 +胯 +胰 +胱 +胲 +胳 +胴 +胵 +胶 +胷 +胸 +胹 +胺 +胻 +胼 +能 +胾 +脀 +脁 +脂 +脃 +脅 +脆 +脇 +脈 +脉 +脊 +脍 +脎 +脏 +脐 +脑 +脒 +脓 +脔 +脕 +脖 +脗 +脘 +脙 +脚 +脛 +脞 +脟 +脡 +脣 +脤 +脥 +脧 +脩 +脫 +脬 +脭 +脯 +脰 +脱 +脲 +脳 +脶 +脷 +脸 +脹 +脽 +脾 +脿 +腃 +腄 +腆 +腇 +腈 +腊 +腋 +腌 +腍 +腎 +腏 +腐 +腑 +腒 +腓 +腔 +腕 +腖 +腘 +腙 +腚 +腛 +腜 +腞 +腠 +腢 +腤 +腥 +腦 +腧 +腨 +腩 +腫 +腭 +腮 +腯 +腰 +腱 +腲 +腳 +腴 +腶 +腷 +腸 +腹 +腺 +腻 +腼 +腽 +腾 +腿 +膀 +膂 +膃 +膆 +膇 +膈 +膉 +膊 +膋 +膌 +膍 +膏 +膑 +膕 +膘 +膙 +膚 +膛 +膜 +膝 +膞 +膟 +膠 +膢 +膣 +膥 +膦 +膨 +膩 +膫 +膬 +膮 +膰 +膱 +膲 +膳 +膴 +膵 +膷 +膹 +膺 +膻 +膽 +膾 +膿 +臀 +臂 +臃 +臄 +臅 +臆 +臇 +臈 +臉 +臊 +臋 +臌 +臍 +臏 +臐 +臑 +臒 +臓 +臕 +臗 +臘 +臙 +臚 +臛 +臜 +臝 +臞 +臟 +臠 +臡 +臢 +臣 +臥 +臦 +臧 +臨 +臩 +自 +臬 +臭 +臮 +臯 +臲 +至 +致 +臷 +臸 +臺 +臻 +臼 +臾 +臿 +舀 +舁 +舂 +舄 +舅 +舆 +與 +興 +舉 +舊 +舋 +舌 +舍 +舎 +舐 +舑 +舒 +舔 +舕 +舖 +舗 +舘 +舛 +舜 +舝 +舞 +舟 +舠 +舡 +舢 +舣 +舥 +舨 +舩 +航 +舫 +般 +舭 +舯 +舰 +舱 +舲 +舳 +舴 +舵 +舶 +舷 +舸 +船 +舺 +舻 +舼 +舽 +舾 +艀 +艂 +艄 +艅 +艇 +艉 +艋 +艎 +艏 +艐 +艑 +艒 +艓 +艔 +艕 +艘 +艙 +艚 +艛 +艟 +艤 +艦 +艨 +艫 +艮 +良 +艰 +艱 +色 +艳 +艴 +艵 +艶 +艷 +艸 +艹 +艺 +艼 +艽 +艾 +艿 +芀 +节 +芃 +芄 +芅 +芈 +芊 +芋 +芍 +芎 +芏 +芐 +芑 +芒 +芓 +芔 +芗 +芘 +芙 +芚 +芛 +芜 +芝 +芞 +芟 +芠 +芡 +芣 +芤 +芥 +芦 +芧 +芨 +芩 +芪 +芫 +芬 +芭 +芮 +芯 +芰 +花 +芲 +芳 +芴 +芵 +芷 +芸 +芹 +芺 +芻 +芼 +芽 +芾 +芿 +苀 +苁 +苄 +苅 +苇 +苈 +苉 +苊 +苋 +苌 +苍 +苎 +苏 +苑 +苒 +苓 +苔 +苕 +苖 +苗 +苘 +苙 +苛 +苜 +苝 +苞 +苟 +苠 +苡 +苣 +苤 +若 +苦 +苧 +苨 +苪 +苫 +苬 +苯 +英 +苲 +苳 +苴 +苵 +苶 +苷 +苹 +苺 +苻 +苼 +苾 +茀 +茁 +茂 +范 +茄 +茅 +茆 +茇 +茈 +茉 +茋 +茌 +茍 +茎 +茏 +茑 +茓 +茔 +茕 +茖 +茗 +茘 +茙 +茚 +茛 +茜 +茝 +茠 +茢 +茤 +茥 +茦 +茧 +茨 +茩 +茪 +茫 +茬 +茭 +茮 +茯 +茱 +茲 +茳 +茴 +茵 +茶 +茷 +茸 +茹 +茺 +茻 +茼 +茽 +茿 +荀 +荁 +荂 +荃 +荄 +荅 +荆 +荇 +草 +荊 +荍 +荎 +荏 +荐 +荑 +荒 +荓 +荔 +荖 +荘 +荙 +荚 +荛 +荜 +荞 +荟 +荠 +荡 +荣 +荤 +荥 +荦 +荧 +荨 +荩 +荪 +荫 +荬 +荭 +荮 +药 +荳 +荴 +荵 +荷 +荸 +荺 +荻 +荼 +荽 +荾 +莁 +莃 +莅 +莆 +莉 +莊 +莋 +莌 +莍 +莎 +莏 +莐 +莒 +莓 +莔 +莕 +莖 +莘 +莙 +莛 +莜 +莝 +莞 +莠 +莢 +莣 +莤 +莥 +莧 +莨 +莩 +莪 +莫 +莬 +莰 +莱 +莲 +莳 +莴 +莵 +莶 +获 +莸 +莹 +莺 +莼 +莽 +莿 +菀 +菁 +菂 +菅 +菆 +菇 +菈 +菉 +菊 +菋 +菌 +菍 +菎 +菏 +菑 +菓 +菔 +菕 +菖 +菘 +菙 +菜 +菝 +菞 +菟 +菠 +菡 +菣 +菤 +菥 +菧 +菨 +菩 +菪 +菫 +華 +菰 +菱 +菲 +菳 +菴 +菵 +菶 +菸 +菹 +菺 +菼 +菽 +菾 +菿 +萁 +萃 +萄 +萆 +萇 +萉 +萊 +萋 +萌 +萍 +萎 +萏 +萐 +萑 +萒 +萘 +萚 +萜 +萝 +萠 +萡 +萣 +萤 +营 +萦 +萧 +萨 +萩 +萬 +萭 +萯 +萰 +萱 +萲 +萳 +萴 +萵 +萷 +萸 +萹 +萺 +萼 +落 +萿 +葀 +葂 +葃 +葅 +葆 +葉 +葊 +葋 +葌 +葍 +葎 +葑 +葒 +葖 +著 +葙 +葚 +葛 +葜 +葝 +葞 +葟 +葡 +董 +葤 +葥 +葦 +葧 +葩 +葫 +葬 +葭 +葯 +葰 +葱 +葳 +葴 +葵 +葶 +葷 +葸 +葹 +葺 +葽 +蒂 +蒄 +蒆 +蒇 +蒈 +蒉 +蒋 +蒌 +蒍 +蒎 +蒏 +蒐 +蒓 +蒔 +蒗 +蒘 +蒙 +蒚 +蒛 +蒜 +蒝 +蒞 +蒟 +蒠 +蒡 +蒢 +蒤 +蒧 +蒨 +蒩 +蒪 +蒫 +蒬 +蒭 +蒮 +蒯 +蒱 +蒲 +蒴 +蒶 +蒸 +蒹 +蒺 +蒻 +蒼 +蒽 +蒾 +蒿 +蓀 +蓁 +蓂 +蓄 +蓆 +蓇 +蓉 +蓊 +蓋 +蓌 +蓍 +蓎 +蓏 +蓐 +蓑 +蓓 +蓖 +蓘 +蓚 +蓝 +蓟 +蓠 +蓢 +蓣 +蓥 +蓦 +蓧 +蓨 +蓩 +蓪 +蓫 +蓬 +蓭 +蓮 +蓯 +蓰 +蓱 +蓲 +蓳 +蓴 +蓶 +蓷 +蓹 +蓺 +蓻 +蓼 +蓽 +蓾 +蓿 +蔀 +蔂 +蔃 +蔄 +蔆 +蔇 +蔈 +蔉 +蔊 +蔌 +蔍 +蔎 +蔏 +蔑 +蔒 +蔓 +蔔 +蔕 +蔖 +蔗 +蔘 +蔚 +蔜 +蔝 +蔞 +蔟 +蔠 +蔡 +蔣 +蔤 +蔥 +蔦 +蔧 +蔨 +蔩 +蔪 +蔫 +蔬 +蔭 +蔮 +蔰 +蔱 +蔴 +蔵 +蔷 +蔸 +蔹 +蔺 +蔻 +蔼 +蔽 +蔾 +蔿 +蕀 +蕁 +蕃 +蕄 +蕅 +蕆 +蕇 +蕈 +蕉 +蕊 +蕋 +蕍 +蕎 +蕑 +蕒 +蕓 +蕕 +蕖 +蕗 +蕘 +蕙 +蕚 +蕛 +蕝 +蕞 +蕟 +蕠 +蕡 +蕢 +蕣 +蕤 +蕦 +蕧 +蕨 +蕩 +蕪 +蕫 +蕭 +蕮 +蕰 +蕱 +蕲 +蕴 +蕵 +蕷 +蕸 +蕹 +蕺 +蕻 +蕼 +蕾 +蕿 +薀 +薁 +薂 +薃 +薄 +薅 +薆 +薇 +薈 +薉 +薊 +薋 +薌 +薍 +薎 +薏 +薐 +薑 +薔 +薕 +薖 +薗 +薘 +薙 +薚 +薛 +薜 +薝 +薞 +薟 +薠 +薡 +薢 +薣 +薤 +薦 +薧 +薨 +薩 +薪 +薫 +薬 +薭 +薮 +薯 +薰 +薱 +薲 +薳 +薴 +薵 +薶 +薷 +薸 +薹 +薺 +薽 +薾 +薿 +藀 +藁 +藂 +藃 +藄 +藅 +藆 +藇 +藈 +藉 +藋 +藍 +藎 +藏 +藐 +藑 +藒 +藓 +藔 +藕 +藗 +藘 +藙 +藚 +藜 +藝 +藟 +藠 +藡 +藣 +藤 +藥 +藦 +藨 +藩 +藪 +藫 +藬 +藭 +藰 +藱 +藲 +藴 +藶 +藷 +藸 +藹 +藺 +藻 +藼 +藾 +藿 +蘀 +蘁 +蘂 +蘄 +蘅 +蘆 +蘇 +蘉 +蘊 +蘋 +蘌 +蘐 +蘑 +蘓 +蘖 +蘗 +蘘 +蘙 +蘚 +蘛 +蘜 +蘞 +蘟 +蘠 +蘡 +蘢 +蘣 +蘤 +蘥 +蘦 +蘧 +蘩 +蘪 +蘬 +蘭 +蘮 +蘱 +蘳 +蘴 +蘵 +蘶 +蘸 +蘹 +蘺 +蘻 +蘼 +蘾 +蘿 +虀 +虃 +虆 +虇 +虈 +虉 +虋 +虌 +虎 +虏 +虐 +虑 +虒 +虓 +虔 +處 +虖 +虙 +虚 +虛 +虜 +虞 +號 +虡 +虢 +虣 +虤 +虧 +虨 +虩 +虪 +虫 +虬 +虭 +虮 +虯 +虰 +虱 +虴 +虵 +虷 +虸 +虹 +虺 +虻 +虼 +虽 +虾 +虿 +蚀 +蚁 +蚂 +蚄 +蚅 +蚆 +蚇 +蚊 +蚋 +蚌 +蚍 +蚑 +蚓 +蚕 +蚖 +蚗 +蚘 +蚙 +蚚 +蚜 +蚝 +蚞 +蚡 +蚢 +蚣 +蚤 +蚥 +蚧 +蚨 +蚩 +蚪 +蚬 +蚯 +蚰 +蚱 +蚲 +蚳 +蚴 +蚵 +蚶 +蚷 +蚸 +蚹 +蚺 +蚻 +蚼 +蚿 +蛀 +蛁 +蛂 +蛃 +蛄 +蛅 +蛆 +蛇 +蛈 +蛉 +蛊 +蛋 +蛌 +蛍 +蛎 +蛏 +蛐 +蛑 +蛓 +蛔 +蛕 +蛖 +蛗 +蛘 +蛙 +蛚 +蛛 +蛜 +蛝 +蛞 +蛟 +蛢 +蛣 +蛤 +蛦 +蛩 +蛪 +蛫 +蛬 +蛭 +蛮 +蛯 +蛰 +蛱 +蛲 +蛳 +蛴 +蛵 +蛶 +蛷 +蛸 +蛹 +蛺 +蛻 +蛾 +蜀 +蜁 +蜂 +蜃 +蜄 +蜆 +蜇 +蜈 +蜉 +蜊 +蜋 +蜌 +蜍 +蜎 +蜐 +蜑 +蜒 +蜓 +蜕 +蜖 +蜗 +蜘 +蜙 +蜚 +蜛 +蜜 +蜞 +蜠 +蜡 +蜢 +蜣 +蜤 +蜥 +蜦 +蜧 +蜨 +蜩 +蜪 +蜬 +蜭 +蜮 +蜯 +蜰 +蜱 +蜲 +蜳 +蜴 +蜵 +蜷 +蜸 +蜺 +蜻 +蜼 +蜾 +蜿 +蝀 +蝁 +蝂 +蝃 +蝆 +蝇 +蝈 +蝉 +蝋 +蝌 +蝍 +蝎 +蝐 +蝑 +蝒 +蝓 +蝔 +蝕 +蝖 +蝗 +蝘 +蝙 +蝚 +蝛 +蝜 +蝝 +蝞 +蝟 +蝠 +蝡 +蝣 +蝤 +蝥 +蝦 +蝨 +蝪 +蝫 +蝬 +蝭 +蝮 +蝯 +蝰 +蝱 +蝲 +蝳 +蝴 +蝶 +蝷 +蝸 +蝹 +蝺 +蝻 +蝼 +蝽 +蝾 +蝿 +螁 +螂 +螃 +螄 +螅 +螇 +螈 +螋 +融 +螎 +螏 +螐 +螑 +螒 +螓 +螔 +螖 +螗 +螘 +螚 +螛 +螜 +螝 +螞 +螟 +螠 +螡 +螢 +螣 +螤 +螥 +螨 +螪 +螫 +螬 +螭 +螮 +螯 +螰 +螱 +螳 +螴 +螵 +螶 +螷 +螸 +螹 +螺 +螻 +螼 +螽 +螾 +螿 +蟀 +蟁 +蟂 +蟃 +蟄 +蟅 +蟆 +蟇 +蟈 +蟉 +蟊 +蟋 +蟌 +蟎 +蟏 +蟑 +蟒 +蟓 +蟔 +蟗 +蟘 +蟙 +蟛 +蟜 +蟞 +蟟 +蟠 +蟡 +蟢 +蟣 +蟤 +蟥 +蟦 +蟧 +蟨 +蟪 +蟫 +蟬 +蟭 +蟮 +蟯 +蟲 +蟳 +蟴 +蟶 +蟷 +蟹 +蟺 +蟻 +蟼 +蟾 +蟿 +蠀 +蠁 +蠂 +蠃 +蠄 +蠅 +蠆 +蠈 +蠉 +蠊 +蠋 +蠌 +蠍 +蠏 +蠐 +蠑 +蠓 +蠔 +蠕 +蠖 +蠗 +蠘 +蠙 +蠛 +蠜 +蠝 +蠟 +蠠 +蠡 +蠢 +蠣 +蠤 +蠥 +蠦 +蠨 +蠩 +蠪 +蠫 +蠬 +蠭 +蠮 +蠯 +蠰 +蠱 +蠲 +蠳 +蠵 +蠶 +蠷 +蠸 +蠹 +蠻 +蠼 +蠽 +蠾 +蠿 +血 +衁 +衂 +衃 +衄 +衅 +衆 +衇 +衈 +衊 +衋 +行 +衍 +衎 +衒 +術 +衔 +衕 +衖 +街 +衙 +衚 +衛 +衜 +衝 +衞 +衠 +衡 +衢 +衣 +补 +衧 +表 +衩 +衪 +衫 +衬 +衭 +衮 +衯 +衰 +衱 +衲 +衵 +衶 +衷 +衹 +衺 +衽 +衾 +衿 +袀 +袁 +袂 +袃 +袄 +袅 +袆 +袈 +袉 +袋 +袌 +袍 +袑 +袒 +袓 +袕 +袖 +袗 +袘 +袙 +袚 +袛 +袜 +袞 +袟 +袠 +袡 +袢 +袤 +袧 +袨 +袪 +被 +袬 +袭 +袯 +袰 +袱 +袲 +袴 +袵 +袶 +袷 +袸 +袹 +袺 +袼 +袽 +袾 +袿 +裀 +裁 +裂 +裃 +装 +裆 +裈 +裉 +裊 +裋 +裍 +裎 +裏 +裒 +裔 +裕 +裖 +裗 +裘 +裙 +裚 +裛 +補 +裝 +裞 +裟 +裠 +裡 +裢 +裣 +裤 +裥 +裧 +裨 +裬 +裮 +裯 +裰 +裱 +裲 +裳 +裴 +裵 +裶 +裷 +裸 +裹 +裺 +裻 +裼 +製 +裾 +裿 +褀 +褁 +褂 +褄 +褅 +褆 +複 +褊 +褋 +褌 +褍 +褎 +褐 +褑 +褒 +褓 +褔 +褕 +褖 +褗 +褘 +褙 +褚 +褛 +褞 +褟 +褡 +褢 +褥 +褦 +褧 +褩 +褪 +褫 +褭 +褮 +褯 +褰 +褱 +褲 +褳 +褴 +褵 +褶 +褷 +褸 +褻 +褼 +褽 +褾 +襁 +襂 +襃 +襄 +襆 +襇 +襋 +襌 +襏 +襐 +襒 +襓 +襕 +襖 +襗 +襘 +襚 +襛 +襜 +襝 +襞 +襟 +襠 +襡 +襢 +襣 +襤 +襦 +襩 +襪 +襫 +襬 +襭 +襮 +襯 +襲 +襳 +襴 +襶 +襷 +襹 +襺 +襻 +襾 +西 +要 +覂 +覃 +覅 +覆 +覇 +覈 +見 +覌 +覎 +規 +覓 +覕 +視 +覗 +覘 +覚 +覛 +覜 +覝 +覡 +覢 +覣 +覤 +覦 +覧 +覩 +親 +覬 +覭 +覮 +覯 +覲 +観 +覶 +覷 +覺 +覽 +覿 +觀 +见 +观 +觃 +规 +觅 +视 +觇 +览 +觉 +觊 +觋 +觌 +觎 +觏 +觐 +觑 +角 +觓 +觔 +觕 +觖 +觙 +觚 +觜 +觝 +觞 +觟 +觠 +觡 +觢 +解 +觤 +觥 +触 +觩 +觫 +觬 +觭 +觯 +觰 +觱 +觲 +觳 +觴 +觶 +觷 +觸 +觺 +觻 +觼 +觾 +觿 +言 +訁 +訂 +訃 +訄 +訇 +計 +訊 +訌 +討 +訏 +訐 +訑 +訒 +訓 +訔 +訕 +訖 +託 +記 +訚 +訛 +訝 +訞 +訟 +訢 +訣 +訥 +訧 +訩 +訪 +訬 +設 +訰 +許 +訳 +訴 +訶 +訹 +診 +註 +証 +訾 +訿 +詀 +詁 +詄 +詅 +詆 +詈 +詍 +詎 +詐 +詒 +詔 +評 +詖 +詗 +詘 +詙 +詛 +詝 +詞 +詟 +詠 +詡 +詢 +詣 +詥 +試 +詧 +詩 +詪 +詫 +詬 +詭 +詮 +詰 +話 +該 +詳 +詵 +詶 +詷 +詹 +詻 +詼 +詿 +誂 +誃 +誄 +誅 +誆 +誇 +誉 +誊 +誋 +誌 +認 +誑 +誒 +誓 +誕 +誖 +誘 +誙 +誚 +語 +誠 +誡 +誣 +誤 +誥 +誦 +誨 +說 +誫 +説 +読 +誰 +課 +誴 +誶 +誸 +誹 +誻 +誼 +誾 +調 +諀 +諂 +諄 +諅 +諆 +談 +諈 +諉 +請 +諌 +諍 +諏 +諐 +諑 +諒 +諓 +諔 +諕 +論 +諗 +諚 +諛 +諜 +諝 +諞 +諟 +諠 +諡 +諢 +諤 +諦 +諧 +諪 +諫 +諭 +諮 +諰 +諱 +諲 +諳 +諴 +諵 +諶 +諷 +諸 +諺 +諼 +諾 +謀 +謁 +謂 +謄 +謅 +謇 +謈 +謊 +謋 +謌 +謍 +謎 +謏 +謐 +謑 +謒 +謔 +謕 +謖 +謗 +謘 +謙 +謚 +講 +謜 +謝 +謞 +謠 +謡 +謢 +謣 +謤 +謥 +謦 +謧 +謨 +謩 +謪 +謫 +謬 +謯 +謰 +謱 +謳 +謵 +謷 +謹 +謼 +謾 +譀 +譁 +譅 +譆 +譇 +譈 +證 +譊 +譋 +譌 +譎 +譏 +譐 +譑 +譓 +譔 +譕 +譖 +識 +譙 +譚 +譛 +譜 +譝 +譞 +譟 +譠 +譣 +譥 +警 +譨 +譪 +譫 +譬 +譭 +譯 +議 +譲 +譳 +譴 +護 +譸 +譹 +譺 +譻 +譽 +譾 +譿 +讀 +讂 +讃 +讄 +讆 +變 +讋 +讌 +讎 +讐 +讒 +讓 +讔 +讕 +讖 +讘 +讙 +讚 +讜 +讞 +讟 +计 +订 +讣 +认 +讥 +讦 +讧 +讨 +让 +讪 +讫 +训 +议 +讯 +记 +讱 +讲 +讳 +讴 +讵 +讶 +讷 +许 +讹 +论 +讻 +讼 +讽 +设 +访 +诀 +证 +诂 +诃 +评 +诅 +识 +诇 +诈 +诉 +诊 +诋 +诌 +词 +诎 +诏 +诐 +译 +诒 +诓 +诔 +试 +诖 +诗 +诘 +诙 +诚 +诛 +诜 +话 +诞 +诟 +诠 +诡 +询 +诣 +诤 +该 +详 +诧 +诨 +诩 +诫 +诬 +语 +诮 +误 +诰 +诱 +诲 +诳 +说 +诵 +请 +诸 +诹 +诺 +读 +诼 +诽 +课 +诿 +谀 +谁 +谂 +调 +谄 +谅 +谆 +谇 +谈 +谊 +谋 +谌 +谍 +谎 +谏 +谐 +谑 +谒 +谓 +谔 +谕 +谖 +谗 +谙 +谚 +谛 +谜 +谝 +谞 +谟 +谠 +谡 +谢 +谣 +谤 +谥 +谦 +谧 +谨 +谩 +谪 +谫 +谬 +谭 +谮 +谯 +谰 +谱 +谲 +谳 +谴 +谵 +谶 +谷 +谹 +谻 +谼 +谽 +谾 +谿 +豁 +豃 +豅 +豆 +豇 +豈 +豉 +豊 +豋 +豌 +豍 +豎 +豏 +豐 +豔 +豕 +豗 +豚 +豜 +豝 +豟 +象 +豢 +豤 +豥 +豦 +豨 +豪 +豫 +豬 +豭 +豮 +豯 +豰 +豱 +豲 +豳 +豵 +豶 +豷 +豸 +豹 +豺 +豻 +豽 +豿 +貀 +貁 +貂 +貄 +貅 +貆 +貉 +貊 +貌 +貍 +貏 +貐 +貑 +貒 +貓 +貔 +貕 +貗 +貘 +貙 +貛 +貜 +貝 +貞 +負 +財 +貢 +貣 +貤 +貧 +貨 +販 +貪 +貫 +責 +貭 +貮 +貯 +貰 +貲 +貳 +貴 +貶 +買 +貸 +貺 +費 +貼 +貽 +貾 +貿 +賀 +賁 +賂 +賃 +賄 +賅 +資 +賈 +賉 +賊 +賌 +賎 +賑 +賒 +賓 +賔 +賕 +賙 +賚 +賛 +賜 +賞 +賟 +賠 +賡 +賢 +賣 +賤 +賥 +賦 +賧 +賨 +質 +賫 +賬 +賭 +賮 +賴 +賵 +賸 +賹 +賺 +賻 +購 +賽 +賾 +贄 +贅 +贆 +贇 +贈 +贊 +贋 +贌 +贍 +贏 +贐 +贓 +贔 +贕 +贖 +贗 +贙 +贛 +贜 +贝 +贞 +负 +贡 +财 +责 +贤 +败 +账 +货 +质 +贩 +贪 +贫 +贬 +购 +贮 +贯 +贰 +贱 +贲 +贳 +贴 +贵 +贶 +贷 +贸 +费 +贺 +贻 +贼 +贽 +贾 +贿 +赀 +赁 +赂 +赃 +资 +赅 +赆 +赇 +赈 +赉 +赊 +赋 +赌 +赍 +赎 +赏 +赐 +赑 +赒 +赓 +赔 +赕 +赖 +赗 +赘 +赙 +赚 +赛 +赜 +赝 +赞 +赟 +赠 +赡 +赢 +赣 +赤 +赦 +赧 +赨 +赩 +赪 +赫 +赬 +赭 +赮 +走 +赳 +赴 +赵 +赶 +起 +赸 +趀 +趁 +趂 +趄 +超 +越 +趋 +趌 +趍 +趎 +趏 +趐 +趑 +趓 +趔 +趕 +趖 +趙 +趜 +趟 +趠 +趡 +趣 +趥 +趧 +趨 +趪 +趫 +趬 +趭 +趮 +趯 +趱 +趲 +足 +趴 +趵 +趷 +趸 +趹 +趺 +趼 +趾 +趿 +跂 +跃 +跄 +跅 +跆 +跇 +跈 +跋 +跌 +跍 +跎 +跏 +跐 +跑 +跓 +跕 +跖 +跗 +跘 +跙 +跚 +跛 +跜 +距 +跞 +跟 +跠 +跡 +跢 +跣 +跤 +跥 +跦 +跧 +跨 +跩 +跪 +跫 +跬 +跮 +路 +跰 +跱 +跲 +跳 +跴 +践 +跶 +跷 +跸 +跹 +跺 +跻 +跼 +跽 +跾 +跿 +踂 +踃 +踅 +踆 +踇 +踉 +踊 +踌 +踍 +踎 +踏 +踐 +踑 +踒 +踓 +踔 +踕 +踖 +踘 +踙 +踛 +踝 +踞 +踟 +踠 +踡 +踢 +踣 +踤 +踥 +踦 +踧 +踩 +踪 +踫 +踬 +踮 +踯 +踰 +踱 +踳 +踴 +踵 +踶 +踸 +踹 +踺 +踼 +踽 +踾 +蹀 +蹁 +蹂 +蹄 +蹅 +蹇 +蹈 +蹉 +蹊 +蹋 +蹌 +蹍 +蹎 +蹏 +蹐 +蹑 +蹒 +蹓 +蹔 +蹕 +蹖 +蹗 +蹙 +蹚 +蹛 +蹜 +蹝 +蹞 +蹟 +蹠 +蹡 +蹢 +蹣 +蹤 +蹥 +蹦 +蹧 +蹩 +蹪 +蹬 +蹭 +蹯 +蹰 +蹲 +蹳 +蹴 +蹵 +蹶 +蹸 +蹺 +蹻 +蹼 +蹽 +蹾 +蹿 +躁 +躂 +躄 +躅 +躆 +躇 +躈 +躉 +躊 +躋 +躍 +躏 +躐 +躑 +躒 +躓 +躔 +躕 +躖 +躗 +躙 +躚 +躜 +躝 +躞 +躟 +躠 +躡 +躣 +躤 +躥 +躦 +躨 +躩 +躪 +身 +躬 +躭 +躯 +躰 +躲 +躳 +躶 +躺 +躽 +軀 +車 +軋 +軌 +軍 +軎 +軏 +軑 +軒 +軓 +軔 +軘 +軛 +軝 +軞 +軟 +転 +軤 +軥 +軦 +軧 +軨 +軫 +軬 +軮 +軯 +軱 +軲 +軵 +軶 +軷 +軸 +軹 +軺 +軻 +軼 +軽 +軾 +軿 +輀 +輁 +輂 +較 +輄 +輅 +輆 +輇 +輈 +載 +輊 +輋 +輌 +輐 +輑 +輒 +輓 +輔 +輕 +輖 +輗 +輘 +輚 +輛 +輜 +輝 +輞 +輟 +輠 +輣 +輤 +輥 +輦 +輩 +輪 +輬 +輭 +輮 +輯 +輲 +輳 +輴 +輵 +輶 +輷 +輸 +輹 +輻 +輾 +輿 +轀 +轂 +轃 +轄 +轅 +轆 +轇 +轈 +轉 +轍 +轎 +轏 +轐 +轑 +轒 +轓 +轔 +轕 +轖 +轗 +轘 +轙 +轚 +轛 +轝 +轞 +轟 +轠 +轡 +轢 +轤 +车 +轧 +轨 +轩 +轪 +轫 +转 +轭 +轮 +软 +轰 +轱 +轲 +轳 +轴 +轵 +轶 +轷 +轸 +轹 +轺 +轻 +轼 +载 +轾 +轿 +辀 +辁 +辂 +较 +辄 +辅 +辆 +辇 +辈 +辉 +辊 +辋 +辌 +辍 +辎 +辏 +辐 +辑 +辒 +输 +辔 +辕 +辖 +辗 +辘 +辙 +辚 +辛 +辜 +辞 +辟 +辠 +辢 +辣 +辥 +辦 +辧 +辨 +辩 +辫 +辭 +辮 +辯 +辰 +辱 +農 +辴 +辵 +边 +辺 +辻 +込 +辽 +达 +辿 +迁 +迂 +迄 +迅 +迆 +过 +迈 +迉 +迋 +迍 +迎 +运 +近 +迒 +迓 +返 +迕 +迖 +还 +这 +进 +远 +违 +连 +迟 +迡 +迢 +迣 +迤 +迥 +迦 +迨 +迩 +迪 +迫 +迭 +迮 +述 +迳 +迴 +迵 +迷 +迸 +迹 +迺 +迻 +追 +迾 +迿 +退 +送 +适 +逃 +逄 +逅 +逆 +逈 +选 +逊 +逋 +逌 +逍 +逎 +透 +逐 +逑 +递 +逓 +途 +逕 +逖 +逗 +這 +通 +逛 +逜 +逝 +逞 +速 +造 +逡 +逢 +連 +逤 +逦 +逨 +逩 +逭 +逮 +逯 +週 +進 +逴 +逵 +逶 +逸 +逹 +逺 +逻 +逼 +逾 +逿 +遁 +遂 +遄 +遅 +遆 +遇 +遊 +運 +遍 +過 +遏 +遐 +遑 +遒 +道 +達 +違 +遗 +遘 +遙 +遛 +遜 +遝 +遞 +遠 +遡 +遢 +遣 +遥 +遨 +適 +遭 +遮 +遯 +遰 +遲 +遳 +遴 +遵 +遶 +遷 +選 +遹 +遺 +遻 +遼 +遽 +遾 +避 +邀 +邁 +邂 +邃 +還 +邅 +邆 +邇 +邈 +邉 +邊 +邋 +邍 +邏 +邐 +邑 +邓 +邔 +邕 +邗 +邘 +邙 +邛 +邝 +邞 +邟 +邠 +邡 +邢 +那 +邥 +邦 +邧 +邨 +邪 +邬 +邮 +邯 +邰 +邱 +邲 +邳 +邴 +邵 +邶 +邸 +邹 +邺 +邻 +邽 +邾 +邿 +郁 +郃 +郄 +郅 +郇 +郈 +郊 +郋 +郎 +郏 +郐 +郑 +郓 +郔 +郕 +郖 +郗 +郘 +郙 +郚 +郛 +郜 +郝 +郞 +郟 +郠 +郡 +郢 +郣 +郤 +郥 +郦 +郧 +部 +郪 +郫 +郭 +郯 +郰 +郱 +郲 +郳 +郴 +郵 +郷 +郸 +郹 +郺 +郻 +郼 +都 +郾 +郿 +鄀 +鄁 +鄂 +鄃 +鄄 +鄅 +鄆 +鄇 +鄈 +鄉 +鄋 +鄌 +鄍 +鄎 +鄏 +鄐 +鄑 +鄒 +鄔 +鄖 +鄗 +鄘 +鄙 +鄚 +鄛 +鄜 +鄝 +鄞 +鄟 +鄠 +鄡 +鄢 +鄣 +鄤 +鄦 +鄧 +鄨 +鄩 +鄪 +鄫 +鄬 +鄭 +鄮 +鄯 +鄰 +鄱 +鄲 +鄳 +鄴 +鄵 +鄶 +鄸 +鄹 +鄺 +鄻 +鄾 +酀 +酁 +酂 +酃 +酄 +酅 +酆 +酇 +酈 +酉 +酊 +酋 +酌 +配 +酎 +酏 +酐 +酒 +酓 +酔 +酖 +酗 +酘 +酚 +酝 +酞 +酟 +酡 +酢 +酣 +酤 +酥 +酦 +酧 +酨 +酩 +酪 +酬 +酮 +酯 +酰 +酱 +酲 +酳 +酴 +酵 +酶 +酷 +酸 +酹 +酺 +酼 +酽 +酾 +酿 +醁 +醂 +醃 +醅 +醆 +醇 +醉 +醊 +醋 +醌 +醍 +醐 +醑 +醒 +醓 +醕 +醖 +醗 +醙 +醚 +醛 +醜 +醞 +醟 +醢 +醣 +醤 +醥 +醧 +醨 +醪 +醫 +醬 +醭 +醮 +醯 +醰 +醱 +醲 +醳 +醴 +醵 +醷 +醸 +醹 +醺 +醻 +醼 +醽 +醾 +醿 +釀 +釁 +釂 +釃 +釅 +釆 +采 +釈 +釉 +释 +釋 +里 +重 +野 +量 +釐 +金 +釓 +釔 +釕 +釗 +釘 +釙 +釚 +釜 +針 +釢 +釣 +釤 +釦 +釧 +釩 +釪 +釬 +釭 +釱 +釳 +釴 +釵 +釷 +釸 +釹 +釺 +釽 +釿 +鈀 +鈁 +鈃 +鈄 +鈆 +鈇 +鈈 +鈉 +鈊 +鈌 +鈍 +鈎 +鈏 +鈐 +鈑 +鈒 +鈔 +鈕 +鈖 +鈚 +鈞 +鈢 +鈣 +鈥 +鈦 +鈧 +鈫 +鈮 +鈰 +鈳 +鈴 +鈶 +鈷 +鈸 +鈹 +鈺 +鈽 +鈾 +鈿 +鉀 +鉄 +鉅 +鉆 +鉇 +鉈 +鉉 +鉊 +鉋 +鉌 +鉍 +鉏 +鉑 +鉒 +鉓 +鉕 +鉗 +鉚 +鉛 +鉞 +鉟 +鉠 +鉢 +鉤 +鉥 +鉦 +鉧 +鉬 +鉭 +鉮 +鉯 +鉱 +鉲 +鉴 +鉶 +鉷 +鉸 +鉹 +鉺 +鉻 +鉼 +鉾 +鉿 +銀 +銂 +銃 +銅 +銈 +銋 +銍 +銎 +銑 +銓 +銔 +銕 +銖 +銗 +銘 +銚 +銛 +銜 +銠 +銣 +銤 +銥 +銦 +銨 +銩 +銪 +銫 +銬 +銭 +銮 +銱 +銲 +銳 +銶 +銷 +銹 +銻 +銼 +銾 +鋀 +鋁 +鋂 +鋃 +鋄 +鋅 +鋆 +鋇 +鋈 +鋊 +鋋 +鋌 +鋏 +鋐 +鋒 +鋕 +鋗 +鋘 +鋙 +鋝 +鋟 +鋡 +鋤 +鋥 +鋦 +鋨 +鋩 +鋪 +鋭 +鋮 +鋯 +鋰 +鋱 +鋲 +鋳 +鋶 +鋸 +鋹 +鋺 +鋼 +錀 +錁 +錄 +錆 +錈 +錍 +錎 +錏 +錐 +錒 +錕 +錘 +錙 +錚 +錛 +錞 +錟 +錠 +錡 +錢 +錣 +錦 +錧 +錨 +錫 +錬 +錭 +錮 +錯 +録 +錳 +錵 +錶 +錸 +錻 +錼 +錾 +鍀 +鍁 +鍆 +鍇 +鍈 +鍉 +鍊 +鍋 +鍌 +鍍 +鍏 +鍐 +鍑 +鍔 +鍖 +鍘 +鍚 +鍛 +鍜 +鍝 +鍟 +鍠 +鍤 +鍥 +鍩 +鍪 +鍬 +鍭 +鍮 +鍰 +鍱 +鍳 +鍵 +鍶 +鍷 +鍺 +鍼 +鍾 +鎂 +鎃 +鎅 +鎉 +鎊 +鎌 +鎎 +鎏 +鎒 +鎓 +鎔 +鎖 +鎗 +鎘 +鎚 +鎛 +鎝 +鎞 +鎡 +鎢 +鎣 +鎦 +鎧 +鎩 +鎪 +鎬 +鎭 +鎮 +鎯 +鎰 +鎳 +鎵 +鎷 +鎸 +鎹 +鎻 +鏂 +鏃 +鏇 +鏈 +鏊 +鏌 +鏍 +鏏 +鏐 +鏑 +鏓 +鏖 +鏗 +鏘 +鏙 +鏚 +鏜 +鏝 +鏞 +鏟 +鏡 +鏢 +鏤 +鏦 +鏨 +鏬 +鏰 +鏳 +鏴 +鏵 +鏷 +鏹 +鏺 +鏻 +鏽 +鏾 +鐀 +鐃 +鐇 +鐈 +鐋 +鐍 +鐎 +鐏 +鐐 +鐓 +鐔 +鐕 +鐖 +鐘 +鐙 +鐚 +鐝 +鐠 +鐡 +鐤 +鐦 +鐧 +鐨 +鐫 +鐬 +鐭 +鐮 +鐯 +鐲 +鐳 +鐵 +鐶 +鐸 +鐺 +鐻 +鐽 +鐾 +鐿 +鑀 +鑁 +鑂 +鑄 +鑅 +鑊 +鑋 +鑌 +鑐 +鑑 +鑒 +鑔 +鑕 +鑚 +鑛 +鑞 +鑠 +鑢 +鑣 +鑤 +鑨 +鑪 +鑫 +鑭 +鑮 +鑯 +鑰 +鑱 +鑲 +鑴 +鑵 +鑷 +鑹 +鑼 +鑽 +鑾 +鑿 +钀 +钁 +钂 +钃 +钆 +钇 +针 +钉 +钊 +钋 +钌 +钍 +钎 +钏 +钐 +钒 +钓 +钔 +钕 +钖 +钗 +钘 +钙 +钚 +钛 +钜 +钝 +钞 +钟 +钠 +钡 +钢 +钣 +钤 +钥 +钦 +钧 +钨 +钩 +钪 +钫 +钬 +钭 +钮 +钯 +钰 +钱 +钲 +钳 +钴 +钵 +钷 +钹 +钺 +钻 +钼 +钽 +钾 +钿 +铀 +铁 +铂 +铃 +铄 +铅 +铆 +铈 +铉 +铊 +铋 +铌 +铍 +铎 +铏 +铐 +铑 +铒 +铕 +铖 +铗 +铘 +铙 +铚 +铛 +铜 +铝 +铞 +铟 +铠 +铡 +铢 +铣 +铤 +铥 +铧 +铨 +铩 +铪 +铫 +铬 +铭 +铮 +铯 +铰 +铱 +铲 +铳 +铴 +铵 +银 +铷 +铸 +铹 +铺 +铻 +铼 +铽 +链 +铿 +销 +锁 +锂 +锃 +锄 +锅 +锆 +锇 +锈 +锉 +锊 +锋 +锌 +锍 +锎 +锏 +锐 +锑 +锒 +锓 +锔 +锕 +锖 +锗 +锘 +错 +锚 +锛 +锜 +锝 +锞 +锟 +锡 +锢 +锣 +锤 +锥 +锦 +锧 +锨 +锩 +锪 +锫 +锬 +锭 +键 +锯 +锰 +锱 +锲 +锳 +锴 +锵 +锶 +锷 +锸 +锹 +锺 +锻 +锼 +锽 +锾 +锿 +镀 +镁 +镂 +镃 +镄 +镅 +镆 +镇 +镈 +镉 +镊 +镋 +镌 +镍 +镎 +镏 +镐 +镑 +镒 +镓 +镔 +镕 +镖 +镗 +镘 +镚 +镛 +镜 +镝 +镞 +镠 +镡 +镢 +镣 +镤 +镥 +镦 +镧 +镨 +镩 +镪 +镫 +镬 +镭 +镮 +镯 +镰 +镱 +镲 +镳 +镴 +镵 +镶 +長 +镺 +镻 +镼 +镽 +长 +門 +閂 +閃 +閆 +閇 +閈 +閉 +開 +閌 +閍 +閎 +閏 +閑 +閒 +間 +閔 +閘 +閜 +閞 +閟 +閡 +関 +閣 +閤 +閥 +閦 +閧 +閨 +閩 +閫 +閬 +閭 +閰 +閱 +閲 +閵 +閶 +閷 +閹 +閺 +閻 +閼 +閽 +閾 +閿 +闀 +闃 +闅 +闆 +闇 +闈 +闉 +闊 +闋 +闌 +闍 +闐 +闑 +闒 +闓 +闔 +闕 +闖 +闘 +闚 +闛 +關 +闞 +闟 +闠 +闡 +闢 +闤 +闥 +门 +闩 +闪 +闫 +闭 +问 +闯 +闰 +闱 +闲 +闳 +间 +闵 +闶 +闷 +闸 +闹 +闺 +闻 +闼 +闽 +闾 +闿 +阀 +阁 +阂 +阃 +阄 +阅 +阆 +阇 +阈 +阉 +阊 +阋 +阌 +阍 +阎 +阏 +阐 +阑 +阒 +阔 +阕 +阖 +阗 +阘 +阙 +阚 +阜 +阝 +阞 +队 +阠 +阡 +阢 +阤 +阨 +阪 +阬 +阭 +阮 +阯 +阰 +阱 +防 +阳 +阴 +阵 +阶 +阸 +阹 +阺 +阻 +阼 +阽 +阿 +陀 +陁 +陂 +附 +际 +陆 +陇 +陈 +陉 +陊 +陋 +陌 +降 +陎 +陏 +限 +陑 +陓 +陔 +陕 +陗 +陘 +陛 +陜 +陝 +陞 +陟 +陡 +院 +陣 +除 +陥 +陧 +陨 +险 +陪 +陫 +陬 +陭 +陰 +陲 +陳 +陴 +陵 +陶 +陷 +陸 +険 +陻 +陼 +陽 +陾 +隃 +隄 +隅 +隆 +隇 +隈 +隉 +隊 +隋 +隍 +階 +随 +隐 +隑 +隒 +隓 +隔 +隕 +隗 +隘 +隙 +際 +障 +隞 +隠 +隣 +隤 +隧 +隨 +隩 +險 +隮 +隰 +隱 +隲 +隳 +隴 +隶 +隷 +隸 +隹 +隺 +隻 +隼 +隽 +难 +隿 +雀 +雁 +雂 +雄 +雅 +集 +雇 +雈 +雉 +雊 +雋 +雌 +雍 +雎 +雏 +雑 +雒 +雓 +雔 +雕 +雖 +雗 +雘 +雙 +雚 +雛 +雜 +雝 +雞 +雟 +雠 +離 +難 +雨 +雩 +雪 +雫 +雯 +雰 +雱 +雲 +雳 +零 +雷 +雹 +雺 +電 +雽 +雾 +雿 +需 +霁 +霂 +霄 +霅 +霆 +震 +霈 +霉 +霊 +霋 +霍 +霎 +霏 +霐 +霑 +霒 +霓 +霖 +霙 +霜 +霞 +霠 +霢 +霣 +霤 +霧 +霨 +霩 +霪 +霫 +霬 +霭 +霮 +霰 +露 +霵 +霶 +霸 +霹 +霽 +霾 +霿 +靁 +靂 +靃 +靄 +靆 +靈 +靉 +靑 +青 +靓 +靖 +静 +靚 +靛 +靜 +非 +靠 +靡 +面 +靥 +靦 +靨 +革 +靪 +靫 +靬 +靭 +靮 +靰 +靱 +靲 +靳 +靴 +靶 +靷 +靸 +靺 +靻 +靼 +靽 +靾 +靿 +鞀 +鞁 +鞂 +鞃 +鞄 +鞅 +鞆 +鞈 +鞊 +鞋 +鞌 +鞍 +鞎 +鞏 +鞑 +鞒 +鞔 +鞗 +鞘 +鞙 +鞚 +鞜 +鞞 +鞠 +鞡 +鞣 +鞤 +鞥 +鞦 +鞧 +鞨 +鞪 +鞫 +鞬 +鞭 +鞮 +鞯 +鞲 +鞳 +鞴 +鞵 +鞶 +鞷 +鞹 +鞻 +鞽 +鞾 +鞿 +韁 +韂 +韃 +韄 +韅 +韆 +韇 +韉 +韋 +韌 +韍 +韎 +韏 +韐 +韑 +韓 +韔 +韕 +韗 +韙 +韜 +韝 +韞 +韟 +韠 +韡 +韣 +韥 +韦 +韧 +韨 +韩 +韪 +韫 +韬 +韭 +韮 +韰 +韱 +音 +韵 +韶 +韹 +韺 +韻 +韽 +韾 +響 +頁 +頂 +頃 +頄 +項 +順 +頇 +須 +頊 +頌 +頍 +頎 +頏 +預 +頑 +頒 +頓 +頔 +頖 +頗 +領 +頚 +頜 +頝 +頞 +頠 +頡 +頤 +頦 +頨 +頩 +頫 +頬 +頭 +頯 +頰 +頲 +頴 +頵 +頷 +頸 +頹 +頻 +頼 +頽 +顁 +顄 +顅 +顆 +顇 +顈 +顉 +顊 +顋 +題 +額 +顎 +顏 +顐 +顑 +顒 +顓 +顔 +顕 +顗 +願 +顙 +顛 +顜 +顝 +類 +顟 +顠 +顢 +顣 +顤 +顥 +顦 +顧 +顩 +顪 +顫 +顯 +顰 +顱 +顲 +顳 +顴 +页 +顶 +顷 +顸 +项 +顺 +须 +顼 +顽 +顾 +顿 +颀 +颁 +颂 +颃 +预 +颅 +领 +颇 +颈 +颉 +颊 +颋 +颌 +颍 +颎 +颏 +颐 +频 +颓 +颔 +颖 +颗 +题 +颙 +颚 +颛 +颜 +额 +颞 +颟 +颠 +颡 +颢 +颤 +颥 +颦 +颧 +風 +颬 +颭 +颮 +颯 +颱 +颲 +颳 +颶 +颸 +颺 +颻 +颼 +颽 +颾 +颿 +飁 +飂 +飄 +飆 +飈 +飉 +飋 +飌 +风 +飏 +飐 +飑 +飒 +飓 +飔 +飕 +飗 +飘 +飙 +飛 +飜 +飞 +食 +飡 +飢 +飣 +飥 +飧 +飨 +飩 +飪 +飫 +飬 +飭 +飮 +飯 +飱 +飲 +飴 +飶 +飺 +飼 +飽 +飾 +飿 +餀 +餂 +餃 +餄 +餅 +餈 +餉 +養 +餌 +餍 +餎 +餏 +餐 +餑 +餒 +餓 +餔 +餕 +餖 +餗 +餘 +餚 +餛 +餜 +餝 +餞 +餟 +餠 +餡 +餤 +餥 +餧 +館 +餪 +餫 +餬 +餭 +餮 +餯 +餰 +餱 +餲 +餳 +餵 +餷 +餹 +餺 +餻 +餼 +餽 +餾 +餿 +饁 +饂 +饃 +饅 +饇 +饈 +饉 +饊 +饋 +饌 +饍 +饎 +饐 +饑 +饒 +饔 +饕 +饗 +饘 +饙 +饛 +饜 +饞 +饟 +饡 +饢 +饥 +饧 +饨 +饩 +饪 +饫 +饬 +饭 +饮 +饯 +饰 +饱 +饲 +饳 +饴 +饵 +饶 +饷 +饸 +饹 +饺 +饻 +饼 +饽 +饿 +馁 +馃 +馄 +馅 +馆 +馇 +馈 +馉 +馊 +馋 +馌 +馍 +馏 +馐 +馑 +馒 +馓 +馔 +馕 +首 +馗 +馘 +香 +馛 +馝 +馞 +馣 +馥 +馦 +馧 +馨 +馬 +馭 +馮 +馯 +馰 +馱 +馲 +馳 +馴 +馵 +馹 +馺 +馻 +馼 +馽 +駁 +駂 +駃 +駄 +駅 +駆 +駈 +駉 +駍 +駎 +駏 +駐 +駑 +駒 +駓 +駔 +駕 +駖 +駘 +駙 +駛 +駜 +駝 +駟 +駡 +駢 +駣 +駤 +駥 +駩 +駪 +駬 +駭 +駮 +駰 +駱 +駴 +駶 +駷 +駸 +駹 +駺 +駻 +駼 +駽 +駾 +駿 +騁 +騂 +騃 +騄 +騅 +騇 +騉 +騊 +騋 +騌 +騍 +騎 +騏 +騑 +騒 +験 +騕 +騖 +騙 +騚 +騛 +騜 +騝 +騞 +騠 +騢 +騣 +騤 +騥 +騧 +騨 +騩 +騪 +騫 +騬 +騭 +騮 +騰 +騱 +騲 +騴 +騵 +騶 +騷 +騸 +騹 +騺 +騽 +騾 +驀 +驁 +驂 +驃 +驄 +驅 +驆 +驈 +驉 +驊 +驌 +驍 +驎 +驏 +驒 +驓 +驔 +驕 +驖 +驗 +驚 +驛 +驞 +驟 +驠 +驢 +驤 +驥 +驦 +驨 +驩 +驪 +驫 +马 +驭 +驮 +驯 +驰 +驱 +驲 +驳 +驴 +驵 +驶 +驷 +驸 +驹 +驺 +驻 +驼 +驽 +驾 +驿 +骀 +骁 +骂 +骃 +骄 +骅 +骆 +骇 +骈 +骉 +骊 +骋 +验 +骍 +骎 +骏 +骐 +骑 +骒 +骓 +骕 +骖 +骗 +骘 +骙 +骚 +骛 +骜 +骝 +骞 +骟 +骠 +骡 +骢 +骣 +骤 +骥 +骦 +骧 +骨 +骫 +骭 +骯 +骰 +骱 +骴 +骶 +骷 +骸 +骹 +骺 +骼 +骽 +骾 +骿 +髀 +髁 +髂 +髃 +髄 +髅 +髆 +髇 +髈 +髊 +髋 +髌 +髍 +髎 +髏 +髐 +髑 +髒 +髓 +體 +髕 +髖 +高 +髙 +髟 +髡 +髢 +髣 +髥 +髦 +髧 +髪 +髫 +髬 +髭 +髮 +髯 +髲 +髳 +髴 +髶 +髷 +髹 +髺 +髻 +髼 +髽 +髾 +鬀 +鬁 +鬃 +鬄 +鬅 +鬆 +鬈 +鬉 +鬊 +鬋 +鬌 +鬍 +鬎 +鬏 +鬐 +鬒 +鬓 +鬕 +鬖 +鬗 +鬘 +鬙 +鬚 +鬞 +鬟 +鬠 +鬢 +鬣 +鬤 +鬥 +鬧 +鬨 +鬩 +鬪 +鬫 +鬬 +鬮 +鬯 +鬱 +鬲 +鬳 +鬵 +鬶 +鬷 +鬹 +鬺 +鬻 +鬼 +鬾 +鬿 +魁 +魂 +魃 +魄 +魅 +魆 +魇 +魈 +魉 +魊 +魋 +魌 +魍 +魎 +魏 +魑 +魔 +魕 +魖 +魘 +魚 +魛 +魞 +魟 +魠 +魡 +魣 +魦 +魧 +魨 +魩 +魮 +魯 +魱 +魴 +魵 +魶 +魷 +魻 +魼 +魾 +鮀 +鮁 +鮂 +鮃 +鮄 +鮅 +鮆 +鮇 +鮊 +鮋 +鮍 +鮎 +鮐 +鮑 +鮒 +鮓 +鮗 +鮚 +鮛 +鮜 +鮝 +鮞 +鮟 +鮠 +鮡 +鮣 +鮤 +鮥 +鮦 +鮨 +鮪 +鮫 +鮭 +鮮 +鮰 +鮵 +鮸 +鮹 +鮻 +鮿 +鯀 +鯁 +鯃 +鯆 +鯇 +鯈 +鯉 +鯊 +鯏 +鯒 +鯓 +鯔 +鯕 +鯖 +鯗 +鯙 +鯛 +鯝 +鯞 +鯠 +鯡 +鯢 +鯤 +鯦 +鯧 +鯨 +鯪 +鯫 +鯬 +鯭 +鯮 +鯰 +鯱 +鯶 +鯷 +鯸 +鯻 +鯽 +鯿 +鰂 +鰃 +鰅 +鰆 +鰈 +鰉 +鰋 +鰌 +鰍 +鰏 +鰐 +鰒 +鰓 +鰕 +鰗 +鰛 +鰜 +鰝 +鰟 +鰣 +鰤 +鰥 +鰧 +鰨 +鰩 +鰫 +鰬 +鰭 +鰮 +鰯 +鰰 +鰱 +鰲 +鰳 +鰴 +鰶 +鰷 +鰹 +鰺 +鰻 +鰼 +鰾 +鰿 +鱀 +鱁 +鱂 +鱄 +鱅 +鱆 +鱇 +鱈 +鱉 +鱊 +鱋 +鱍 +鱐 +鱒 +鱓 +鱔 +鱕 +鱖 +鱗 +鱘 +鱚 +鱝 +鱞 +鱟 +鱠 +鱢 +鱣 +鱥 +鱦 +鱧 +鱨 +鱬 +鱭 +鱮 +鱰 +鱲 +鱳 +鱴 +鱵 +鱷 +鱸 +鱹 +鱺 +鱻 +鱼 +鱽 +鱾 +鱿 +鲀 +鲁 +鲂 +鲃 +鲅 +鲆 +鲇 +鲈 +鲉 +鲊 +鲋 +鲌 +鲍 +鲎 +鲏 +鲐 +鲑 +鲒 +鲔 +鲕 +鲖 +鲗 +鲘 +鲙 +鲚 +鲛 +鲜 +鲝 +鲞 +鲟 +鲠 +鲡 +鲢 +鲣 +鲤 +鲥 +鲦 +鲧 +鲨 +鲩 +鲪 +鲫 +鲬 +鲭 +鲮 +鲯 +鲰 +鲱 +鲲 +鲳 +鲴 +鲵 +鲷 +鲸 +鲹 +鲺 +鲻 +鲼 +鲽 +鲾 +鲿 +鳀 +鳁 +鳂 +鳃 +鳄 +鳅 +鳇 +鳈 +鳉 +鳊 +鳌 +鳍 +鳎 +鳏 +鳐 +鳑 +鳒 +鳓 +鳔 +鳕 +鳖 +鳗 +鳘 +鳙 +鳚 +鳛 +鳜 +鳝 +鳞 +鳟 +鳠 +鳡 +鳢 +鳣 +鳤 +鳥 +鳦 +鳧 +鳩 +鳪 +鳬 +鳭 +鳯 +鳰 +鳱 +鳲 +鳳 +鳴 +鳵 +鳶 +鳷 +鳹 +鳺 +鳻 +鳼 +鳽 +鳾 +鳿 +鴀 +鴃 +鴅 +鴆 +鴇 +鴈 +鴉 +鴎 +鴐 +鴒 +鴓 +鴔 +鴕 +鴗 +鴘 +鴛 +鴝 +鴞 +鴟 +鴠 +鴡 +鴢 +鴣 +鴥 +鴦 +鴨 +鴩 +鴫 +鴮 +鴯 +鴰 +鴱 +鴳 +鴴 +鴶 +鴷 +鴸 +鴻 +鴽 +鴾 +鴿 +鵀 +鵁 +鵂 +鵃 +鵄 +鵅 +鵊 +鵋 +鵌 +鵎 +鵏 +鵐 +鵑 +鵒 +鵓 +鵔 +鵖 +鵗 +鵙 +鵛 +鵜 +鵝 +鵞 +鵟 +鵠 +鵡 +鵧 +鵩 +鵪 +鵫 +鵬 +鵮 +鵯 +鵰 +鵱 +鵲 +鵳 +鵴 +鵵 +鵷 +鵸 +鵹 +鵺 +鵻 +鵼 +鵽 +鵾 +鶀 +鶁 +鶂 +鶄 +鶅 +鶆 +鶇 +鶈 +鶉 +鶊 +鶋 +鶌 +鶏 +鶐 +鶒 +鶓 +鶔 +鶖 +鶗 +鶘 +鶙 +鶚 +鶛 +鶜 +鶝 +鶞 +鶟 +鶠 +鶡 +鶢 +鶣 +鶤 +鶥 +鶨 +鶩 +鶪 +鶬 +鶭 +鶯 +鶱 +鶲 +鶴 +鶵 +鶶 +鶷 +鶹 +鶺 +鶻 +鶼 +鶾 +鶿 +鷀 +鷁 +鷂 +鷃 +鷄 +鷅 +鷇 +鷈 +鷉 +鷊 +鷋 +鷎 +鷏 +鷐 +鷑 +鷒 +鷓 +鷕 +鷖 +鷗 +鷘 +鷙 +鷚 +鷛 +鷜 +鷞 +鷟 +鷡 +鷢 +鷣 +鷤 +鷥 +鷦 +鷩 +鷫 +鷮 +鷯 +鷰 +鷲 +鷳 +鷵 +鷶 +鷷 +鷸 +鷹 +鷺 +鷻 +鷽 +鷾 +鷿 +鸀 +鸁 +鸂 +鸃 +鸄 +鸅 +鸆 +鸇 +鸉 +鸊 +鸋 +鸌 +鸍 +鸏 +鸐 +鸑 +鸒 +鸓 +鸔 +鸕 +鸗 +鸘 +鸙 +鸚 +鸛 +鸜 +鸝 +鸞 +鸟 +鸠 +鸡 +鸢 +鸣 +鸤 +鸥 +鸦 +鸧 +鸨 +鸩 +鸪 +鸫 +鸬 +鸭 +鸮 +鸯 +鸰 +鸱 +鸲 +鸳 +鸵 +鸶 +鸷 +鸸 +鸹 +鸺 +鸻 +鸼 +鸽 +鸾 +鸿 +鹀 +鹁 +鹂 +鹃 +鹄 +鹅 +鹆 +鹇 +鹈 +鹉 +鹊 +鹋 +鹌 +鹍 +鹎 +鹏 +鹐 +鹑 +鹒 +鹔 +鹕 +鹖 +鹗 +鹘 +鹙 +鹚 +鹛 +鹜 +鹝 +鹞 +鹟 +鹠 +鹡 +鹢 +鹣 +鹤 +鹦 +鹧 +鹨 +鹩 +鹪 +鹫 +鹬 +鹭 +鹮 +鹯 +鹰 +鹱 +鹲 +鹳 +鹴 +鹵 +鹸 +鹹 +鹺 +鹻 +鹼 +鹽 +鹾 +鹿 +麀 +麁 +麂 +麃 +麅 +麆 +麇 +麈 +麉 +麊 +麋 +麌 +麎 +麐 +麑 +麒 +麓 +麔 +麖 +麗 +麙 +麚 +麛 +麜 +麝 +麞 +麟 +麠 +麡 +麤 +麥 +麦 +麧 +麩 +麪 +麮 +麯 +麰 +麴 +麵 +麶 +麷 +麸 +麹 +麺 +麻 +麼 +麽 +麾 +麿 +黀 +黁 +黂 +黃 +黄 +黇 +黈 +黉 +黌 +黍 +黎 +黏 +黐 +黑 +黒 +黓 +黔 +黕 +黖 +默 +黙 +黚 +黛 +黜 +黝 +點 +黟 +黠 +黡 +黢 +黤 +黥 +黧 +黨 +黩 +黪 +黫 +黭 +黮 +黯 +黰 +黲 +黳 +黴 +黵 +黶 +黷 +黹 +黺 +黻 +黼 +黽 +黾 +黿 +鼀 +鼁 +鼂 +鼃 +鼆 +鼇 +鼈 +鼉 +鼊 +鼋 +鼍 +鼎 +鼏 +鼐 +鼒 +鼓 +鼕 +鼖 +鼗 +鼘 +鼙 +鼛 +鼜 +鼠 +鼢 +鼣 +鼤 +鼥 +鼨 +鼩 +鼪 +鼫 +鼬 +鼭 +鼮 +鼯 +鼰 +鼱 +鼲 +鼳 +鼴 +鼵 +鼶 +鼷 +鼸 +鼹 +鼻 +鼽 +鼾 +齀 +齁 +齂 +齃 +齇 +齉 +齊 +齋 +齌 +齍 +齎 +齏 +齐 +齑 +齒 +齔 +齕 +齖 +齗 +齘 +齙 +齛 +齜 +齝 +齞 +齟 +齠 +齡 +齢 +齣 +齤 +齥 +齦 +齧 +齩 +齪 +齫 +齬 +齮 +齯 +齰 +齱 +齲 +齴 +齵 +齶 +齷 +齸 +齹 +齺 +齻 +齾 +齿 +龀 +龁 +龂 +龃 +龄 +龅 +龆 +龇 +龈 +龉 +龊 +龋 +龌 +龍 +龎 +龐 +龑 +龒 +龔 +龕 +龗 +龙 +龚 +龛 +龜 +龝 +龟 +龠 +龢 +龤 +鿍 +鿎 +鿏 +郎 +凉 +︽ +︾ +﹏ +﹥ +﹪ +! +# +% +& +( +) ++ +, +- +. +/ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +: +; += +? +@ +A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z +a +b +c +d +e +f +g +h +i +j +k +l +m +n +o +p +q +r +s +t +u +v +w +x +y +z +| +~ +・ +ヲ +ァ +ィ +ゥ +ェ +ォ +ャ +ュ +ョ +ッ +ア +イ +ウ +エ +オ +カ +キ +ク +ケ +コ +サ +シ +ス +セ +ソ +タ +チ +ツ +テ +ト +ナ +ニ +ヌ +ネ +ノ +ハ +ヒ +フ +ヘ +ホ +マ +ミ +ム +メ +モ +ヤ +ユ +ヨ +ラ +リ +ル +レ +ロ +ワ +ン +゙ +゚ +¥ +𠅤 +𠙶 +𠳐 +𠴰 +𡎚 +𡐓 +𡑍 +𡚁 +𣇉 +𣗋 +𣲗 +𣲘 +𣸣 +𤋮 +𤧛 +𤩽 +𤫉 +𤺥 +𥔲 +𥕢 +𥖨 +𥻗 +𦈡 +𦍑 +𦒍 +𦙶 +𦝼 +𦭜 +𦰡 +𧿹 +𨐈 +𨙸 +𨚕 +𨟠 +𨭉 +𨱇 +𨱏 +𨱑 +𨱔 +𨺙 +𩓐 +𩽾 +𩾃 +𩾌 +𪟝 +𪣻 +𪤗 +𪨰 +𪨶 +𪩘 +𪾢 +𫄧 +𫄨 +𫄷 +𫄸 +𫇭 +𫌀 +𫍣 +𫍯 +𫍲 +𫍽 +𫐄 +𫐐 +𫐓 +𫑡 +𫓧 +𫓯 +𫓶 +𫓹 +𫔍 +𫔎 +𫔶 +𫖮 +𫖯 +𫖳 +𫗧 +𫗴 +𫘜 +𫘝 +𫘦 +𫘧 +𫘨 +𫘪 +𫘬 +𫚕 +𫚖 +𫚭 +𫛭 +𫞩 +𫟅 +𫟦 +𫟹 +𫟼 +𫠆 +𫠊 +𫠜 +𫢸 +𫫇 +𫭟 +𫭢 +𫭼 +𫮃 +𫰛 +𫵷 +𫶇 +𫷷 +𫸩 +𬀩 +𬀪 +𬂩 +𬃊 +𬇕 +𬇙 +𬇹 +𬉼 +𬊈 +𬊤 +𬌗 +𬍛 +𬍡 +𬍤 +𬒈 +𬒔 +𬒗 +𬕂 +𬘓 +𬘘 +𬘡 +𬘩 +𬘫 +𬘬 +𬘭 +𬘯 +𬙂 +𬙊 +𬙋 +𬜬 +𬜯 +𬞟 +𬟁 +𬟽 +𬣙 +𬣞 +𬣡 +𬣳 +𬤇 +𬤊 +𬤝 +𬨂 +𬨎 +𬩽 +𬪩 +𬬩 +𬬭 +𬬮 +𬬱 +𬬸 +𬬹 +𬬻 +𬬿 +𬭁 +𬭊 +𬭎 +𬭚 +𬭛 +𬭤 +𬭩 +𬭬 +𬭯 +𬭳 +𬭶 +𬭸 +𬭼 +𬮱 +𬮿 +𬯀 +𬯎 +𬱖 +𬱟 +𬳵 +𬳶 +𬳽 +𬳿 +𬴂 +𬴃 +𬴊 +𬶋 +𬶍 +𬶏 +𬶐 +𬶟 +𬶠 +𬶨 +𬶭 +𬶮 +𬷕 +𬸘 +𬸚 +𬸣 +𬸦 +𬸪 +𬹼 +𬺈 +𬺓 +🀄 +🃏 +🅰 +🅱 +🅾 +🅿 +🆎 +🆑 +🆒 +🆓 +🆔 +🆕 +🆖 +🆗 +🆘 +🆙 +🆚 +🇨 +🇩 +🇪 +🇫 +🇬 +🇮 +🇯 +🇰 +🇷 +🇺 +🈁 +🌀 +🌁 +🌂 +🌃 +🌄 +🌅 +🌆 +🌇 +🌈 +🌉 +🌊 +🌋 +🌌 +🌍 +🌎 +🌏 +🌐 +🌑 +🌒 +🌓 +🌔 +🌕 +🌖 +🌗 +🌘 +🌙 +🌚 +🌛 +🌜 +🌝 +🌞 +🌟 +🌠 +🌰 +🌱 +🌲 +🌳 +🌴 +🌵 +🌷 +🌸 +🌹 +🌺 +🌻 +🌼 +🌽 +🌾 +🌿 +🍀 +🍁 +🍂 +🍃 +🍄 +🍅 +🍆 +🍇 +🍈 +🍉 +🍊 +🍋 +🍌 +🍍 +🍎 +🍏 +🍐 +🍑 +🍒 +🍓 +🍔 +🍕 +🍖 +🍗 +🍘 +🍙 +🍚 +🍛 +🍜 +🍝 +🍞 +🍟 +🍠 +🍡 +🍢 +🍣 +🍤 +🍥 +🍦 +🍧 +🍨 +🍩 +🍪 +🍫 +🍬 +🍭 +🍮 +🍯 +🍰 +🍱 +🍲 +🍳 +🍴 +🍵 +🍶 +🍷 +🍸 +🍹 +🍺 +🍻 +🍼 +🎀 +🎁 +🎂 +🎃 +🎄 +🎅 +🎆 +🎇 +🎈 +🎉 +🎊 +🎋 +🎌 +🎍 +🎎 +🎏 +🎐 +🎑 +🎒 +🎓 +🎠 +🎡 +🎢 +🎣 +🎤 +🎥 +🎦 +🎧 +🎨 +🎩 +🎪 +🎫 +🎬 +🎭 +🎮 +🎯 +🎰 +🎱 +🎲 +🎳 +🎴 +🎵 +🎶 +🎷 +🎸 +🎹 +🎺 +🎻 +🎼 +🎽 +🎾 +🎿 +🏀 +🏁 +🏂 +🏃 +🏄 +🏆 +🏇 +🏈 +🏉 +🏊 +🏠 +🏡 +🏢 +🏣 +🏤 +🏥 +🏦 +🏧 +🏨 +🏩 +🏪 +🏫 +🏬 +🏭 +🏮 +🏯 +🏰 +🐀 +🐁 +🐂 +🐃 +🐄 +🐅 +🐆 +🐇 +🐈 +🐉 +🐊 +🐋 +🐌 +🐍 +🐎 +🐏 +🐐 +🐑 +🐒 +🐓 +🐔 +🐕 +🐖 +🐗 +🐘 +🐙 +🐚 +🐛 +🐜 +🐝 +🐞 +🐟 +🐠 +🐡 +🐢 +🐣 +🐤 +🐥 +🐦 +🐧 +🐨 +🐩 +🐪 +🐫 +🐬 +🐭 +🐮 +🐯 +🐰 +🐱 +🐲 +🐳 +🐴 +🐵 +🐶 +🐷 +🐸 +🐹 +🐺 +🐻 +🐼 +🐽 +🐾 +👀 +👂 +👃 +👄 +👅 +👆 +👇 +👈 +👉 +👊 +👋 +👌 +👍 +👎 +👏 +👐 +👑 +👒 +👓 +👔 +👕 +👖 +👗 +👘 +👙 +👚 +👛 +👜 +👝 +👞 +👟 +👠 +👡 +👢 +👣 +👤 +👥 +👦 +👧 +👨 +👩 +👪 +👫 +👬 +👭 +👮 +👯 +👰 +👱 +👲 +👳 +👴 +👵 +👶 +👷 +👸 +👹 +👺 +👻 +👼 +👽 +👾 +👿 +💀 +💁 +💂 +💃 +💄 +💅 +💆 +💇 +💈 +💉 +💊 +💋 +💌 +💍 +💎 +💏 +💐 +💑 +💒 +💓 +💔 +💕 +💖 +💗 +💘 +💙 +💚 +💛 +💜 +💝 +💞 +💟 +💠 +💡 +💢 +💣 +💤 +💥 +💦 +💧 +💨 +💩 +💪 +💫 +💬 +💭 +💮 +💯 +💰 +💲 +💳 +💴 +💵 +💶 +💷 +💸 +💹 +💺 +💻 +💼 +💽 +💾 +💿 +📀 +📁 +📂 +📃 +📄 +📅 +📆 +📇 +📈 +📉 +📊 +📋 +📌 +📍 +📎 +📏 +📐 +📑 +📒 +📓 +📔 +📕 +📖 +📗 +📘 +📙 +📚 +📛 +📜 +📝 +📞 +📟 +📠 +📡 +📢 +📣 +📤 +📥 +📦 +📧 +📨 +📩 +📪 +📫 +📬 +📭 +📮 +📯 +📰 +📱 +📲 +📳 +📴 +📵 +📶 +📷 +📹 +📺 +📻 +📼 +🔀 +🔁 +🔂 +🔃 +🔄 +🔅 +🔆 +🔇 +🔉 +🔊 +🔋 +🔌 +🔍 +🔎 +🔏 +🔐 +🔑 +🔒 +🔓 +🔔 +🔕 +🔖 +🔗 +🔘 +🔙 +🔚 +🔛 +🔜 +🔝 +🔞 +🔟 +🔠 +🔡 +🔢 +🔣 +🔤 +🔥 +🔦 +🔧 +🔨 +🔩 +🔪 +🔫 +🔬 +🔭 +🔮 +🔯 +🔰 +🔱 +🔲 +🔳 +🔴 +🔵 +🔶 +🔷 +🔸 +🔹 +🔺 +🔻 +🔼 +🔽 +🕐 +🕑 +🕒 +🕓 +🕔 +🕕 +🕖 +🕗 +🕘 +🕙 +🕚 +🕛 +🕜 +🕝 +🕞 +🕟 +🕠 +🕡 +🕢 +🕣 +🕤 +🕥 +🕦 +🕧 +🗻 +🗼 +🗽 +🗾 +🗿 +😀 +😁 +😂 +😃 +😄 +😅 +😆 +😇 +😈 +😉 +😊 +😋 +😌 +😍 +😎 +😏 +😐 +😑 +😒 +😓 +😔 +😕 +😖 +😗 +😘 +😙 +😚 +😛 +😜 +😝 +😞 +😟 +😠 +😡 +😢 +😣 +😤 +😥 +😦 +😧 +😨 +😩 +😪 +😫 +😬 +😭 +😮 +😯 +😰 +😱 +😲 +😳 +😴 +😵 +😶 +😷 +😸 +😹 +😺 +😻 +😼 +😽 +😾 +😿 +🙀 +🙅 +🙆 +🙇 +🙈 +🙉 +🙊 +🙋 +🙌 +🙍 +🙎 +🙏 +🚀 +🚁 +🚂 +🚃 +🚄 +🚅 +🚆 +🚇 +🚈 +🚉 +🚊 +🚌 +🚍 +🚎 +🚏 +🚐 +🚑 +🚒 +🚓 +🚔 +🚕 +🚖 +🚗 +🚘 +🚙 +🚚 +🚛 +🚜 +🚝 +🚞 +🚟 +🚠 +🚡 +🚢 +🚣 +🚤 +🚥 +🚦 +🚧 +🚨 +🚩 +🚪 +🚫 +🚬 +🚭 +🚮 +🚯 +🚰 +🚱 +🚲 +🚳 +🚴 +🚵 +🚶 +🚷 +🚸 +🚹 +🚺 +🚻 +🚼 +🚽 +🚾 +🚿 +🛀 +🛁 +🛂 +🛃 +🛄 +🛅 \ No newline at end of file diff --git a/eat-rs/vendor/ppocr/rec_keys_medium.txt b/eat-rs/vendor/ppocr/rec_keys_medium.txt new file mode 100644 index 0000000..ea0af92 --- /dev/null +++ b/eat-rs/vendor/ppocr/rec_keys_medium.txt @@ -0,0 +1,18708 @@ +! +" +# +$ +% +& +' +( +) +* ++ +, +- +. +/ +: +; +< += +> +? +@ +[ +\ +] +^ +_ +` +{ +| +} +~ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z +a +b +c +d +e +f +g +h +i +j +k +l +m +n +o +p +q +r +s +t +u +v +w +x +y +z +¢ +£ +¤ +¥ +¦ +§ +¨ +© +ª +« +¬ +® +¯ +° +± +² +³ +´ +µ +¶ +· +¸ +¹ +º +» +¼ +½ +¾ +¿ +À +Á + +à +Ä +Å +Æ +Ç +È +É +Ê +Ë +Ì +Í +Î +Ï +Ð +Ñ +Ò +Ó +Ô +Õ +Ö +× +Ø +Ù +Ú +Û +Ü +Ý +Þ +ß +à +á +â +ã +ä +å +æ +ç +è +é +ê +ë +ì +í +î +ï +ð +ñ +ò +ó +ô +õ +ö +÷ +ø +ù +ú +û +ü +ý +þ +ÿ +Ā +ā +Ă +ă +Ą +ą +Ć +ć +Ĉ +ĉ +Ċ +ċ +Č +č +Ď +ď +Đ +đ +Ē +ē +Ĕ +ĕ +Ė +ė +Ę +ę +Ě +ě +Ĝ +ĝ +Ğ +ğ +Ġ +ġ +Ģ +ģ +Ĥ +ĥ +Ħ +ħ +Ĩ +ĩ +Ī +ī +Ĭ +ĭ +Į +į +İ +ı +IJ +ij +Ĵ +ĵ +Ķ +ķ +ĸ +Ĺ +ĺ +Ļ +ļ +Ľ +ľ +Ŀ +ŀ +Ł +ł +Ń +ń +Ņ +ņ +Ň +ň +ʼn +Ŋ +ŋ +Ō +ō +Ŏ +ŏ +Ő +ő +Œ +œ +Ŕ +ŕ +Ŗ +ŗ +Ř +ř +Ś +ś +Ŝ +ŝ +Ş +ş +Š +š +Ţ +ţ +Ť +ť +Ŧ +ŧ +Ũ +ũ +Ū +ū +Ŭ +ŭ +Ů +ů +Ű +ű +Ų +ų +Ŵ +ŵ +Ŷ +ŷ +Ÿ +Ź +ź +Ż +ż +Ž +ž +ſ +ƀ +Ɓ +Ƃ +ƃ +Ƅ +ƅ +Ɔ +Ƈ +ƈ +Ɖ +Ɗ +Ƌ +ƌ +ƍ +Ǝ +Ə +Ɛ +Ƒ +ƒ +Ɠ +Ɣ +ƕ +Ɩ +Ɨ +Ƙ +ƙ +ƚ +ƛ +Ɯ +Ɲ +ƞ +Ɵ +Ơ +ơ +Ƣ +ƣ +Ƥ +ƥ +Ʀ +Ƨ +ƨ +Ʃ +ƪ +ƫ +Ƭ +ƭ +Ʈ +Ư +ư +Ʊ +Ʋ +Ƴ +ƴ +Ƶ +ƶ +Ʒ +Ƹ +ƹ +ƺ +ƻ +Ƽ +ƽ +ƾ +ƿ +ǀ +ǁ +ǂ +ǃ +DŽ +Dž +dž +LJ +Lj +lj +NJ +Nj +nj +Ǎ +ǎ +Ǐ +ǐ +Ǒ +ǒ +Ǔ +ǔ +Ǖ +ǖ +Ǘ +ǘ +Ǚ +ǚ +Ǜ +ǜ +ǝ +Ǟ +ǟ +Ǡ +ǡ +Ǣ +ǣ +Ǥ +ǥ +Ǧ +ǧ +Ǩ +ǩ +Ǫ +ǫ +Ǭ +ǭ +Ǯ +ǯ +ǰ +DZ +Dz +dz +Ǵ +ǵ +Ƕ +Ƿ +Ǹ +ǹ +Ǻ +ǻ +Ǽ +ǽ +Ǿ +ǿ +Ȁ +ȁ +Ȃ +ȃ +Ȅ +ȅ +Ȇ +ȇ +Ȉ +ȉ +Ȋ +ȋ +Ȍ +ȍ +Ȏ +ȏ +Ȑ +ȑ +Ȓ +ȓ +Ȕ +ȕ +Ȗ +ȗ +Ș +ș +Ț +ț +Ȝ +ȝ +Ȟ +ȟ +Ƞ +ȡ +Ȣ +ȣ +Ȥ +ȥ +Ȧ +ȧ +Ȩ +ȩ +Ȫ +ȫ +Ȭ +ȭ +Ȯ +ȯ +Ȱ +ȱ +Ȳ +ȳ +ȴ +ȵ +ȶ +ȷ +ȸ +ȹ +Ⱥ +Ȼ +ȼ +Ƚ +Ⱦ +ȿ +ɀ +Ɂ +ɂ +Ƀ +Ʉ +Ʌ +Ɇ +ɇ +Ɉ +ɉ +Ɋ +ɋ +Ɍ +ɍ +Ɏ +ɏ +ɐ +ɑ +ɒ +ɓ +ɔ +ɕ +ɖ +ɗ +ɘ +ə +ɚ +ɛ +ɜ +ɝ +ɞ +ɟ +ɠ +ɡ +ɢ +ɣ +ɤ +ɥ +ɦ +ɧ +ɨ +ɩ +ɪ +ɫ +ɬ +ɭ +ɮ +ɯ +ɰ +ɱ +ɲ +ɳ +ɴ +ɵ +ɶ +ɷ +ɸ +ɹ +ɺ +ɻ +ɼ +ɽ +ɾ +ɿ +ʀ +ʁ +ʂ +ʃ +ʄ +ʅ +ʆ +ʇ +ʈ +ʉ +ʊ +ʋ +ʌ +ʍ +ʎ +ʏ +ʐ +ʑ +ʒ +ʓ +ʔ +ʕ +ʖ +ʗ +ʘ +ʙ +ʚ +ʛ +ʜ +ʝ +ʞ +ʟ +ʠ +ʡ +ʢ +ʣ +ʤ +ʥ +ʦ +ʧ +ʨ +ʩ +ʪ +ʫ +ʬ +ʭ +ʮ +ʯ +Α +Β +Γ +Δ +Ε +Ζ +Η +Θ +Ι +Κ +Λ +Μ +Ν +Ξ +Ο +Π +Ρ +Σ +Τ +Υ +Φ +Χ +Ψ +Ω +α +β +γ +δ +ε +ζ +η +θ +ι +κ +λ +μ +ν +ξ +ο +π +ρ +σ +τ +υ +φ +χ +ψ +ω +ϐ +ϑ +ϒ +ϕ +ϖ +ϝ +Ϟ +ϟ +Ϡ +ϡ +Ϣ +ϣ +Ϥ +ϥ +Ϧ +ϧ +Ϩ +ϩ +Ϫ +ϫ +Ϭ +ϭ +Ϯ +ϯ +ϰ +ϱ +ϴ +ϵ +Ạ +ồ +– +— +― +‖ +‘ +’ +“ +” +† +‡ +• +‥ +… +‰ +′ +″ +※ +⁎ +⁰ +⁴ +⁵ +⁶ +⁷ +⁸ +⁹ +⁺ +⁻ +⁼ +⁽ +⁾ +ⁿ +₀ +₁ +₂ +₃ +₄ +₅ +₆ +₇ +₈ +₉ +₊ +₋ +₌ +₍ +₎ +ₒ +₠ +₡ +₢ +₣ +₤ +₥ +₦ +₧ +₨ +₩ +₪ +₫ +€ +₭ +₮ +₯ +₰ +₱ +₲ +₳ +₴ +₵ +₶ +₷ +₸ +₹ +₺ +₻ +₼ +₽ +₾ +₿ +℃ +℉ +ℎ +ℏ +ℑ +℘ +ℜ +™ +℧ +Å +ℵ +ℶ +ℷ +ℸ +ℹ +⅀ +Ⅰ +Ⅱ +Ⅲ +Ⅳ +Ⅴ +Ⅵ +Ⅶ +Ⅷ +Ⅸ +Ⅹ +Ⅺ +Ⅻ +ⅰ +ⅱ +ⅲ +ⅳ +ⅴ +ⅵ +ⅶ +ⅷ +ⅸ +ⅹ +ⅺ +ⅻ +ⅼ +ↀ +ↁ +ↂ +← +↑ +→ +↓ +↔ +↕ +↖ +↗ +↘ +↙ +↚ +↛ +↜ +↝ +↞ +↟ +↠ +↡ +↢ +↣ +↤ +↥ +↦ +↧ +↨ +↩ +↪ +↫ +↬ +↭ +↮ +↯ +↰ +↱ +↲ +↳ +↴ +↵ +↶ +↷ +↸ +↹ +↺ +↻ +↼ +↽ +↾ +↿ +⇀ +⇁ +⇂ +⇃ +⇄ +⇅ +⇆ +⇇ +⇈ +⇉ +⇊ +⇋ +⇌ +⇍ +⇎ +⇏ +⇐ +⇑ +⇒ +⇓ +⇔ +⇕ +⇖ +⇗ +⇘ +⇙ +⇚ +⇛ +⇜ +⇝ +⇞ +⇟ +⇠ +⇡ +⇢ +⇣ +⇤ +⇥ +⇦ +⇧ +⇨ +⇩ +⇪ +⇫ +⇬ +⇭ +⇮ +⇯ +⇰ +⇱ +⇲ +⇳ +⇴ +⇵ +⇶ +⇷ +⇸ +⇹ +⇺ +⇻ +⇼ +⇽ +⇾ +⇿ +∀ +∁ +∂ +∃ +∄ +∅ +∆ +∇ +∈ +∉ +∋ +∏ +∑ +− +∓ +∕ +∖ +∙ +√ +∛ +∜ +∝ +∞ +∟ +∠ +∡ +∢ +∥ +∧ +∨ +∩ +∪ +∫ +∬ +∭ +∮ +∯ +∰ +∱ +∲ +∳ +∴ +∵ +∶ +∷ +∸ +∹ +∺ +∻ +∼ +∽ +∾ +∿ +≀ +≁ +≂ +≃ +≄ +≅ +≆ +≇ +≈ +≉ +≊ +≋ +≌ +≍ +≎ +≏ +≐ +≑ +≒ +≓ +≔ +≕ +≖ +≗ +≘ +≙ +≚ +≛ +≜ +≝ +≞ +≟ +≠ +≡ +≢ +≣ +≤ +≥ +≦ +≧ +≨ +≩ +≪ +≫ +≬ +≭ +≮ +≯ +≰ +≱ +≲ +≳ +≴ +≵ +≶ +≷ +≸ +≹ +≺ +≻ +≼ +≽ +≾ +≿ +⊀ +⊁ +⊂ +⊃ +⊄ +⊅ +⊆ +⊇ +⊈ +⊉ +⊊ +⊋ +⊌ +⊍ +⊎ +⊏ +⊐ +⊑ +⊒ +⊓ +⊔ +⊕ +⊖ +⊗ +⊘ +⊙ +⊚ +⊛ +⊜ +⊝ +⊞ +⊟ +⊠ +⊡ +⊢ +⊣ +⊤ +⊥ +⊦ +⊧ +⊨ +⊩ +⊪ +⊫ +⊬ +⊭ +⊮ +⊯ +⊰ +⊱ +⊲ +⊳ +⊴ +⊵ +⊶ +⊷ +⊸ +⊹ +⊺ +⊻ +⊼ +⊽ +⊾ +⊿ +⋅ +⌀ +⌃ +⌘ +⌚ +⌛ +⌤ +⌥ +⌦ +⌧ +⌨ +〉 +⌫ +⌬ +⌭ +⌮ +⌯ +⍵ +⍺ +⎆ +⎇ +⎈ +⎉ +⎊ +⎋ +⎌ +⎍ +⎎ +⎏ +⎐ +⎑ +⎒ +⎓ +⎔ +⎕ +⎖ +⎗ +⎘ +⎙ +⎚ +⎛ +⎜ +⎝ +⎞ +⎟ +⎠ +⎡ +⎢ +⎣ +⎤ +⎥ +⎦ +⎧ +⎨ +⎩ +⎪ +⎫ +⎬ +⎭ +⎮ +⎯ +⎰ +⎱ +⎲ +⎳ +⎴ +⎵ +⎶ +⎷ +⎸ +⎹ +⎺ +⎻ +⎼ +⎽ +⎾ +⎿ +⏀ +⏁ +⏂ +⏃ +⏄ +⏅ +⏆ +⏇ +⏈ +⏉ +⏊ +⏋ +⏌ +⏍ +⏎ +⏏ +⏐ +⏑ +⏒ +⏓ +⏔ +⏕ +⏖ +⏗ +⏘ +⏙ +⏚ +⏛ +⏜ +⏝ +⏞ +⏟ +⏠ +⏡ +⏢ +⏣ +⏤ +⏥ +⏦ +⏧ +⏨ +⏩ +⏪ +⏫ +⏬ +⏭ +⏮ +⏯ +⏰ +⏱ +⏲ +⏳ +⏴ +⏵ +⏶ +⏷ +⏸ +⏹ +⏺ +⏻ +⏼ +⏽ +⏾ +⏿ +① +② +③ +④ +⑤ +⑥ +⑦ +⑧ +⑨ +⑩ +⑪ +⑫ +⑬ +⑭ +⑮ +⑯ +⑰ +⑱ +⑲ +⑳ +Ⓜ +━ +╆ +╳ +▁ +█ +■ +□ +▪ +▫ +▬ +▲ +△ +▶ +▷ +▼ +▽ +◀ +◆ +◇ +◉ +◊ +○ +◎ +● +◐ +◥ +◻ +◼ +◽ +◾ +☀ +☁ +☂ +☃ +☄ +★ +☆ +☇ +☈ +☉ +☊ +☋ +☌ +☍ +☎ +☏ +☐ +☑ +☒ +☓ +☔ +☕ +☖ +☗ +☘ +☙ +☚ +☛ +☜ +☝ +☞ +☟ +☠ +☡ +☢ +☣ +☤ +☥ +☦ +☧ +☨ +☩ +☪ +☫ +☬ +☭ +☮ +☯ +☰ +☱ +☲ +☳ +☴ +☵ +☶ +☷ +☸ +☹ +☺ +☻ +☼ +☽ +☾ +☿ +♀ +♁ +♂ +♃ +♄ +♅ +♆ +♇ +♈ +♉ +♊ +♋ +♌ +♍ +♎ +♏ +♐ +♑ +♒ +♓ +♔ +♕ +♖ +♗ +♘ +♙ +♚ +♛ +♜ +♝ +♞ +♟ +♠ +♡ +♢ +♣ +♤ +♥ +♦ +♧ +♨ +♩ +♪ +♫ +♬ +♭ +♮ +♯ +♰ +♱ +♲ +♳ +♴ +♵ +♶ +♷ +♸ +♹ +♺ +♻ +♼ +♽ +♾ +♿ +⚀ +⚁ +⚂ +⚃ +⚄ +⚅ +⚆ +⚇ +⚈ +⚉ +⚊ +⚋ +⚌ +⚍ +⚎ +⚏ +⚐ +⚑ +⚒ +⚓ +⚔ +⚕ +⚖ +⚗ +⚘ +⚙ +⚚ +⚛ +⚜ +⚝ +⚞ +⚟ +⚠ +⚡ +⚢ +⚣ +⚤ +⚥ +⚦ +⚧ +⚨ +⚩ +⚪ +⚫ +⚬ +⚭ +⚮ +⚯ +⚰ +⚱ +⚲ +⚳ +⚴ +⚵ +⚶ +⚷ +⚸ +⚹ +⚺ +⚻ +⚼ +⚽ +⚾ +⚿ +⛀ +⛁ +⛂ +⛃ +⛄ +⛅ +⛆ +⛇ +⛈ +⛉ +⛊ +⛋ +⛌ +⛍ +⛎ +⛏ +⛐ +⛑ +⛒ +⛓ +⛔ +⛕ +⛖ +⛗ +⛘ +⛙ +⛚ +⛛ +⛜ +⛝ +⛞ +⛠ +⛡ +⛢ +⛣ +⛤ +⛥ +⛦ +⛧ +⛨ +⛩ +⛪ +⛫ +⛬ +⛭ +⛮ +⛯ +⛲ +⛳ +⛵ +⛶ +⛺ +⛽ +⛾ +⛿ +✂ +✅ +✆ +✇ +✈ +✉ +✊ +✋ +✌ +✍ +✎ +✏ +✐ +✑ +✒ +✓ +✔ +✕ +✖ +✘ +✙ +✚ +✛ +✜ +✝ +✞ +✟ +✠ +✡ +✢ +✣ +✤ +✥ +✦ +✧ +✨ +✩ +✪ +✫ +✬ +✭ +✮ +✯ +✰ +✱ +✲ +✳ +✴ +✵ +✶ +✷ +✸ +✹ +✺ +✻ +✼ +✽ +✾ +✿ +❀ +❁ +❂ +❃ +❄ +❅ +❆ +❇ +❈ +❉ +❊ +❋ +❌ +❍ +❎ +❏ +❐ +❑ +❒ +❓ +❔ +❕ +❖ +❗ +❘ +❙ +❚ +❛ +❜ +❝ +❞ +❡ +❢ +❣ +❤ +❥ +❦ +❧ +❨ +❩ +❪ +❫ +❬ +❭ +❮ +❯ +❰ +❱ +❲ +❳ +❴ +❵ +❶ +❷ +❸ +❹ +❺ +❻ +❼ +❽ +❾ +❿ +➀ +➁ +➂ +➃ +➄ +➅ +➆ +➇ +➈ +➉ +➊ +➋ +➌ +➍ +➎ +➏ +➐ +➑ +➒ +➓ +➔ +➕ +➖ +➗ +➘ +➙ +➚ +➛ +➜ +➝ +➞ +➟ +➠ +➡ +➢ +➣ +➤ +➥ +➦ +➧ +➨ +➩ +➪ +➫ +➬ +➭ +➮ +➯ +➰ +➱ +➲ +➳ +➴ +➵ +➶ +➷ +➸ +➹ +➺ +➻ +➼ +➽ +➾ +➿ +⟶ +⟹ +⤴ +⤵ +⬅ +⬆ +⬇ +⬛ +⬜ +⭐ +⭕ +  +、 +。 +々 +〆 +〇 +〈 +〉 +《 +》 +「 +」 +『 +』 +【 +】 +〒 +〔 +〕 +〖 +〗 +〜 +〰 +〵 +〽 +ぁ +あ +ぃ +い +ぅ +う +ぇ +え +ぉ +お +か +が +き +ぎ +く +ぐ +け +げ +こ +ご +さ +ざ +し +じ +す +ず +せ +ぜ +そ +ぞ +た +だ +ち +ぢ +っ +つ +づ +て +で +と +ど +な +に +ぬ +ね +の +は +ば +ぱ +ひ +び +ぴ +ふ +ぶ +ぷ +へ +べ +ぺ +ほ +ぼ +ぽ +ま +み +む +め +も +ゃ +や +ゅ +ゆ +ょ +よ +ら +り +る +れ +ろ +ゎ +わ +ゑ +を +ん +ゕ +ゖ +ゝ +ゞ +ァ +ア +ィ +イ +ゥ +ウ +ェ +エ +ォ +オ +カ +ガ +キ +ギ +ク +グ +ケ +ゲ +コ +ゴ +サ +ザ +シ +ジ +ス +ズ +セ +ゼ +ソ +ゾ +タ +ダ +チ +ヂ +ッ +ツ +ヅ +テ +デ +ト +ド +ナ +ニ +ヌ +ネ +ノ +ハ +バ +パ +ヒ +ビ +ピ +フ +ブ +プ +ヘ +ベ +ペ +ホ +ボ +ポ +マ +ミ +ム +メ +モ +ャ +ヤ +ュ +ユ +ョ +ヨ +ラ +リ +ル +レ +ロ +ヮ +ワ +ヰ +ヲ +ン +ヴ +ヵ +ヶ +ヷ +ヸ +ヹ +ヺ +・ +ー +ヽ +ヾ +ヿ +㈱ +㊗ +㊙ +㐂 +㐱 +㑇 +㑊 +㑳 +㑺 +㒺 +㕁 +㕑 +㕥 +㕮 +㘎 +㘭 +㙍 +㙘 +㙟 +㙦 +㚷 +㛃 +㛚 +㛹 +㝛 +㝠 +㝡 +㟁 +㟃 +㠇 +㠓 +㠣 +㠯 +㠶 +㡌 +㢘 +㤘 +㤙 +㥄 +㥫 +㥮 +㧐 +㧑 +㧟 +㧱 +㨗 +㨪 +㩗 +㩦 +㩳 +㪚 +㪟 +㫰 +㬉 +㬊 +㬎 +㬚 +㬪 +㭎 +㭕 +㮣 +㮾 +㰀 +㳄 +㳇 +㳒 +㳘 +㳚 +㴔 +㴪 +㴱 +㵐 +㶲 +㸃 +㸆 +㸌 +㺄 +㻬 +㼝 +㽏 +㽞 +㿠 +䁖 +䂮 +䃅 +䃎 +䃮 +䅟 +䈰 +䊀 +䌹 +䎃 +䎖 +䏝 +䏡 +䏲 +䐃 +䓖 +䓛 +䓣 +䓨 +䓫 +䓬 +䖝 +䗖 +䗛 +䗪 +䗬 +䗴 +䘏 +䘑 +䘚 +䜣 +䝉 +䝔 +䝙 +䠀 +䠶 +䢺 +䢼 +䣘 +䥽 +䦃 +䮄 +䰟 +䰾 +䲁 +䲟 +䲠 +䲢 +䴉 +䴓 +䴔 +䴕 +䴖 +䴗 +䴘 +䴙 +䶊 +䶮 +一 +丁 +七 +丄 +万 +丈 +三 +上 +下 +丌 +不 +与 +丏 +丐 +丑 +专 +且 +丕 +世 +丘 +丙 +业 +丛 +东 +丝 +丞 +丟 +両 +丢 +两 +严 +並 +丧 +个 +丫 +中 +丮 +丰 +丱 +串 +临 +丸 +丹 +为 +主 +丼 +丽 +举 +丿 +乂 +乃 +久 +么 +义 +之 +乌 +乍 +乎 +乏 +乐 +乒 +乓 +乔 +乖 +乗 +乘 +乙 +乜 +九 +乞 +也 +习 +乡 +书 +乩 +乭 +买 +乱 +乳 +乸 +乹 +乾 +亀 +亂 +了 +予 +争 +亊 +事 +二 +亍 +于 +亏 +云 +互 +亓 +五 +井 +亘 +亙 +亚 +些 +亜 +亞 +亟 +亡 +亢 +交 +亥 +亦 +产 +亨 +亩 +享 +京 +亭 +亮 +亯 +亰 +亱 +亲 +亳 +亵 +亶 +亷 +亸 +亹 +人 +亾 +亿 +什 +仁 +仂 +仃 +仄 +仅 +仆 +仇 +仉 +今 +介 +仍 +从 +仏 +仑 +仓 +仔 +仕 +他 +仗 +付 +仙 +仛 +仜 +仝 +仞 +仟 +仡 +代 +令 +以 +仨 +仩 +仪 +仫 +们 +仮 +仰 +仱 +仲 +仳 +仵 +件 +价 +仺 +任 +仼 +份 +仿 +伀 +企 +伃 +伈 +伉 +伊 +伋 +伍 +伎 +伏 +伐 +休 +伔 +伕 +众 +优 +伙 +会 +伛 +伝 +伞 +伟 +传 +伢 +伣 +伤 +伥 +伦 +伧 +伪 +伫 +伬 +伭 +伯 +估 +伱 +伲 +伴 +伶 +伷 +伸 +伺 +伻 +似 +伽 +伾 +佀 +佁 +佃 +但 +佇 +佈 +佉 +佋 +佌 +位 +低 +住 +佐 +佑 +佒 +体 +佔 +何 +佖 +佗 +佘 +余 +佚 +佛 +作 +佝 +佞 +佟 +你 +佢 +佣 +佤 +佥 +佧 +佩 +佪 +佬 +佯 +佰 +佳 +佴 +併 +佶 +佷 +佸 +佹 +佺 +佻 +佼 +佽 +佾 +使 +侀 +侁 +侂 +侃 +侄 +侅 +來 +侇 +侈 +侉 +侊 +例 +侍 +侏 +侐 +侑 +侔 +侖 +侗 +侘 +侚 +供 +侜 +依 +侞 +侠 +価 +侣 +侥 +侦 +侧 +侨 +侩 +侪 +侬 +侮 +侯 +侲 +侳 +侴 +侵 +侶 +侷 +侹 +侻 +便 +俁 +係 +促 +俄 +俅 +俇 +俉 +俊 +俋 +俌 +俍 +俎 +俏 +俐 +俑 +俓 +俔 +俗 +俘 +俙 +俚 +俛 +俜 +保 +俞 +俟 +俠 +信 +俣 +俤 +俦 +俨 +俩 +俪 +俫 +俬 +俭 +修 +俯 +俱 +俳 +俴 +俵 +俶 +俷 +俸 +俺 +俽 +俾 +倀 +倃 +倅 +倆 +倇 +倈 +倉 +個 +倌 +倍 +倏 +倐 +們 +倒 +倓 +倔 +倕 +倖 +倗 +倘 +候 +倚 +倛 +倜 +倞 +借 +倠 +倡 +倢 +倣 +値 +倥 +倦 +倧 +倨 +倩 +倪 +倫 +倬 +倭 +倮 +倰 +倳 +倴 +倶 +倷 +倸 +倹 +债 +倻 +值 +倾 +偁 +偃 +偅 +假 +偈 +偉 +偊 +偋 +偌 +偍 +偎 +偏 +偐 +偓 +偕 +偘 +做 +偛 +停 +偝 +偞 +偟 +偠 +偡 +偢 +健 +偨 +偩 +偪 +偫 +偬 +偭 +偯 +偰 +偲 +側 +偵 +偶 +偷 +偸 +偺 +偻 +偽 +偾 +偿 +傀 +傂 +傃 +傅 +傈 +傉 +傋 +傌 +傍 +傎 +傑 +傒 +傔 +傕 +傖 +傘 +備 +傚 +傛 +傜 +傝 +傞 +傢 +傣 +傥 +傧 +储 +傩 +催 +傭 +傮 +傯 +傰 +傱 +傲 +傳 +傴 +債 +傷 +傺 +傻 +傽 +傾 +傿 +僁 +僂 +僄 +僅 +僆 +僇 +僈 +僉 +僊 +僋 +働 +僎 +像 +僑 +僓 +僔 +僕 +僖 +僗 +僙 +僚 +僛 +僜 +僝 +僞 +僡 +僤 +僥 +僦 +僧 +僨 +僩 +僪 +僬 +僭 +僮 +僰 +僱 +僳 +僴 +僵 +僶 +僸 +價 +僻 +僽 +僾 +僿 +儀 +儁 +儂 +儃 +億 +儆 +儇 +儈 +儉 +儋 +儌 +儐 +儑 +儒 +儓 +儔 +儕 +儗 +儘 +儚 +儛 +儜 +儞 +償 +儠 +儡 +儢 +儤 +儥 +儦 +優 +儫 +儰 +儱 +儲 +儳 +儴 +儵 +儷 +儸 +儹 +儺 +儻 +儼 +儽 +儿 +兀 +允 +元 +兄 +充 +兆 +兇 +先 +光 +克 +兌 +免 +兎 +児 +兑 +兒 +兔 +兕 +兖 +兗 +兙 +党 +兛 +兜 +兝 +兞 +兠 +兡 +兢 +兣 +入 +內 +全 +兩 +兪 +八 +公 +六 +兮 +兰 +共 +关 +兴 +兵 +其 +具 +典 +兹 +养 +兼 +兽 +兿 +冀 +冁 +冂 +冄 +内 +円 +冇 +冈 +冉 +冊 +册 +再 +冏 +冐 +冑 +冒 +冓 +冔 +冕 +冗 +冘 +写 +冚 +军 +农 +冞 +冠 +冢 +冣 +冤 +冥 +冧 +冨 +冪 +冬 +冮 +冯 +冰 +冱 +冲 +决 +冴 +况 +冶 +冷 +冺 +冻 +冼 +冽 +净 +凃 +凄 +凅 +准 +凇 +凈 +凉 +凊 +凋 +凌 +凍 +减 +凑 +凔 +凖 +凘 +凛 +凜 +凝 +凞 +几 +凡 +凢 +凤 +処 +凪 +凫 +凬 +凭 +凯 +凰 +凱 +凳 +凵 +凶 +凸 +凹 +出 +击 +凼 +函 +凿 +刀 +刁 +刂 +刃 +刄 +分 +切 +刈 +刉 +刊 +刌 +刍 +刎 +刑 +划 +刓 +刖 +列 +刘 +则 +刚 +创 +刜 +初 +刞 +删 +判 +別 +刦 +刧 +刨 +利 +刪 +别 +刬 +刭 +刮 +到 +刱 +刲 +刳 +刵 +制 +刷 +券 +刹 +刺 +刻 +刼 +刽 +刿 +剀 +剁 +剂 +剃 +剄 +剅 +剆 +則 +剉 +削 +剋 +剌 +前 +剎 +剏 +剐 +剑 +剒 +剔 +剕 +剖 +剗 +剚 +剛 +剜 +剝 +剞 +剟 +剡 +剣 +剤 +剥 +剧 +剩 +剪 +剫 +剬 +剭 +剮 +副 +剰 +割 +剳 +剴 +創 +剷 +剸 +剹 +剺 +剻 +剼 +剽 +剿 +劀 +劁 +劂 +劃 +劄 +劇 +劈 +劉 +劊 +劋 +劌 +劍 +劐 +劑 +劓 +劔 +劖 +劗 +劘 +劙 +力 +劝 +办 +功 +加 +务 +劢 +劣 +劦 +动 +助 +努 +劫 +劬 +劭 +励 +劲 +劳 +労 +劵 +効 +劼 +劾 +势 +勁 +勃 +勅 +勇 +勉 +勋 +勌 +勍 +勐 +勑 +勒 +勔 +動 +勖 +勗 +勘 +務 +勚 +勛 +勝 +勞 +募 +勢 +勣 +勤 +勦 +勧 +勩 +勰 +勱 +勲 +勳 +勴 +勵 +勷 +勸 +勺 +勻 +勾 +勿 +匀 +匁 +匂 +匃 +匄 +包 +匆 +匈 +匊 +匋 +匍 +匏 +匐 +匕 +化 +北 +匙 +匜 +匝 +匟 +匠 +匡 +匢 +匣 +匦 +匪 +匭 +匮 +匯 +匰 +匱 +匲 +匴 +匷 +匸 +匹 +区 +医 +匼 +匽 +匾 +匿 +區 +十 +千 +卅 +升 +午 +卉 +半 +卋 +卌 +卍 +华 +协 +卐 +卑 +卒 +卓 +協 +单 +卖 +南 +単 +博 +卜 +卞 +卟 +占 +卡 +卢 +卣 +卤 +卦 +卧 +卫 +卬 +卮 +卯 +印 +危 +卲 +即 +却 +卵 +卷 +卸 +卹 +卺 +卻 +卼 +卽 +卿 +厀 +厂 +厄 +厅 +历 +厉 +压 +厌 +厍 +厎 +厒 +厓 +厔 +厕 +厖 +厗 +厘 +厙 +厚 +厜 +厝 +厞 +原 +厠 +厢 +厣 +厤 +厥 +厦 +厨 +厩 +厬 +厭 +厮 +厰 +厲 +厳 +厴 +厹 +去 +厾 +县 +叁 +参 +參 +叄 +叆 +叇 +又 +叉 +及 +友 +双 +反 +収 +发 +叔 +叕 +取 +受 +变 +叙 +叚 +叛 +叟 +叠 +叡 +叢 +口 +古 +句 +另 +叨 +叩 +只 +叫 +召 +叭 +叮 +可 +台 +叱 +史 +右 +叵 +叶 +号 +司 +叹 +叻 +叼 +叽 +吁 +吃 +各 +吆 +合 +吉 +吊 +吋 +同 +名 +后 +吏 +吐 +向 +吒 +吓 +吔 +吕 +吖 +吗 +吚 +君 +吝 +吞 +吟 +吠 +吡 +吣 +吥 +否 +吧 +吨 +吩 +吪 +含 +听 +吭 +吮 +启 +吰 +吱 +吲 +吳 +吴 +吵 +吶 +吷 +吸 +吹 +吻 +吼 +吽 +吾 +呀 +呂 +呃 +呆 +呇 +呈 +呉 +告 +呋 +呌 +呎 +呐 +呑 +呒 +呓 +呔 +呕 +呖 +呗 +员 +呙 +呛 +呜 +呢 +呣 +呤 +呥 +呦 +周 +呪 +呫 +呬 +呰 +呱 +呲 +味 +呴 +呵 +呶 +呷 +呸 +呺 +呻 +呼 +命 +呾 +呿 +咀 +咁 +咂 +咄 +咅 +咆 +咇 +咈 +咉 +咊 +咋 +和 +咍 +咎 +咏 +咐 +咑 +咒 +咔 +咕 +咖 +咗 +咘 +咙 +咚 +咛 +咝 +咟 +咠 +咡 +咢 +咣 +咤 +咥 +咦 +咧 +咨 +咩 +咪 +咫 +咬 +咭 +咮 +咯 +咱 +咲 +咳 +咴 +咶 +咷 +咸 +咺 +咻 +咼 +咽 +咾 +咿 +哀 +品 +哂 +哃 +哄 +哅 +哆 +哇 +哈 +哉 +哌 +响 +哎 +哏 +哐 +哑 +哒 +哓 +哔 +哕 +哖 +哗 +哙 +哚 +哝 +哞 +哟 +員 +哢 +哤 +哥 +哦 +哧 +哨 +哩 +哪 +哫 +哭 +哮 +哱 +哲 +哳 +哶 +哺 +哼 +哽 +哿 +唁 +唃 +唄 +唅 +唆 +唇 +唈 +唉 +唌 +唏 +唐 +唑 +唒 +唔 +唕 +唖 +唗 +唘 +唚 +唛 +唝 +唠 +唢 +唣 +唤 +唦 +唧 +唪 +唫 +唬 +唭 +售 +唯 +唰 +唱 +唲 +唳 +唴 +唵 +唶 +唷 +唸 +唻 +唼 +唾 +唿 +啁 +啃 +啄 +啅 +商 +啉 +啊 +啍 +啎 +問 +啐 +啑 +啒 +啓 +啕 +啖 +啗 +啚 +啜 +啞 +啟 +啡 +啢 +啣 +啤 +啥 +啦 +啧 +啪 +啫 +啬 +啭 +啮 +啯 +啰 +啱 +啲 +啴 +啵 +啶 +啷 +啸 +啻 +啼 +啽 +啾 +喀 +喁 +喂 +喃 +善 +喆 +喇 +喈 +喉 +喊 +喋 +喌 +喍 +喏 +喑 +喒 +喓 +喔 +喘 +喙 +喚 +喜 +喝 +喟 +喢 +喣 +喤 +喥 +喦 +喧 +喨 +喩 +喪 +喫 +喬 +喭 +單 +喰 +喱 +喲 +喳 +喵 +営 +喷 +喹 +喻 +喼 +喽 +喾 +喿 +嗀 +嗁 +嗃 +嗄 +嗅 +嗆 +嗇 +嗈 +嗉 +嗊 +嗋 +嗌 +嗍 +嗎 +嗏 +嗐 +嗑 +嗒 +嗓 +嗔 +嗕 +嗖 +嗚 +嗛 +嗜 +嗝 +嗞 +嗟 +嗡 +嗢 +嗣 +嗤 +嗥 +嗦 +嗧 +嗨 +嗩 +嗪 +嗫 +嗬 +嗮 +嗯 +嗲 +嗳 +嗵 +嗶 +嗷 +嗹 +嗺 +嗼 +嗽 +嗾 +嗿 +嘀 +嘁 +嘂 +嘄 +嘅 +嘆 +嘈 +嘉 +嘌 +嘍 +嘎 +嘏 +嘐 +嘑 +嘒 +嘓 +嘔 +嘕 +嘖 +嘗 +嘘 +嘚 +嘛 +嘜 +嘝 +嘞 +嘟 +嘠 +嘡 +嘢 +嘣 +嘤 +嘥 +嘧 +嘩 +嘬 +嘭 +嘮 +嘯 +嘰 +嘱 +嘲 +嘳 +嘴 +嘵 +嘶 +嘷 +嘸 +嘹 +嘻 +嘽 +嘾 +嘿 +噀 +噁 +噂 +噅 +噆 +噇 +噈 +噉 +噊 +噌 +噍 +噎 +噏 +噓 +噔 +噗 +噘 +噙 +噚 +噛 +噜 +噝 +噞 +噠 +噢 +噣 +噤 +噥 +噦 +器 +噩 +噪 +噫 +噬 +噭 +噮 +噯 +噰 +噱 +噲 +噳 +噴 +噶 +噸 +噹 +噺 +噻 +噼 +嚀 +嚃 +嚄 +嚅 +嚆 +嚇 +嚈 +嚌 +嚍 +嚎 +嚏 +嚐 +嚒 +嚓 +嚕 +嚗 +嚘 +嚙 +嚚 +嚜 +嚞 +嚟 +嚢 +嚣 +嚤 +嚥 +嚦 +嚧 +嚨 +嚩 +嚪 +嚫 +嚬 +嚭 +嚮 +嚯 +嚲 +嚳 +嚴 +嚵 +嚶 +嚷 +嚼 +嚽 +嚾 +嚿 +囀 +囁 +囂 +囃 +囅 +囆 +囈 +囉 +囊 +囋 +囌 +囍 +囑 +囒 +囓 +囔 +囗 +囙 +囚 +四 +囝 +回 +囟 +因 +囡 +团 +団 +囤 +囧 +囪 +囫 +园 +囮 +囯 +困 +囱 +囲 +図 +围 +囵 +囶 +囷 +囹 +固 +国 +图 +囿 +圀 +圁 +圂 +圃 +圄 +圅 +圆 +圇 +圈 +圉 +圊 +國 +圌 +圍 +圏 +圐 +園 +圓 +圖 +圗 +團 +圙 +圜 +圞 +土 +圠 +圢 +圣 +圧 +在 +圩 +圪 +圫 +圬 +圭 +圮 +圯 +地 +圲 +圳 +圹 +场 +圻 +圾 +址 +坁 +坂 +坅 +均 +坉 +坊 +坋 +坌 +坍 +坎 +坏 +坐 +坑 +坒 +坖 +块 +坚 +坛 +坜 +坝 +坞 +坟 +坠 +坡 +坣 +坤 +坥 +坦 +坨 +坩 +坪 +坫 +坬 +坭 +坮 +坯 +坰 +坱 +坲 +坳 +坴 +坵 +坶 +坷 +坻 +坼 +坽 +坿 +垀 +垂 +垃 +垄 +垆 +垈 +型 +垌 +垍 +垎 +垏 +垒 +垓 +垔 +垕 +垗 +垘 +垙 +垚 +垛 +垜 +垝 +垞 +垟 +垠 +垡 +垢 +垣 +垤 +垦 +垧 +垩 +垫 +垭 +垮 +垯 +垰 +垱 +垲 +垴 +垵 +垸 +垺 +垻 +垼 +垽 +垾 +垿 +埂 +埃 +埅 +埆 +埇 +埈 +埋 +埌 +城 +埏 +埒 +埔 +埕 +埗 +埘 +埙 +埚 +埜 +埝 +域 +埠 +埡 +埢 +埤 +埧 +埨 +埪 +埫 +埭 +埮 +埯 +埳 +埴 +埵 +埶 +執 +埸 +培 +基 +埻 +埼 +埽 +堀 +堂 +堃 +堅 +堆 +堇 +堈 +堉 +堊 +堋 +堌 +堍 +堎 +堐 +堑 +堔 +堕 +堖 +堘 +堙 +堝 +堞 +堠 +堡 +堣 +堤 +堥 +堦 +堧 +堨 +堩 +堪 +堮 +堯 +堰 +報 +堲 +場 +堵 +堷 +堺 +堼 +堽 +堾 +堿 +塀 +塁 +塄 +塅 +塆 +塈 +塉 +塊 +塋 +塌 +塍 +塏 +塑 +塒 +塓 +塔 +塕 +塗 +塘 +塙 +塚 +塜 +塝 +塞 +塟 +塡 +塢 +塤 +塥 +塨 +塩 +填 +塬 +塭 +塯 +塰 +塱 +塲 +塴 +塵 +塸 +塹 +塺 +塼 +塽 +塾 +塿 +墀 +墁 +境 +墅 +墆 +墈 +墉 +墊 +墋 +墎 +墐 +墒 +墓 +墕 +墖 +増 +墘 +墙 +墚 +墜 +墝 +增 +墟 +墠 +墡 +墣 +墦 +墨 +墩 +墪 +墫 +墬 +墮 +墯 +墱 +墳 +墶 +墺 +墻 +墼 +墽 +墾 +壁 +壄 +壅 +壆 +壇 +壈 +壊 +壋 +壌 +壎 +壐 +壑 +壓 +壔 +壕 +壖 +壘 +壙 +壚 +壛 +壝 +壞 +壟 +壠 +壢 +壤 +壩 +壪 +士 +壬 +壮 +壯 +声 +壱 +売 +壳 +壴 +壶 +壷 +壸 +壹 +壺 +壻 +壼 +壽 +壾 +壿 +夀 +夃 +处 +夆 +备 +変 +夊 +夋 +夌 +复 +夎 +夏 +夐 +夒 +夔 +夕 +外 +夗 +夘 +夙 +多 +夜 +够 +夠 +夢 +夤 +夥 +大 +天 +太 +夫 +夬 +夭 +央 +夯 +失 +头 +夷 +夸 +夹 +夺 +夼 +夾 +奀 +奁 +奂 +奄 +奅 +奇 +奈 +奉 +奊 +奋 +奎 +奏 +奐 +契 +奓 +奔 +奕 +奖 +套 +奘 +奚 +奠 +奡 +奢 +奣 +奥 +奧 +奨 +奩 +奪 +奫 +奬 +奭 +奮 +奰 +奲 +女 +奴 +奶 +奸 +她 +奼 +好 +妀 +妁 +如 +妃 +妄 +妆 +妇 +妈 +妊 +妍 +妎 +妏 +妐 +妑 +妒 +妓 +妖 +妗 +妘 +妙 +妝 +妞 +妠 +妢 +妣 +妤 +妥 +妦 +妧 +妨 +妩 +妪 +妫 +妬 +妭 +妮 +妯 +妲 +妳 +妵 +妷 +妸 +妹 +妺 +妻 +妾 +姀 +姁 +姃 +姆 +姈 +姉 +姊 +始 +姌 +姍 +姎 +姏 +姐 +姑 +姒 +姓 +委 +姗 +姘 +姙 +姚 +姜 +姝 +姞 +姡 +姣 +姤 +姥 +姦 +姨 +姪 +姫 +姬 +姮 +姱 +姵 +姶 +姸 +姹 +姺 +姻 +姼 +姽 +姿 +娀 +威 +娃 +娄 +娅 +娆 +娇 +娈 +娉 +娋 +娌 +娍 +娎 +娑 +娓 +娖 +娘 +娙 +娛 +娜 +娟 +娠 +娣 +娥 +娩 +娫 +娭 +娯 +娱 +娲 +娳 +娴 +娵 +娶 +娷 +娸 +娼 +娽 +娿 +婀 +婁 +婆 +婉 +婊 +婌 +婍 +婐 +婑 +婓 +婕 +婗 +婘 +婚 +婞 +婟 +婠 +婢 +婣 +婤 +婥 +婦 +婧 +婪 +婫 +婬 +婭 +婯 +婳 +婴 +婵 +婶 +婷 +婸 +婺 +婻 +婼 +婿 +媂 +媃 +媄 +媆 +媊 +媐 +媒 +媓 +媔 +媕 +媖 +媗 +媚 +媛 +媜 +媞 +媟 +媢 +媥 +媦 +媧 +媪 +媬 +媭 +媮 +媯 +媰 +媱 +媲 +媳 +媵 +媸 +媺 +媻 +媼 +媽 +媾 +媿 +嫁 +嫂 +嫄 +嫇 +嫈 +嫉 +嫋 +嫌 +嫐 +嫒 +嫔 +嫕 +嫖 +嫗 +嫘 +嫚 +嫛 +嫜 +嫠 +嫡 +嫢 +嫣 +嫥 +嫦 +嫩 +嫪 +嫫 +嫭 +嫮 +嫰 +嫱 +嫲 +嫳 +嫴 +嫵 +嫶 +嫷 +嫺 +嫻 +嫽 +嫿 +嬀 +嬃 +嬅 +嬈 +嬉 +嬋 +嬌 +嬎 +嬐 +嬓 +嬖 +嬗 +嬙 +嬛 +嬝 +嬡 +嬢 +嬤 +嬥 +嬨 +嬪 +嬬 +嬭 +嬰 +嬲 +嬴 +嬷 +嬸 +嬽 +嬾 +嬿 +孀 +孁 +孃 +孅 +孆 +孈 +孋 +孌 +子 +孑 +孓 +孔 +孕 +孖 +字 +存 +孙 +孚 +孛 +孜 +孝 +孟 +孢 +季 +孤 +孥 +学 +孩 +孪 +孫 +孬 +孮 +孰 +孱 +孲 +孳 +孵 +孷 +學 +孺 +孻 +孼 +孽 +孿 +宁 +宂 +它 +宄 +宅 +宇 +守 +安 +宋 +完 +宍 +宎 +宏 +宓 +宕 +宗 +官 +宙 +定 +宛 +宜 +宝 +实 +実 +宠 +审 +客 +宣 +室 +宥 +宦 +宧 +宨 +宪 +宫 +宬 +宮 +宰 +害 +宴 +宵 +家 +宸 +容 +宽 +宾 +宿 +寀 +寁 +寂 +寃 +寄 +寅 +密 +寇 +寈 +寊 +寋 +富 +寍 +寐 +寑 +寒 +寓 +寔 +寕 +寖 +寗 +寘 +寙 +寛 +寜 +寝 +寞 +察 +寠 +寡 +寢 +寤 +寥 +實 +寧 +寨 +審 +寪 +寫 +寬 +寮 +寯 +寰 +寱 +寳 +寵 +寶 +寸 +对 +寺 +寻 +导 +対 +寿 +封 +専 +尃 +射 +尅 +将 +將 +專 +尉 +尊 +尋 +尌 +對 +導 +小 +尐 +少 +尒 +尓 +尔 +尕 +尖 +尗 +尘 +尙 +尚 +尜 +尝 +尟 +尢 +尤 +尥 +尧 +尨 +尪 +尬 +尭 +尰 +就 +尳 +尴 +尷 +尸 +尹 +尺 +尻 +尼 +尽 +尾 +尿 +局 +屁 +层 +屃 +屄 +居 +屆 +屇 +屈 +屉 +届 +屋 +屌 +屍 +屎 +屏 +屐 +屑 +屓 +屔 +展 +屖 +屘 +屙 +屚 +屜 +屝 +属 +屠 +屡 +屢 +屣 +層 +履 +屦 +屧 +屨 +屩 +屬 +屭 +屮 +屯 +山 +屴 +屹 +屺 +屻 +屼 +屾 +屿 +岀 +岁 +岂 +岅 +岈 +岉 +岊 +岋 +岌 +岍 +岏 +岐 +岑 +岒 +岔 +岖 +岗 +岘 +岙 +岚 +岛 +岜 +岝 +岞 +岟 +岠 +岡 +岢 +岣 +岤 +岧 +岨 +岩 +岪 +岫 +岬 +岭 +岮 +岯 +岰 +岱 +岳 +岵 +岷 +岸 +岻 +岽 +岿 +峁 +峂 +峃 +峄 +峅 +峇 +峉 +峊 +峋 +峌 +峍 +峐 +峒 +峗 +峘 +峙 +峚 +峛 +峝 +峞 +峠 +峡 +峣 +峤 +峥 +峦 +峧 +峨 +峩 +峪 +峬 +峭 +峮 +峯 +峰 +峱 +峴 +島 +峷 +峻 +峼 +峽 +峿 +崀 +崁 +崂 +崃 +崄 +崆 +崇 +崈 +崋 +崌 +崍 +崎 +崏 +崐 +崑 +崒 +崔 +崖 +崗 +崘 +崙 +崚 +崛 +崝 +崞 +崟 +崠 +崡 +崢 +崣 +崤 +崥 +崦 +崧 +崨 +崩 +崬 +崭 +崮 +崰 +崱 +崳 +崴 +崵 +崶 +崷 +崺 +崽 +崾 +崿 +嵁 +嵂 +嵃 +嵅 +嵇 +嵊 +嵋 +嵌 +嵎 +嵐 +嵑 +嵒 +嵕 +嵖 +嵗 +嵘 +嵙 +嵚 +嵛 +嵜 +嵝 +嵞 +嵣 +嵥 +嵨 +嵩 +嵫 +嵬 +嵮 +嵯 +嵰 +嵱 +嵲 +嵴 +嵷 +嵺 +嵻 +嵽 +嵾 +嵿 +嶀 +嶁 +嶂 +嶃 +嶄 +嶅 +嶆 +嶇 +嶈 +嶉 +嶊 +嶋 +嶌 +嶍 +嶒 +嶓 +嶔 +嶕 +嶗 +嶙 +嶚 +嶜 +嶝 +嶞 +嶟 +嶠 +嶡 +嶢 +嶦 +嶧 +嶨 +嶩 +嶪 +嶬 +嶭 +嶮 +嶰 +嶱 +嶲 +嶴 +嶵 +嶷 +嶸 +嶺 +嶼 +嶽 +巀 +巂 +巃 +巄 +巅 +巆 +巇 +巉 +巋 +巌 +巍 +巎 +巏 +巑 +巒 +巔 +巕 +巖 +巗 +巘 +巛 +川 +州 +巟 +巡 +巢 +巣 +工 +左 +巧 +巨 +巩 +巫 +差 +巯 +巰 +己 +已 +巳 +巴 +巵 +巶 +巷 +巹 +巻 +巽 +巾 +巿 +帀 +币 +市 +布 +帅 +帆 +师 +帊 +希 +帏 +帐 +帑 +帔 +帕 +帖 +帗 +帘 +帙 +帚 +帛 +帜 +帝 +帟 +帠 +帡 +帢 +帣 +帤 +帥 +带 +帧 +帨 +帩 +師 +帬 +席 +帮 +帯 +帰 +帱 +帳 +帴 +帶 +帷 +常 +帻 +帼 +帽 +帾 +幀 +幂 +幃 +幄 +幅 +幇 +幌 +幎 +幏 +幑 +幓 +幔 +幕 +幖 +幗 +幘 +幙 +幚 +幛 +幝 +幞 +幟 +幠 +幡 +幢 +幣 +幦 +幧 +幨 +幩 +幪 +幫 +幬 +幭 +幰 +干 +平 +年 +幵 +并 +幷 +幸 +幹 +幺 +幻 +幼 +幽 +幾 +广 +庀 +庁 +庂 +広 +庄 +庆 +庇 +庈 +庉 +床 +庋 +庌 +序 +庐 +庑 +库 +应 +底 +庖 +店 +庙 +庚 +庛 +府 +庞 +废 +庠 +庢 +庣 +庤 +庥 +度 +座 +庨 +庪 +庫 +庬 +庭 +庮 +庰 +庱 +庲 +庳 +庴 +庵 +庶 +康 +庸 +庹 +庻 +庼 +庽 +庾 +廁 +廂 +廃 +廄 +廅 +廆 +廇 +廈 +廉 +廊 +廋 +廌 +廍 +廎 +廐 +廑 +廒 +廓 +廔 +廕 +廖 +廗 +廘 +廙 +廚 +廛 +廜 +廝 +廞 +廟 +廠 +廡 +廢 +廣 +廥 +廦 +廧 +廨 +廩 +廪 +廬 +廮 +廯 +廰 +廱 +廳 +廵 +延 +廷 +廸 +廹 +建 +廻 +廼 +廾 +廿 +开 +弁 +异 +弃 +弄 +弅 +弆 +弇 +弈 +弉 +弊 +弋 +弌 +弍 +式 +弐 +弑 +弒 +弓 +弔 +引 +弖 +弗 +弘 +弚 +弛 +弝 +弟 +张 +弢 +弣 +弤 +弥 +弦 +弧 +弨 +弩 +弭 +弮 +弯 +弱 +弳 +張 +弶 +強 +弸 +弹 +强 +弼 +弾 +彀 +彃 +彄 +彅 +彆 +彈 +彉 +彊 +彋 +彌 +彎 +彏 +彐 +归 +当 +彔 +录 +彖 +彗 +彘 +彙 +彜 +彝 +彞 +彟 +彠 +彡 +形 +彣 +彤 +彥 +彦 +彧 +彩 +彪 +彫 +彬 +彭 +彯 +彰 +影 +彳 +彴 +彷 +彸 +役 +彻 +彼 +彾 +彿 +往 +征 +徂 +徃 +径 +待 +徇 +很 +徉 +徊 +律 +後 +徐 +徑 +徒 +従 +徕 +得 +徘 +徙 +徛 +徜 +從 +徠 +御 +徥 +徦 +徧 +徨 +復 +循 +徫 +徬 +徭 +微 +徯 +徲 +徳 +徴 +徵 +德 +徸 +徹 +徼 +徽 +徾 +徿 +忀 +忁 +心 +必 +忆 +忉 +忌 +忍 +忏 +忐 +忑 +忒 +忔 +忕 +忖 +志 +忘 +忙 +応 +忝 +忞 +忠 +忡 +忣 +忤 +忥 +忧 +忨 +忪 +快 +忬 +忭 +忮 +忯 +忱 +忳 +念 +忷 +忸 +忺 +忻 +忼 +忽 +忾 +忿 +怀 +态 +怂 +怃 +怄 +怅 +怆 +怊 +怋 +怍 +怎 +怏 +怐 +怒 +怓 +怔 +怕 +怖 +怗 +怙 +怚 +怛 +怜 +思 +怞 +怠 +怡 +怢 +急 +怦 +性 +怨 +怩 +怪 +怫 +怬 +怭 +怮 +怯 +怱 +怲 +怳 +怴 +怵 +怷 +怹 +总 +怼 +怿 +恀 +恁 +恂 +恃 +恅 +恆 +恇 +恉 +恊 +恋 +恌 +恍 +恐 +恒 +恓 +恔 +恕 +恙 +恚 +恛 +恝 +恞 +恟 +恠 +恡 +恢 +恣 +恤 +恥 +恧 +恨 +恩 +恪 +恫 +恬 +恭 +息 +恰 +恲 +恳 +恵 +恶 +恸 +恹 +恺 +恻 +恼 +恽 +恿 +悀 +悁 +悃 +悄 +悅 +悆 +悇 +悈 +悉 +悊 +悌 +悍 +悐 +悒 +悔 +悕 +悖 +悗 +悚 +悛 +悝 +悞 +悟 +悠 +悢 +患 +悤 +悦 +悧 +您 +悩 +悪 +悫 +悬 +悭 +悯 +悰 +悱 +悲 +悳 +悴 +悵 +悶 +悷 +悸 +悹 +悺 +悻 +悼 +悽 +悾 +惄 +情 +惆 +惇 +惈 +惉 +惊 +惋 +惌 +惎 +惏 +惑 +惓 +惔 +惕 +惘 +惙 +惚 +惛 +惜 +惝 +惟 +惠 +惡 +惢 +惣 +惤 +惥 +惦 +惧 +惨 +惩 +惪 +惫 +惬 +惭 +惮 +惯 +惰 +惱 +惲 +想 +惴 +惵 +惶 +惷 +惸 +惹 +惺 +惻 +惼 +惾 +愀 +愁 +愃 +愅 +愆 +愈 +愉 +愊 +愍 +愎 +意 +愐 +愒 +愓 +愔 +愕 +愖 +愚 +愛 +愜 +感 +愠 +愣 +愤 +愦 +愧 +愨 +愫 +愬 +愭 +愮 +愯 +愲 +愴 +愶 +愷 +愼 +愽 +愾 +愿 +慁 +慂 +慄 +慅 +慆 +慇 +慈 +慉 +慊 +態 +慌 +慍 +慎 +慑 +慒 +慓 +慔 +慕 +慘 +慚 +慛 +慜 +慝 +慞 +慟 +慢 +慣 +慤 +慥 +慧 +慨 +慪 +慫 +慬 +慭 +慮 +慰 +慱 +慲 +慳 +慴 +慵 +慶 +慷 +慹 +慺 +慼 +慽 +慾 +憀 +憂 +憃 +憇 +憉 +憊 +憋 +憍 +憎 +憐 +憑 +憒 +憓 +憔 +憕 +憖 +憙 +憚 +憛 +憝 +憟 +憡 +憢 +憤 +憧 +憨 +憩 +憪 +憫 +憬 +憭 +憮 +憯 +憰 +憱 +憲 +憴 +憵 +憶 +憷 +憸 +憺 +憻 +憼 +憾 +憿 +懁 +懂 +懃 +懅 +懆 +懇 +懈 +應 +懊 +懋 +懌 +懍 +懐 +懑 +懒 +懔 +懘 +懞 +懟 +懠 +懣 +懤 +懥 +懦 +懧 +懨 +懪 +懫 +懭 +懮 +懰 +懱 +懲 +懵 +懶 +懷 +懸 +懺 +懻 +懼 +懽 +懾 +懿 +戀 +戁 +戃 +戄 +戆 +戇 +戈 +戉 +戊 +戋 +戌 +戍 +戎 +戏 +成 +我 +戒 +戔 +戕 +或 +戗 +战 +戙 +戚 +戛 +戞 +戟 +戠 +戡 +戢 +戣 +戤 +戥 +戦 +戧 +戩 +截 +戬 +戭 +戮 +戯 +戰 +戱 +戲 +戳 +戴 +戶 +户 +戸 +戹 +戺 +戻 +戼 +戽 +戾 +房 +所 +扁 +扂 +扃 +扅 +扆 +扇 +扈 +扉 +扊 +手 +才 +扎 +扐 +扑 +扒 +打 +扔 +払 +托 +扙 +扛 +扜 +扞 +扡 +扢 +扣 +扤 +扥 +扦 +执 +扩 +扪 +扫 +扬 +扭 +扮 +扯 +扰 +扱 +扳 +扶 +批 +扺 +扻 +扼 +扽 +找 +承 +技 +抃 +抄 +抆 +抇 +抉 +把 +抌 +抎 +抏 +抑 +抒 +抓 +抔 +投 +抖 +抗 +折 +抚 +抛 +抜 +抝 +択 +抟 +抠 +抡 +抢 +护 +报 +抦 +抨 +抪 +披 +抬 +抭 +抮 +抱 +抴 +抵 +抶 +抹 +抻 +押 +抽 +抾 +抿 +拂 +拃 +拄 +担 +拆 +拇 +拈 +拉 +拊 +拋 +拌 +拍 +拎 +拏 +拐 +拑 +拒 +拓 +拔 +拕 +拖 +拗 +拘 +拙 +拚 +招 +拜 +拝 +拟 +拠 +拡 +拢 +拣 +拤 +拥 +拦 +拧 +拨 +择 +拫 +括 +拭 +拮 +拯 +拱 +拲 +拳 +拴 +拵 +拶 +拷 +拸 +拹 +拺 +拼 +拽 +拾 +拿 +挀 +持 +挂 +挃 +指 +挈 +按 +挋 +挌 +挍 +挎 +挏 +挐 +挑 +挓 +挖 +挙 +挚 +挛 +挝 +挞 +挟 +挠 +挡 +挣 +挤 +挥 +挦 +挨 +挩 +挪 +挫 +挬 +振 +挱 +挲 +挴 +挵 +挶 +挹 +挺 +挻 +挼 +挽 +挾 +挿 +捁 +捂 +捃 +捄 +捅 +捆 +捉 +捊 +捋 +捌 +捍 +捎 +捏 +捐 +捒 +捔 +捕 +捖 +捗 +捘 +捜 +捞 +损 +捡 +换 +捣 +捥 +捦 +捧 +捨 +捩 +捫 +捭 +据 +捯 +捱 +捲 +捵 +捶 +捷 +捺 +捻 +捼 +捽 +掀 +掂 +掃 +掄 +掇 +授 +掉 +掊 +掌 +掎 +掏 +掐 +排 +掔 +掖 +掗 +掘 +掙 +掛 +掜 +掝 +掞 +掟 +掠 +採 +探 +掣 +掤 +接 +控 +推 +掩 +措 +掫 +掬 +掭 +掮 +掯 +掰 +掱 +掲 +掳 +掴 +掷 +掸 +掺 +掻 +掼 +掽 +掾 +揀 +揃 +揄 +揅 +揆 +揉 +揊 +揍 +揎 +描 +提 +揑 +插 +揔 +揕 +揖 +揘 +揚 +換 +揜 +揝 +揟 +揠 +握 +揣 +揤 +揥 +揨 +揩 +揪 +揫 +揭 +揮 +揯 +揱 +揲 +揳 +援 +揵 +揶 +揷 +揸 +揹 +揺 +揽 +揿 +搀 +搁 +搂 +搅 +搆 +搉 +搊 +搋 +搌 +損 +搏 +搐 +搒 +搓 +搔 +搕 +搖 +搗 +搘 +搚 +搛 +搜 +搞 +搟 +搠 +搡 +搢 +搣 +搤 +搥 +搦 +搧 +搨 +搪 +搫 +搬 +搭 +搯 +搰 +搳 +搴 +搵 +搶 +搷 +搹 +携 +搽 +搾 +摀 +摁 +摂 +摃 +摄 +摅 +摆 +摇 +摈 +摊 +摋 +摍 +摎 +摏 +摐 +摑 +摒 +摓 +摔 +摘 +摛 +摜 +摝 +摞 +摟 +摠 +摡 +摦 +摧 +摩 +摭 +摮 +摯 +摰 +摲 +摳 +摴 +摵 +摶 +摸 +摹 +摺 +摻 +摽 +摿 +撂 +撃 +撄 +撅 +撇 +撈 +撊 +撋 +撌 +撏 +撐 +撑 +撒 +撓 +撕 +撖 +撗 +撙 +撚 +撜 +撝 +撞 +撟 +撠 +撢 +撣 +撤 +撥 +撦 +撩 +撫 +撬 +播 +撮 +撰 +撲 +撳 +撵 +撷 +撸 +撹 +撺 +撻 +撼 +撽 +撾 +撿 +擀 +擁 +擂 +擄 +擅 +擇 +擉 +擊 +擋 +操 +擎 +擏 +擐 +擒 +擓 +擔 +擕 +擖 +擗 +擘 +據 +擞 +擠 +擡 +擢 +擣 +擤 +擥 +擦 +擧 +擨 +擩 +擫 +擬 +擭 +擯 +擰 +擱 +擲 +擴 +擷 +擸 +擺 +擻 +擼 +擽 +擾 +擿 +攀 +攄 +攆 +攇 +攉 +攌 +攍 +攏 +攐 +攒 +攓 +攔 +攕 +攖 +攗 +攘 +攙 +攛 +攜 +攝 +攞 +攠 +攡 +攢 +攣 +攤 +攥 +攦 +攩 +攪 +攫 +攬 +攭 +攮 +支 +攲 +攳 +攴 +收 +攷 +攸 +改 +攻 +攽 +放 +政 +敁 +敂 +故 +敆 +效 +敉 +敊 +敌 +敍 +敎 +敏 +救 +敓 +敔 +敕 +敖 +敗 +敘 +教 +敛 +敜 +敝 +敞 +敟 +敢 +散 +敤 +敦 +敧 +敩 +敪 +敫 +敬 +敭 +敯 +数 +敲 +敳 +整 +敵 +敶 +敷 +數 +敹 +敺 +敻 +敾 +敿 +斀 +斁 +斂 +斃 +斄 +文 +斉 +斋 +斌 +斎 +斐 +斑 +斒 +斓 +斔 +斕 +斖 +斗 +料 +斛 +斜 +斝 +斞 +斟 +斠 +斡 +斤 +斥 +斧 +斨 +斩 +斪 +斫 +斬 +断 +斮 +斯 +新 +斲 +斵 +斶 +斷 +方 +斻 +於 +施 +斿 +旁 +旂 +旃 +旄 +旅 +旆 +旉 +旋 +旌 +旍 +旎 +族 +旐 +旒 +旓 +旖 +旗 +旙 +旚 +旛 +旝 +旞 +旟 +无 +旡 +既 +日 +旦 +旧 +旨 +早 +旬 +旭 +旮 +旯 +旰 +旱 +旲 +旳 +旴 +旵 +时 +旷 +旸 +旺 +旻 +旼 +旽 +旾 +旿 +昀 +昂 +昃 +昄 +昆 +昇 +昈 +昉 +昊 +昌 +昍 +明 +昏 +昐 +昒 +易 +昔 +昕 +昙 +昚 +昛 +昜 +昝 +昞 +星 +映 +昡 +昢 +昣 +昤 +春 +昦 +昧 +昨 +昪 +昫 +昬 +昭 +是 +昰 +昱 +昲 +昳 +昴 +昵 +昶 +昺 +昼 +昽 +显 +晁 +時 +晃 +晅 +晇 +晈 +晉 +晊 +晋 +晌 +晏 +晐 +晒 +晓 +晔 +晕 +晖 +晗 +晙 +晚 +晛 +晜 +晝 +晞 +晟 +晡 +晢 +晤 +晥 +晦 +晧 +晨 +晩 +晪 +晫 +晬 +晭 +普 +景 +晰 +晱 +晳 +晴 +晶 +晷 +晸 +智 +晻 +晼 +晾 +暀 +暁 +暂 +暃 +暄 +暅 +暆 +暇 +暈 +暉 +暊 +暋 +暌 +暍 +暎 +暏 +暐 +暑 +暕 +暖 +暗 +暘 +暝 +暟 +暠 +暡 +暢 +暦 +暧 +暨 +暩 +暫 +暮 +暰 +暱 +暲 +暴 +暵 +暶 +暸 +暹 +暻 +暾 +暿 +曀 +曄 +曅 +曆 +曇 +曈 +曉 +曊 +曋 +曌 +曏 +曒 +曔 +曖 +曙 +曚 +曛 +曜 +曝 +曠 +曡 +曣 +曦 +曧 +曨 +曩 +曬 +曭 +曮 +曰 +曲 +曳 +更 +曶 +曷 +書 +曹 +曺 +曼 +曽 +曾 +替 +最 +朁 +會 +朄 +朅 +月 +有 +朊 +朋 +服 +朏 +朐 +朒 +朓 +朔 +朕 +朖 +朗 +朘 +望 +朝 +朞 +期 +朡 +朢 +朣 +朦 +朧 +木 +未 +末 +本 +札 +朮 +术 +朱 +朳 +朴 +朵 +朶 +朸 +朹 +机 +朻 +朼 +朽 +朾 +朿 +杀 +杁 +杂 +权 +杄 +杅 +杆 +杇 +杈 +杉 +杋 +杌 +李 +杏 +材 +村 +杓 +杕 +杖 +杗 +杙 +杜 +杝 +杞 +束 +杠 +条 +杢 +杣 +杤 +来 +杧 +杨 +杩 +杪 +杬 +杭 +杮 +杯 +杰 +東 +杲 +杳 +杴 +杵 +杶 +杷 +杻 +杼 +松 +板 +极 +构 +枅 +枆 +枇 +枉 +枋 +枌 +枍 +枎 +枏 +析 +枒 +枓 +枕 +枖 +林 +枘 +枚 +枛 +果 +枝 +枞 +枠 +枡 +枢 +枣 +枥 +枧 +枨 +枪 +枫 +枭 +枯 +枰 +枱 +枲 +枳 +枴 +枵 +架 +枷 +枸 +枹 +枺 +枻 +枼 +柀 +柁 +柂 +柃 +柄 +柅 +柈 +柉 +柊 +柍 +柎 +柏 +某 +柑 +柒 +染 +柔 +柖 +柘 +柙 +柚 +柜 +柝 +柞 +柟 +柠 +柢 +柣 +柤 +查 +柧 +柩 +柫 +柬 +柮 +柯 +柰 +柱 +柲 +柳 +柴 +柵 +柶 +柷 +柸 +柹 +柺 +査 +柽 +柾 +柿 +栀 +栁 +栂 +栃 +栄 +栅 +标 +栈 +栉 +栊 +栋 +栌 +栎 +栏 +栐 +树 +栒 +栓 +栔 +栖 +栗 +栘 +栚 +栜 +栝 +栞 +栟 +校 +栢 +栨 +栩 +株 +栫 +栭 +栯 +栰 +栱 +栲 +栳 +栴 +栵 +样 +核 +根 +栻 +格 +栽 +栾 +桀 +桁 +桂 +桃 +桄 +桅 +框 +案 +桉 +桊 +桋 +桌 +桎 +桏 +桐 +桑 +桒 +桓 +桔 +桕 +桖 +桙 +桜 +桝 +桟 +桠 +桡 +桢 +档 +桤 +桥 +桦 +桧 +桨 +桩 +桫 +桭 +桮 +桯 +桱 +桲 +桴 +桵 +桶 +桷 +桹 +桺 +桼 +桾 +桿 +梀 +梁 +梂 +梃 +梅 +梆 +梇 +梉 +梌 +梏 +梐 +梒 +梓 +梔 +梗 +梘 +梛 +梜 +條 +梟 +梠 +梡 +梢 +梣 +梦 +梧 +梨 +梩 +梫 +梬 +梭 +梮 +梯 +械 +梱 +梲 +梳 +梴 +梵 +梶 +梼 +梽 +梾 +梿 +检 +棁 +棂 +棃 +棄 +棆 +棉 +棊 +棋 +棌 +棍 +棐 +棒 +棓 +棕 +棖 +棗 +棘 +棚 +棛 +棜 +棟 +棠 +棡 +棣 +棤 +棧 +棨 +棩 +棪 +棫 +棬 +森 +棯 +棰 +棱 +棲 +棳 +棵 +棶 +棷 +棸 +棹 +棺 +棻 +棼 +棽 +椀 +椁 +椄 +椅 +椆 +椇 +椈 +椉 +椋 +椌 +植 +椎 +椏 +椐 +椑 +椒 +椓 +椔 +椗 +椙 +検 +椟 +椠 +椤 +椥 +椪 +椭 +椰 +椲 +椳 +椴 +椵 +椶 +椸 +椹 +椽 +椿 +楀 +楂 +楄 +楅 +楈 +楉 +楊 +楎 +楒 +楓 +楔 +楕 +楖 +楗 +楘 +楙 +楚 +楛 +楝 +楞 +楟 +楠 +楡 +楢 +楣 +楤 +楥 +楦 +楧 +楨 +楩 +楪 +楫 +楬 +業 +楮 +楯 +楰 +楱 +楳 +極 +楶 +楷 +楸 +楹 +楺 +楼 +楽 +楿 +概 +榃 +榄 +榅 +榆 +榇 +榈 +榉 +榊 +榍 +榎 +榑 +榔 +榕 +榖 +榗 +榘 +榙 +榛 +榜 +榞 +榠 +榢 +榣 +榤 +榦 +榧 +榨 +榩 +榪 +榫 +榬 +榭 +榮 +榯 +榰 +榱 +榲 +榴 +榶 +榷 +榹 +榻 +榼 +榽 +榾 +榿 +槀 +槁 +槃 +槄 +槇 +槉 +槊 +構 +槌 +槍 +槎 +槐 +槑 +槓 +槔 +槕 +槗 +様 +槙 +槚 +槛 +槜 +槟 +槠 +槢 +槤 +槥 +槧 +槨 +槩 +槬 +槭 +槮 +槰 +槱 +槲 +槳 +槷 +槸 +槺 +槻 +槼 +槽 +槾 +槿 +樀 +樁 +樂 +樅 +樆 +樊 +樋 +樑 +樓 +樔 +樕 +樗 +樘 +標 +樛 +樝 +樞 +樟 +樠 +模 +樣 +樧 +樨 +権 +横 +樫 +樯 +樱 +樲 +樴 +樵 +樸 +樹 +樺 +樻 +樽 +樾 +樿 +橀 +橁 +橄 +橇 +橈 +橉 +橋 +橐 +橑 +橒 +橓 +橘 +橙 +橚 +橛 +橜 +橝 +橞 +機 +橡 +橢 +橤 +橥 +橦 +橧 +橨 +橪 +橫 +橭 +橱 +橶 +橹 +橼 +橾 +橿 +檀 +檁 +檃 +檄 +檇 +檉 +檊 +檍 +檎 +檐 +檑 +檓 +檔 +檕 +檖 +檗 +檛 +檜 +檝 +檞 +檟 +檠 +檡 +檢 +檣 +檥 +檦 +檨 +檩 +檫 +檬 +檮 +檯 +檳 +檵 +檸 +檹 +檻 +檽 +櫂 +櫃 +櫅 +櫆 +櫈 +櫋 +櫌 +櫐 +櫑 +櫓 +櫙 +櫚 +櫛 +櫜 +櫝 +櫞 +櫟 +櫠 +櫡 +櫥 +櫧 +櫨 +櫪 +櫫 +櫬 +櫰 +櫱 +櫳 +櫸 +櫹 +櫺 +櫻 +櫼 +櫾 +櫿 +欂 +欃 +欄 +欅 +欈 +欉 +權 +欋 +欏 +欐 +欑 +欒 +欖 +欘 +欞 +欠 +次 +欢 +欣 +欤 +欥 +欧 +欨 +欬 +欭 +欯 +欱 +欲 +欳 +欴 +欵 +欶 +欷 +欸 +欹 +欺 +欻 +欽 +款 +欿 +歂 +歃 +歅 +歆 +歇 +歈 +歉 +歊 +歋 +歌 +歍 +歎 +歐 +歓 +歔 +歕 +歙 +歛 +歜 +歟 +歠 +歡 +止 +正 +此 +步 +武 +歧 +歩 +歪 +歭 +歯 +歲 +歳 +歴 +歶 +歷 +歸 +歹 +死 +歼 +歾 +歿 +殀 +殁 +殂 +殃 +殄 +殆 +殇 +殈 +殉 +殊 +残 +殍 +殏 +殑 +殒 +殓 +殔 +殖 +殗 +殘 +殙 +殚 +殛 +殞 +殟 +殠 +殡 +殢 +殣 +殤 +殥 +殦 +殧 +殪 +殫 +殭 +殮 +殯 +殰 +殲 +殳 +殴 +段 +殶 +殷 +殺 +殻 +殼 +殽 +殿 +毀 +毁 +毂 +毃 +毄 +毅 +毆 +毇 +毈 +毉 +毊 +毋 +毌 +母 +毎 +每 +毐 +毒 +毓 +比 +毕 +毖 +毗 +毘 +毙 +毚 +毛 +毞 +毡 +毣 +毤 +毦 +毨 +毪 +毫 +毬 +毯 +毰 +毲 +毳 +毴 +毵 +毸 +毹 +毻 +毼 +毽 +毾 +毿 +氀 +氁 +氂 +氄 +氅 +氆 +氇 +氈 +氊 +氌 +氍 +氏 +氐 +民 +氓 +气 +氕 +氖 +気 +氘 +氙 +氚 +氛 +氟 +氠 +氡 +氢 +氣 +氤 +氦 +氧 +氨 +氩 +氪 +氫 +氬 +氮 +氯 +氰 +氲 +氳 +水 +氶 +氷 +永 +氹 +氻 +氽 +氾 +氿 +汀 +汁 +求 +汃 +汆 +汇 +汈 +汉 +汊 +汋 +汍 +汎 +汏 +汐 +汒 +汔 +汕 +汗 +汙 +汚 +汛 +汜 +汝 +汞 +江 +池 +污 +汤 +汦 +汧 +汨 +汩 +汪 +汫 +汭 +汯 +汰 +汱 +汲 +汳 +汴 +汶 +汸 +汹 +決 +汽 +汾 +沁 +沂 +沃 +沄 +沅 +沆 +沇 +沈 +沉 +沋 +沌 +沍 +沏 +沐 +沒 +沓 +沔 +沕 +沖 +沘 +沙 +沚 +沛 +沜 +沟 +没 +沢 +沣 +沤 +沥 +沦 +沧 +沨 +沩 +沪 +沫 +沬 +沭 +沮 +沯 +沱 +河 +沴 +沶 +沷 +沸 +油 +沺 +治 +沼 +沽 +沾 +沿 +況 +泂 +泃 +泄 +泅 +泆 +泇 +泉 +泊 +泌 +泐 +泒 +泓 +泔 +法 +泖 +泗 +泙 +泚 +泛 +泜 +泝 +泞 +泠 +泡 +波 +泣 +泥 +泧 +注 +泩 +泪 +泫 +泬 +泭 +泮 +泯 +泰 +泱 +泲 +泳 +泵 +泷 +泸 +泺 +泻 +泼 +泽 +泾 +洀 +洁 +洄 +洇 +洈 +洊 +洋 +洌 +洍 +洎 +洑 +洒 +洓 +洗 +洘 +洙 +洚 +洛 +洞 +洟 +洢 +洣 +洤 +津 +洧 +洨 +洩 +洪 +洫 +洭 +洮 +洱 +洲 +洳 +洴 +洵 +洶 +洸 +洹 +洺 +活 +洼 +洽 +派 +洿 +流 +浃 +浄 +浅 +浆 +浇 +浈 +浉 +浊 +测 +浍 +济 +浏 +浐 +浑 +浒 +浓 +浔 +浕 +浘 +浙 +浚 +浛 +浜 +浞 +浟 +浠 +浡 +浢 +浣 +浤 +浥 +浦 +浧 +浩 +浪 +浬 +浭 +浮 +浯 +浰 +浲 +浴 +浵 +浶 +海 +浸 +浹 +浺 +浼 +浿 +涂 +涄 +涅 +涆 +涇 +消 +涉 +涊 +涌 +涍 +涎 +涐 +涑 +涒 +涓 +涔 +涕 +涖 +涗 +涘 +涙 +涛 +涝 +涞 +涟 +涠 +涡 +涢 +涣 +涤 +润 +涧 +涨 +涩 +涪 +涫 +涬 +涮 +涯 +液 +涳 +涴 +涵 +涷 +涸 +涼 +涽 +涾 +涿 +淀 +淄 +淅 +淆 +淇 +淈 +淊 +淋 +淌 +淍 +淎 +淏 +淑 +淒 +淓 +淔 +淖 +淘 +淙 +淚 +淛 +淜 +淝 +淞 +淟 +淠 +淡 +淢 +淤 +淥 +淦 +淨 +淩 +淪 +淫 +淬 +淭 +淮 +淯 +淰 +深 +淳 +淴 +淵 +淶 +混 +淸 +淹 +淺 +添 +淼 +淽 +渀 +渃 +清 +渇 +済 +渉 +渊 +渋 +渌 +渍 +渎 +渐 +渑 +渓 +渔 +渕 +渗 +渙 +渚 +減 +渜 +渝 +渟 +渠 +渡 +渢 +渣 +渤 +渥 +渦 +渨 +温 +渫 +測 +渭 +渮 +港 +渰 +渱 +渲 +渳 +渴 +游 +渹 +渺 +渻 +渼 +渽 +渾 +渿 +湀 +湁 +湃 +湄 +湅 +湆 +湇 +湉 +湊 +湋 +湍 +湎 +湑 +湓 +湔 +湖 +湘 +湛 +湜 +湝 +湞 +湟 +湠 +湡 +湢 +湣 +湥 +湧 +湨 +湩 +湫 +湮 +湯 +湱 +湲 +湳 +湴 +湻 +湼 +湾 +湿 +満 +溁 +溃 +溅 +溆 +溇 +溈 +溉 +溋 +溍 +溎 +溏 +源 +溓 +溔 +準 +溘 +溙 +溚 +溛 +溜 +溝 +溞 +溟 +溠 +溢 +溥 +溦 +溧 +溪 +溫 +溮 +溯 +溰 +溱 +溲 +溳 +溴 +溵 +溶 +溷 +溹 +溺 +溻 +溼 +溽 +溾 +滀 +滁 +滂 +滃 +滄 +滅 +滆 +滇 +滈 +滉 +滋 +滌 +滍 +滎 +滏 +滑 +滒 +滓 +滔 +滕 +滖 +滗 +滘 +滙 +滚 +滛 +滜 +滝 +滞 +滟 +滠 +满 +滢 +滤 +滥 +滦 +滧 +滨 +滩 +滪 +滫 +滬 +滭 +滮 +滯 +滱 +滲 +滴 +滵 +滷 +滸 +滹 +滻 +滽 +滾 +滿 +漁 +漂 +漃 +漅 +漆 +漇 +漈 +漉 +漊 +漋 +漎 +漏 +漑 +漒 +漓 +演 +漕 +漖 +漘 +漙 +漚 +漠 +漢 +漣 +漤 +漥 +漦 +漧 +漩 +漪 +漫 +漬 +漭 +漮 +漯 +漰 +漱 +漲 +漳 +漴 +漵 +漶 +漷 +漸 +漹 +漻 +漼 +漾 +漿 +潀 +潁 +潃 +潄 +潅 +潆 +潇 +潋 +潍 +潎 +潏 +潐 +潑 +潒 +潔 +潕 +潖 +潗 +潘 +潙 +潚 +潛 +潜 +潝 +潞 +潟 +潠 +潢 +潤 +潦 +潩 +潬 +潭 +潮 +潯 +潰 +潲 +潳 +潴 +潵 +潶 +潷 +潸 +潺 +潼 +潽 +潾 +潿 +澀 +澁 +澂 +澄 +澅 +澆 +澇 +澈 +澉 +澋 +澌 +澍 +澎 +澐 +澒 +澓 +澔 +澖 +澗 +澛 +澜 +澞 +澠 +澡 +澣 +澤 +澥 +澦 +澧 +澨 +澩 +澪 +澫 +澭 +澮 +澯 +澱 +澳 +澴 +澶 +澹 +澻 +澼 +澽 +激 +濁 +濂 +濃 +濄 +濆 +濇 +濈 +濉 +濊 +濋 +濌 +濎 +濑 +濒 +濔 +濕 +濘 +濙 +濛 +濜 +濞 +濟 +濠 +濡 +濣 +濤 +濦 +濧 +濩 +濫 +濬 +濭 +濮 +濯 +濰 +濱 +濲 +濴 +濶 +濺 +濻 +濼 +濾 +濿 +瀀 +瀁 +瀄 +瀅 +瀆 +瀇 +瀉 +瀋 +瀌 +瀍 +瀎 +瀏 +瀑 +瀔 +瀕 +瀖 +瀘 +瀙 +瀚 +瀛 +瀝 +瀞 +瀟 +瀠 +瀡 +瀢 +瀣 +瀦 +瀧 +瀨 +瀩 +瀫 +瀬 +瀯 +瀰 +瀱 +瀲 +瀴 +瀵 +瀶 +瀷 +瀸 +瀹 +瀺 +瀼 +瀾 +瀿 +灂 +灃 +灄 +灈 +灉 +灊 +灋 +灌 +灏 +灑 +灕 +灖 +灗 +灘 +灛 +灝 +灞 +灟 +灡 +灣 +灤 +灧 +灨 +灩 +灪 +火 +灭 +灯 +灰 +灴 +灵 +灶 +灸 +灼 +災 +灾 +灿 +炀 +炁 +炅 +炆 +炉 +炊 +炌 +炎 +炒 +炔 +炕 +炖 +炘 +炙 +炜 +炝 +炟 +炣 +炤 +炫 +炬 +炭 +炮 +炯 +炰 +炱 +炲 +炳 +炷 +炸 +点 +為 +炻 +炼 +炽 +炾 +烀 +烁 +烂 +烃 +烈 +烉 +烊 +烋 +烏 +烑 +烒 +烓 +烔 +烖 +烘 +烙 +烛 +烜 +烝 +烟 +烠 +烤 +烦 +烧 +烨 +烩 +烫 +烬 +热 +烯 +烰 +烱 +烴 +烶 +烷 +烹 +烺 +烻 +烽 +焃 +焄 +焆 +焉 +焊 +焌 +焍 +焐 +焓 +焔 +焕 +焖 +焗 +焘 +焙 +焚 +焜 +焞 +焠 +無 +焣 +焦 +焮 +焯 +焰 +焱 +焴 +然 +焻 +焼 +焿 +煁 +煃 +煅 +煆 +煇 +煉 +煊 +煋 +煌 +煎 +煐 +煑 +煒 +煓 +煔 +煕 +煖 +煗 +煙 +煚 +煜 +煝 +煞 +煟 +煠 +煢 +煣 +煤 +煥 +煦 +照 +煨 +煩 +煬 +煮 +煲 +煳 +煴 +煵 +煶 +煸 +煺 +煽 +熀 +熂 +熄 +熅 +熇 +熈 +熉 +熊 +熏 +熐 +熒 +熔 +熖 +熗 +熘 +熙 +熚 +熛 +熜 +熟 +熠 +熤 +熥 +熨 +熬 +熯 +熰 +熱 +熲 +熳 +熵 +熸 +熹 +熺 +熻 +熼 +熾 +熿 +燀 +燁 +燂 +燃 +燄 +燅 +燈 +燉 +燊 +燋 +燎 +燏 +燐 +燒 +燔 +燕 +燖 +燗 +燘 +燙 +燚 +燜 +燝 +營 +燠 +燡 +燥 +燦 +燧 +燫 +燬 +燭 +燮 +燴 +燹 +燻 +燼 +燾 +燿 +爀 +爁 +爂 +爆 +爇 +爊 +爌 +爍 +爐 +爓 +爔 +爕 +爚 +爛 +爝 +爞 +爟 +爢 +爣 +爨 +爪 +爬 +爭 +爯 +爰 +爱 +爲 +爵 +父 +爷 +爸 +爹 +爺 +爻 +爼 +爽 +爾 +爿 +牀 +牁 +牂 +牄 +牆 +片 +版 +牉 +牋 +牌 +牍 +牎 +牏 +牒 +牓 +牕 +牖 +牘 +牙 +牚 +牛 +牝 +牟 +牠 +牡 +牢 +牣 +牤 +牥 +牦 +牧 +物 +牬 +牮 +牯 +牰 +牲 +牴 +牵 +牷 +牸 +特 +牺 +牻 +牼 +牽 +牾 +牿 +犀 +犁 +犂 +犄 +犅 +犆 +犇 +犈 +犉 +犊 +犋 +犌 +犍 +犎 +犏 +犐 +犑 +犒 +犓 +犕 +犖 +犗 +犘 +犚 +犛 +犝 +犞 +犟 +犠 +犢 +犣 +犤 +犥 +犦 +犧 +犨 +犩 +犪 +犬 +犮 +犯 +犰 +犴 +犵 +状 +犷 +犸 +犹 +犽 +犿 +狀 +狁 +狂 +狃 +狄 +狆 +狈 +狉 +狊 +狋 +狌 +狍 +狎 +狐 +狑 +狒 +狓 +狔 +狖 +狗 +狘 +狙 +狚 +狛 +狜 +狝 +狞 +狟 +狠 +狡 +狣 +狤 +狥 +狦 +狨 +狩 +狪 +狫 +独 +狭 +狮 +狯 +狰 +狱 +狲 +狳 +狴 +狶 +狷 +狸 +狹 +狺 +狻 +狼 +狽 +狾 +狿 +猀 +猁 +猂 +猃 +猄 +猇 +猈 +猊 +猋 +猎 +猏 +猑 +猒 +猓 +猕 +猖 +猗 +猘 +猙 +猛 +猜 +猝 +猞 +猟 +猡 +猢 +猣 +猥 +猦 +猧 +猨 +猩 +猪 +猫 +猬 +猭 +献 +猯 +猰 +猱 +猲 +猳 +猴 +猵 +猶 +猷 +猹 +猺 +猻 +猼 +猾 +猿 +獀 +獁 +獂 +獃 +獄 +獅 +獇 +獊 +獋 +獌 +獍 +獎 +獏 +獐 +獑 +獒 +獗 +獘 +獛 +獝 +獞 +獟 +獠 +獡 +獢 +獣 +獥 +獦 +獧 +獨 +獩 +獪 +獫 +獬 +獭 +獮 +獯 +獰 +獲 +獳 +獴 +獵 +獶 +獷 +獸 +獺 +獻 +獼 +獽 +獾 +獿 +玀 +玁 +玂 +玃 +玄 +玅 +玆 +率 +玈 +玉 +玊 +王 +玎 +玏 +玑 +玒 +玓 +玔 +玕 +玖 +玗 +玘 +玙 +玚 +玛 +玞 +玟 +玠 +玡 +玢 +玤 +玥 +玦 +玧 +玨 +玩 +玫 +玭 +玮 +环 +现 +玱 +玲 +玳 +玶 +玷 +玹 +玺 +玻 +玼 +玾 +玿 +珀 +珂 +珅 +珇 +珈 +珉 +珊 +珋 +珌 +珍 +珎 +珏 +珐 +珑 +珒 +珓 +珕 +珖 +珙 +珛 +珝 +珞 +珠 +珡 +珢 +珣 +珤 +珥 +珦 +珧 +珩 +珪 +珫 +班 +珮 +珰 +珲 +珵 +珶 +珷 +珸 +珹 +珺 +珽 +現 +琀 +琁 +球 +琄 +琅 +理 +琇 +琈 +琉 +琊 +琍 +琎 +琏 +琐 +琔 +琖 +琚 +琛 +琟 +琡 +琢 +琤 +琥 +琦 +琨 +琪 +琫 +琬 +琭 +琮 +琯 +琰 +琱 +琲 +琳 +琴 +琵 +琶 +琹 +琺 +琼 +琿 +瑀 +瑁 +瑂 +瑃 +瑄 +瑅 +瑆 +瑇 +瑈 +瑊 +瑋 +瑑 +瑒 +瑓 +瑔 +瑕 +瑖 +瑗 +瑙 +瑚 +瑛 +瑜 +瑝 +瑞 +瑟 +瑠 +瑢 +瑣 +瑤 +瑥 +瑧 +瑨 +瑩 +瑪 +瑬 +瑭 +瑯 +瑰 +瑱 +瑲 +瑳 +瑴 +瑵 +瑶 +瑷 +瑺 +瑽 +瑾 +瑿 +璀 +璁 +璃 +璄 +璅 +璆 +璇 +璈 +璉 +璊 +璋 +璌 +璎 +璐 +璒 +璕 +璗 +璘 +璙 +璚 +璜 +璞 +璟 +璠 +璡 +璢 +璣 +璥 +璦 +璧 +璨 +璩 +璪 +璫 +璬 +璮 +環 +璱 +璲 +璵 +璸 +璹 +璺 +璽 +璿 +瓀 +瓁 +瓅 +瓈 +瓊 +瓋 +瓌 +瓏 +瓑 +瓒 +瓔 +瓖 +瓘 +瓚 +瓛 +瓜 +瓝 +瓞 +瓟 +瓠 +瓡 +瓢 +瓣 +瓤 +瓥 +瓦 +瓨 +瓩 +瓬 +瓮 +瓯 +瓴 +瓵 +瓶 +瓷 +瓻 +瓽 +瓾 +瓿 +甀 +甂 +甃 +甄 +甈 +甋 +甌 +甍 +甏 +甐 +甑 +甒 +甓 +甔 +甕 +甖 +甗 +甘 +甙 +甚 +甜 +甝 +甞 +生 +甡 +產 +産 +甥 +甦 +用 +甩 +甪 +甫 +甬 +甭 +甮 +甯 +田 +由 +甲 +申 +电 +男 +甸 +甹 +町 +画 +甽 +甾 +甿 +畀 +畅 +畇 +畈 +畊 +畋 +界 +畎 +畏 +畐 +畑 +畔 +畖 +留 +畚 +畛 +畜 +畝 +畟 +畠 +畢 +畣 +畤 +略 +畦 +畧 +番 +畫 +畬 +畯 +異 +畱 +畲 +畳 +畴 +畵 +當 +畷 +畸 +畹 +畺 +畽 +畿 +疀 +疁 +疃 +疆 +疇 +疊 +疋 +疌 +疍 +疎 +疏 +疐 +疑 +疒 +疔 +疕 +疖 +疗 +疘 +疙 +疚 +疝 +疟 +疠 +疡 +疢 +疣 +疤 +疥 +疧 +疫 +疬 +疭 +疮 +疯 +疰 +疱 +疲 +疳 +疴 +疵 +疸 +疹 +疻 +疼 +疽 +疾 +疿 +痀 +痁 +痂 +痃 +痄 +病 +症 +痈 +痉 +痊 +痋 +痌 +痍 +痎 +痏 +痐 +痑 +痒 +痓 +痔 +痕 +痗 +痘 +痙 +痚 +痛 +痝 +痞 +痟 +痠 +痡 +痢 +痣 +痤 +痦 +痧 +痨 +痩 +痪 +痫 +痯 +痰 +痱 +痲 +痳 +痴 +痷 +痸 +痹 +痺 +痻 +痼 +痾 +痿 +瘀 +瘁 +瘃 +瘅 +瘆 +瘈 +瘉 +瘊 +瘋 +瘌 +瘍 +瘏 +瘐 +瘑 +瘓 +瘕 +瘖 +瘗 +瘘 +瘙 +瘛 +瘜 +瘝 +瘞 +瘟 +瘠 +瘡 +瘢 +瘣 +瘤 +瘥 +瘦 +瘧 +瘩 +瘪 +瘫 +瘭 +瘮 +瘯 +瘰 +瘱 +瘲 +瘳 +瘴 +瘵 +瘸 +瘺 +瘻 +瘼 +瘽 +瘾 +瘿 +癀 +療 +癃 +癄 +癅 +癆 +癇 +癈 +癉 +癌 +癍 +癐 +癒 +癓 +癔 +癖 +癗 +癘 +癙 +癜 +癞 +癟 +癠 +癡 +癢 +癣 +癤 +癥 +癧 +癩 +癪 +癫 +癬 +癭 +癮 +癯 +癰 +癱 +癲 +癵 +癸 +癹 +発 +登 +發 +白 +百 +癿 +皁 +皂 +的 +皆 +皇 +皈 +皊 +皋 +皎 +皏 +皐 +皑 +皓 +皕 +皖 +皙 +皚 +皛 +皜 +皝 +皞 +皤 +皦 +皫 +皭 +皮 +皯 +皰 +皱 +皲 +皴 +皵 +皷 +皸 +皺 +皻 +皽 +皾 +皿 +盂 +盃 +盄 +盅 +盆 +盇 +盈 +盉 +益 +盋 +盌 +盍 +盎 +盏 +盐 +监 +盒 +盓 +盔 +盖 +盗 +盘 +盛 +盜 +盝 +盞 +盟 +盡 +監 +盤 +盥 +盦 +盧 +盨 +盩 +盪 +盫 +盬 +盭 +目 +盯 +盱 +盲 +盳 +直 +盷 +相 +盹 +盺 +盻 +盼 +盾 +眀 +省 +眃 +眄 +眅 +眇 +眈 +眉 +眊 +看 +県 +眍 +眐 +眑 +眒 +眓 +眕 +眙 +眚 +眛 +眜 +眝 +眞 +真 +眠 +眢 +眣 +眥 +眦 +眨 +眩 +眬 +眭 +眯 +眱 +眲 +眳 +眴 +眵 +眶 +眷 +眸 +眹 +眺 +眼 +眽 +眾 +着 +睁 +睃 +睄 +睅 +睆 +睇 +睊 +睋 +睌 +睍 +睎 +睏 +睐 +睑 +睒 +睔 +睕 +睖 +睚 +睛 +睜 +睞 +睟 +睠 +睡 +睢 +督 +睥 +睦 +睧 +睨 +睩 +睪 +睫 +睬 +睭 +睮 +睯 +睹 +睺 +睼 +睽 +睾 +睿 +瞀 +瞁 +瞂 +瞄 +瞅 +瞇 +瞉 +瞋 +瞌 +瞍 +瞎 +瞏 +瞑 +瞒 +瞓 +瞖 +瞘 +瞚 +瞛 +瞜 +瞝 +瞞 +瞟 +瞠 +瞡 +瞢 +瞥 +瞧 +瞩 +瞪 +瞫 +瞬 +瞭 +瞰 +瞲 +瞳 +瞴 +瞵 +瞶 +瞷 +瞻 +瞼 +瞽 +瞿 +矁 +矂 +矇 +矉 +矊 +矌 +矍 +矎 +矏 +矐 +矓 +矔 +矕 +矗 +矘 +矙 +矚 +矛 +矜 +矞 +矠 +矢 +矣 +知 +矧 +矩 +矫 +矬 +短 +矮 +矯 +矰 +矱 +矲 +石 +矴 +矶 +矸 +矹 +矺 +矻 +矼 +矽 +矾 +矿 +砀 +码 +砂 +砄 +砅 +砆 +砉 +砋 +砌 +砍 +砎 +砏 +砐 +砑 +砒 +研 +砕 +砖 +砗 +砘 +砚 +砜 +砝 +砟 +砠 +砢 +砣 +砥 +砦 +砧 +砨 +砩 +砫 +砬 +砭 +砮 +砯 +砰 +砲 +砳 +破 +砵 +砷 +砸 +砹 +砺 +砻 +砼 +砾 +础 +硁 +硂 +硃 +硅 +硇 +硈 +硉 +硊 +硌 +硍 +硎 +硏 +硐 +硒 +硓 +硔 +硕 +硖 +硗 +硙 +硚 +硜 +硝 +硠 +硤 +硥 +硨 +硩 +硪 +硫 +硬 +硭 +确 +硯 +硰 +硱 +硼 +硾 +硿 +碁 +碃 +碄 +碅 +碆 +碇 +碈 +碉 +碌 +碍 +碎 +碏 +碑 +碓 +碔 +碕 +碗 +碘 +碚 +碛 +碜 +碞 +碟 +碡 +碣 +碥 +碧 +碨 +碩 +碪 +碫 +碭 +碰 +碱 +碲 +碳 +碴 +碶 +碸 +碹 +確 +碻 +碼 +碽 +碾 +磁 +磃 +磅 +磈 +磉 +磊 +磋 +磌 +磍 +磎 +磏 +磐 +磑 +磔 +磕 +磘 +磙 +磚 +磛 +磜 +磝 +磞 +磟 +磡 +磣 +磥 +磧 +磨 +磩 +磪 +磬 +磯 +磱 +磲 +磳 +磴 +磵 +磷 +磹 +磺 +磻 +磼 +磽 +磾 +磿 +礁 +礂 +礄 +礅 +礉 +礌 +礎 +礐 +礑 +礒 +礓 +礔 +礙 +礛 +礜 +礝 +礞 +礠 +礣 +礥 +礦 +礧 +礨 +礪 +礫 +礬 +礭 +礮 +礱 +礴 +礵 +示 +礼 +礽 +社 +礿 +祀 +祁 +祂 +祃 +祅 +祆 +祇 +祈 +祉 +祊 +祋 +祌 +祎 +祏 +祐 +祑 +祒 +祓 +祔 +祕 +祖 +祗 +祙 +祚 +祛 +祜 +祝 +神 +祟 +祠 +祡 +祢 +祣 +祤 +祥 +祧 +票 +祩 +祪 +祫 +祭 +祯 +祲 +祳 +祴 +祷 +祸 +祹 +祺 +祼 +祾 +祿 +禀 +禁 +禂 +禃 +禄 +禅 +禇 +禊 +禋 +禍 +禎 +福 +禑 +禒 +禓 +禔 +禕 +禖 +禗 +禘 +禚 +禛 +禜 +禟 +禠 +禡 +禤 +禦 +禧 +禨 +禩 +禪 +禫 +禬 +禭 +禮 +禰 +禱 +禳 +禴 +禵 +禷 +禸 +禹 +禺 +离 +禼 +禽 +禾 +禿 +秀 +私 +秃 +秅 +秆 +秈 +秉 +秊 +秋 +种 +秎 +秏 +科 +秒 +秔 +秕 +秖 +秘 +租 +秠 +秣 +秤 +秦 +秧 +秩 +秪 +秫 +秬 +秭 +秮 +积 +称 +秳 +秶 +秸 +秺 +移 +秽 +秾 +稀 +稂 +稃 +稅 +稆 +稈 +稉 +稊 +程 +稌 +稍 +税 +稑 +稒 +稔 +稗 +稘 +稙 +稚 +稜 +稞 +稟 +稠 +稣 +稫 +稬 +稭 +種 +稯 +稰 +稱 +稲 +稳 +稷 +稹 +稺 +稻 +稼 +稽 +稾 +稿 +穀 +穂 +穄 +穅 +穆 +穇 +穈 +穉 +穊 +穋 +穌 +積 +穎 +穏 +穑 +穖 +穗 +穙 +穛 +穜 +穟 +穠 +穡 +穢 +穣 +穤 +穧 +穨 +穩 +穫 +穬 +穭 +穮 +穰 +穱 +穴 +穵 +究 +穷 +穸 +穹 +空 +穽 +穾 +穿 +窀 +突 +窃 +窄 +窅 +窆 +窈 +窉 +窊 +窋 +窌 +窍 +窎 +窏 +窐 +窑 +窒 +窓 +窔 +窕 +窖 +窗 +窘 +窙 +窜 +窝 +窞 +窟 +窠 +窢 +窣 +窥 +窦 +窨 +窩 +窪 +窫 +窬 +窭 +窮 +窯 +窰 +窱 +窲 +窳 +窴 +窵 +窶 +窸 +窺 +窻 +窾 +窿 +竀 +竁 +竃 +竄 +竅 +竇 +竈 +竊 +立 +竑 +竖 +竘 +站 +竚 +竜 +竝 +竞 +竟 +章 +竢 +竣 +童 +竦 +竩 +竪 +竫 +竭 +端 +竴 +競 +竷 +竹 +竺 +竻 +竽 +竿 +笃 +笄 +笅 +笆 +笈 +笊 +笋 +笏 +笐 +笑 +笓 +笔 +笕 +笘 +笙 +笛 +笝 +笞 +笠 +笢 +笤 +笥 +符 +笨 +笩 +笪 +笫 +第 +笭 +笮 +笯 +笰 +笱 +笲 +笳 +笴 +笵 +笸 +笹 +笺 +笻 +笼 +笾 +筀 +筄 +筅 +筆 +筇 +筈 +等 +筊 +筋 +筌 +筍 +筏 +筐 +筑 +筒 +答 +策 +筘 +筚 +筛 +筜 +筝 +筞 +筠 +筡 +筢 +筤 +筥 +筦 +筧 +筩 +筬 +筭 +筮 +筯 +筰 +筱 +筲 +筳 +筴 +筵 +筶 +筷 +筹 +筻 +筼 +签 +简 +箄 +箅 +箆 +箇 +箈 +箊 +箋 +箌 +箍 +箎 +箏 +箐 +箑 +箒 +箓 +箔 +箕 +箖 +算 +箘 +箙 +箛 +箜 +箝 +箠 +管 +箢 +箦 +箧 +箨 +箩 +箪 +箫 +箬 +箭 +箯 +箱 +箴 +箷 +箸 +箹 +箾 +節 +篁 +範 +篆 +篇 +築 +篊 +篋 +篌 +篎 +篑 +篓 +篔 +篕 +篙 +篚 +篛 +篝 +篞 +篠 +篡 +篣 +篤 +篥 +篦 +篧 +篨 +篩 +篪 +篭 +篮 +篯 +篱 +篲 +篳 +篴 +篷 +篸 +篹 +篻 +篼 +篽 +篾 +篿 +簀 +簁 +簂 +簃 +簅 +簇 +簉 +簋 +簌 +簍 +簎 +簏 +簑 +簒 +簕 +簖 +簗 +簙 +簜 +簝 +簞 +簟 +簠 +簡 +簢 +簣 +簥 +簦 +簧 +簨 +簩 +簪 +簫 +簬 +簭 +簮 +簰 +簳 +簷 +簸 +簹 +簺 +簻 +簼 +簽 +簾 +簿 +籀 +籁 +籃 +籈 +籉 +籊 +籌 +籍 +籐 +籔 +籗 +籙 +籛 +籜 +籝 +籟 +籠 +籣 +籤 +籥 +籦 +籧 +籩 +籪 +籬 +籮 +籯 +籲 +米 +籴 +籸 +籹 +籺 +类 +籼 +籽 +籾 +粂 +粃 +粄 +粇 +粉 +粊 +粋 +粍 +粑 +粒 +粔 +粕 +粗 +粘 +粛 +粜 +粝 +粞 +粟 +粢 +粤 +粥 +粦 +粧 +粩 +粪 +粮 +粱 +粲 +粳 +粵 +粹 +粺 +粻 +粼 +粽 +精 +粿 +糀 +糁 +糅 +糇 +糈 +糉 +糊 +糌 +糍 +糎 +糒 +糔 +糕 +糖 +糗 +糙 +糜 +糝 +糞 +糟 +糠 +糢 +糧 +糨 +糪 +糬 +糯 +糰 +糱 +糲 +糴 +糵 +糶 +糷 +糸 +糹 +糺 +系 +糾 +紀 +紂 +紃 +約 +紅 +紆 +紇 +紈 +紉 +紊 +紋 +納 +紎 +紐 +紑 +紒 +紓 +純 +紕 +紖 +紗 +紘 +紙 +級 +紛 +紜 +紝 +紞 +紟 +素 +紡 +索 +紥 +紧 +紩 +紫 +紬 +紮 +累 +細 +紱 +紲 +紳 +紵 +紶 +紸 +紹 +紺 +紼 +紽 +紾 +紿 +絀 +絁 +終 +絃 +組 +絅 +絆 +絇 +経 +絎 +絏 +結 +絓 +絕 +絖 +絘 +絛 +絜 +絝 +絞 +絡 +絢 +絣 +給 +絧 +絨 +絪 +絫 +絭 +絮 +絯 +絰 +統 +絲 +絳 +絵 +絶 +絷 +絹 +絺 +絻 +絼 +絽 +絿 +綀 +綁 +綃 +綄 +綅 +綆 +綈 +綉 +綌 +綍 +綎 +綏 +綑 +經 +綔 +綖 +継 +続 +綜 +綝 +綞 +綟 +綠 +綢 +綣 +綦 +綧 +綪 +綫 +綬 +維 +綮 +綯 +綰 +綱 +網 +綳 +綴 +綵 +綷 +綸 +綹 +綺 +綻 +綼 +綽 +綾 +綿 +緀 +緁 +緂 +緃 +緄 +緅 +緆 +緇 +緈 +緊 +緋 +緌 +緎 +総 +緐 +緑 +緒 +緔 +緖 +緗 +緘 +緙 +線 +緛 +緜 +緝 +緞 +締 +緡 +緣 +緤 +緥 +緦 +緧 +編 +緩 +緪 +緬 +緯 +緰 +緱 +緲 +緳 +練 +緵 +緶 +緷 +緹 +緺 +緻 +縁 +縂 +縃 +縄 +縅 +縈 +縉 +縊 +縋 +縌 +縎 +縏 +縐 +縑 +縒 +縓 +縕 +縗 +縚 +縛 +縜 +縝 +縞 +縟 +縠 +縡 +縢 +縣 +縤 +縦 +縧 +縩 +縪 +縫 +縭 +縮 +縯 +縰 +縱 +縲 +縳 +縴 +縵 +縶 +縷 +縸 +縹 +縻 +縼 +總 +績 +縿 +繀 +繁 +繂 +繃 +繄 +繅 +繆 +繇 +繈 +繉 +繊 +繋 +繍 +繐 +繑 +繒 +織 +繕 +繖 +繘 +繙 +繚 +繜 +繝 +繞 +繟 +繠 +繡 +繢 +繣 +繦 +繧 +繩 +繪 +繫 +繭 +繮 +繯 +繰 +繲 +繳 +繴 +繵 +繶 +繷 +繸 +繹 +繺 +繻 +繼 +繽 +繾 +纀 +纁 +纂 +纆 +纇 +纈 +纊 +纋 +續 +纍 +纏 +纐 +纑 +纒 +纓 +纔 +纕 +纖 +纗 +纘 +纚 +纛 +纜 +纠 +纡 +红 +纣 +纤 +纥 +约 +级 +纨 +纩 +纪 +纫 +纬 +纭 +纮 +纯 +纰 +纱 +纲 +纳 +纴 +纵 +纶 +纷 +纸 +纹 +纺 +纻 +纼 +纽 +纾 +线 +绀 +绁 +绂 +练 +组 +绅 +细 +织 +终 +绉 +绊 +绋 +绌 +绍 +绎 +经 +绐 +绑 +绒 +结 +绔 +绕 +绖 +绗 +绘 +给 +绚 +绛 +络 +绝 +绞 +统 +绠 +绡 +绢 +绣 +绤 +绥 +绦 +继 +绨 +绩 +绪 +绫 +续 +绮 +绯 +绰 +绱 +绲 +绳 +维 +绵 +绶 +绷 +绸 +绹 +绺 +绻 +综 +绽 +绾 +绿 +缀 +缁 +缂 +缃 +缄 +缅 +缆 +缇 +缈 +缉 +缊 +缌 +缎 +缐 +缑 +缒 +缓 +缔 +缕 +编 +缗 +缘 +缙 +缚 +缛 +缜 +缝 +缞 +缟 +缠 +缡 +缢 +缣 +缤 +缥 +缦 +缧 +缨 +缩 +缪 +缫 +缬 +缭 +缮 +缯 +缰 +缱 +缲 +缳 +缴 +缵 +缶 +缸 +缹 +缺 +缽 +缾 +缿 +罂 +罃 +罄 +罅 +罇 +罈 +罉 +罊 +罋 +罌 +罍 +罎 +罏 +罐 +网 +罔 +罕 +罗 +罘 +罚 +罛 +罜 +罝 +罞 +罟 +罠 +罡 +罢 +罣 +罥 +罦 +罧 +罨 +罩 +罪 +罫 +罬 +罭 +置 +罰 +罱 +署 +罳 +罴 +罵 +罶 +罷 +罹 +罺 +罻 +罼 +罽 +罾 +罿 +羁 +羂 +羃 +羅 +羆 +羇 +羈 +羉 +羊 +羋 +羌 +羍 +美 +羑 +羒 +羓 +羔 +羕 +羖 +羗 +羙 +羚 +羛 +羜 +羝 +羞 +羟 +羠 +羡 +羢 +羣 +群 +羥 +羦 +羧 +羨 +義 +羬 +羭 +羯 +羰 +羱 +羲 +羳 +羴 +羵 +羶 +羷 +羸 +羹 +羺 +羼 +羽 +羾 +羿 +翀 +翁 +翂 +翃 +翄 +翅 +翇 +翈 +翊 +翋 +翌 +翍 +翎 +翏 +翐 +翑 +習 +翔 +翕 +翘 +翙 +翚 +翛 +翜 +翟 +翠 +翡 +翢 +翣 +翥 +翦 +翨 +翩 +翪 +翫 +翬 +翭 +翮 +翯 +翰 +翱 +翲 +翳 +翴 +翷 +翹 +翺 +翻 +翼 +翽 +翾 +翿 +耀 +老 +考 +耄 +者 +耆 +耇 +耋 +而 +耍 +耎 +耏 +耐 +耑 +耒 +耔 +耕 +耖 +耗 +耘 +耙 +耜 +耞 +耟 +耠 +耡 +耢 +耤 +耥 +耦 +耧 +耨 +耩 +耪 +耬 +耮 +耰 +耱 +耳 +耴 +耵 +耶 +耷 +耸 +耹 +耻 +耽 +耾 +耿 +聂 +聃 +聆 +聇 +聈 +聊 +聋 +职 +聍 +聏 +聑 +聒 +联 +聖 +聘 +聚 +聝 +聞 +聟 +聡 +聨 +聩 +聪 +聯 +聰 +聱 +聲 +聳 +聴 +聵 +聶 +職 +聹 +聽 +聾 +聿 +肂 +肃 +肄 +肅 +肆 +肇 +肉 +肋 +肌 +肎 +肏 +肐 +肒 +肓 +肕 +肖 +肘 +肙 +肚 +肛 +肜 +肝 +肟 +肠 +股 +肢 +肣 +肤 +肥 +肧 +肩 +肪 +肫 +肭 +肮 +肯 +肱 +育 +肴 +肵 +肷 +肸 +肹 +肺 +肼 +肽 +肾 +肿 +胀 +胁 +胂 +胃 +胄 +胅 +胆 +胇 +胈 +胉 +胊 +背 +胍 +胎 +胏 +胐 +胑 +胔 +胕 +胖 +胗 +胘 +胙 +胚 +胛 +胜 +胝 +胞 +胠 +胡 +胣 +胤 +胥 +胧 +胨 +胩 +胪 +胫 +胬 +胭 +胯 +胰 +胱 +胲 +胳 +胴 +胵 +胶 +胷 +胸 +胹 +胺 +胻 +胼 +能 +胾 +脀 +脁 +脂 +脃 +脅 +脆 +脇 +脈 +脉 +脊 +脍 +脎 +脏 +脐 +脑 +脒 +脓 +脔 +脕 +脖 +脗 +脘 +脙 +脚 +脛 +脞 +脟 +脡 +脣 +脤 +脥 +脧 +脩 +脫 +脬 +脭 +脯 +脰 +脱 +脲 +脳 +脶 +脷 +脸 +脹 +脽 +脾 +脿 +腃 +腄 +腆 +腇 +腈 +腊 +腋 +腌 +腍 +腎 +腏 +腐 +腑 +腒 +腓 +腔 +腕 +腖 +腘 +腙 +腚 +腛 +腜 +腞 +腠 +腢 +腤 +腥 +腦 +腧 +腨 +腩 +腫 +腭 +腮 +腯 +腰 +腱 +腲 +腳 +腴 +腶 +腷 +腸 +腹 +腺 +腻 +腼 +腽 +腾 +腿 +膀 +膂 +膃 +膆 +膇 +膈 +膉 +膊 +膋 +膌 +膍 +膏 +膑 +膕 +膘 +膙 +膚 +膛 +膜 +膝 +膞 +膟 +膠 +膢 +膣 +膥 +膦 +膨 +膩 +膫 +膬 +膮 +膰 +膱 +膲 +膳 +膴 +膵 +膷 +膹 +膺 +膻 +膽 +膾 +膿 +臀 +臂 +臃 +臄 +臅 +臆 +臇 +臈 +臉 +臊 +臋 +臌 +臍 +臏 +臐 +臑 +臒 +臓 +臕 +臗 +臘 +臙 +臚 +臛 +臜 +臝 +臞 +臟 +臠 +臡 +臢 +臣 +臥 +臦 +臧 +臨 +臩 +自 +臬 +臭 +臮 +臯 +臲 +至 +致 +臷 +臸 +臺 +臻 +臼 +臾 +臿 +舀 +舁 +舂 +舄 +舅 +舆 +與 +興 +舉 +舊 +舋 +舌 +舍 +舎 +舐 +舑 +舒 +舔 +舕 +舖 +舗 +舘 +舛 +舜 +舝 +舞 +舟 +舠 +舡 +舢 +舣 +舥 +舨 +舩 +航 +舫 +般 +舭 +舯 +舰 +舱 +舲 +舳 +舴 +舵 +舶 +舷 +舸 +船 +舺 +舻 +舼 +舽 +舾 +艀 +艂 +艄 +艅 +艇 +艉 +艋 +艎 +艏 +艐 +艑 +艒 +艓 +艔 +艕 +艘 +艙 +艚 +艛 +艟 +艤 +艦 +艨 +艫 +艮 +良 +艰 +艱 +色 +艳 +艴 +艵 +艶 +艷 +艸 +艹 +艺 +艼 +艽 +艾 +艿 +芀 +节 +芃 +芄 +芅 +芈 +芊 +芋 +芍 +芎 +芏 +芐 +芑 +芒 +芓 +芔 +芗 +芘 +芙 +芚 +芛 +芜 +芝 +芞 +芟 +芠 +芡 +芣 +芤 +芥 +芦 +芧 +芨 +芩 +芪 +芫 +芬 +芭 +芮 +芯 +芰 +花 +芲 +芳 +芴 +芵 +芷 +芸 +芹 +芺 +芻 +芼 +芽 +芾 +芿 +苀 +苁 +苄 +苅 +苇 +苈 +苉 +苊 +苋 +苌 +苍 +苎 +苏 +苑 +苒 +苓 +苔 +苕 +苖 +苗 +苘 +苙 +苛 +苜 +苝 +苞 +苟 +苠 +苡 +苣 +苤 +若 +苦 +苧 +苨 +苪 +苫 +苬 +苯 +英 +苲 +苳 +苴 +苵 +苶 +苷 +苹 +苺 +苻 +苼 +苾 +茀 +茁 +茂 +范 +茄 +茅 +茆 +茇 +茈 +茉 +茋 +茌 +茍 +茎 +茏 +茑 +茓 +茔 +茕 +茖 +茗 +茘 +茙 +茚 +茛 +茜 +茝 +茠 +茢 +茤 +茥 +茦 +茧 +茨 +茩 +茪 +茫 +茬 +茭 +茮 +茯 +茱 +茲 +茳 +茴 +茵 +茶 +茷 +茸 +茹 +茺 +茻 +茼 +茽 +茿 +荀 +荁 +荂 +荃 +荄 +荅 +荆 +荇 +草 +荊 +荍 +荎 +荏 +荐 +荑 +荒 +荓 +荔 +荖 +荘 +荙 +荚 +荛 +荜 +荞 +荟 +荠 +荡 +荣 +荤 +荥 +荦 +荧 +荨 +荩 +荪 +荫 +荬 +荭 +荮 +药 +荳 +荴 +荵 +荷 +荸 +荺 +荻 +荼 +荽 +荾 +莁 +莃 +莅 +莆 +莉 +莊 +莋 +莌 +莍 +莎 +莏 +莐 +莒 +莓 +莔 +莕 +莖 +莘 +莙 +莛 +莜 +莝 +莞 +莠 +莢 +莣 +莤 +莥 +莧 +莨 +莩 +莪 +莫 +莬 +莰 +莱 +莲 +莳 +莴 +莵 +莶 +获 +莸 +莹 +莺 +莼 +莽 +莿 +菀 +菁 +菂 +菅 +菆 +菇 +菈 +菉 +菊 +菋 +菌 +菍 +菎 +菏 +菑 +菓 +菔 +菕 +菖 +菘 +菙 +菜 +菝 +菞 +菟 +菠 +菡 +菣 +菤 +菥 +菧 +菨 +菩 +菪 +菫 +華 +菰 +菱 +菲 +菳 +菴 +菵 +菶 +菸 +菹 +菺 +菼 +菽 +菾 +菿 +萁 +萃 +萄 +萆 +萇 +萉 +萊 +萋 +萌 +萍 +萎 +萏 +萐 +萑 +萒 +萘 +萚 +萜 +萝 +萠 +萡 +萣 +萤 +营 +萦 +萧 +萨 +萩 +萬 +萭 +萯 +萰 +萱 +萲 +萳 +萴 +萵 +萷 +萸 +萹 +萺 +萼 +落 +萿 +葀 +葂 +葃 +葅 +葆 +葉 +葊 +葋 +葌 +葍 +葎 +葑 +葒 +葖 +著 +葙 +葚 +葛 +葜 +葝 +葞 +葟 +葡 +董 +葤 +葥 +葦 +葧 +葩 +葫 +葬 +葭 +葯 +葰 +葱 +葳 +葴 +葵 +葶 +葷 +葸 +葹 +葺 +葽 +蒂 +蒄 +蒆 +蒇 +蒈 +蒉 +蒋 +蒌 +蒍 +蒎 +蒏 +蒐 +蒓 +蒔 +蒗 +蒘 +蒙 +蒚 +蒛 +蒜 +蒝 +蒞 +蒟 +蒠 +蒡 +蒢 +蒤 +蒧 +蒨 +蒩 +蒪 +蒫 +蒬 +蒭 +蒮 +蒯 +蒱 +蒲 +蒴 +蒶 +蒸 +蒹 +蒺 +蒻 +蒼 +蒽 +蒾 +蒿 +蓀 +蓁 +蓂 +蓄 +蓆 +蓇 +蓉 +蓊 +蓋 +蓌 +蓍 +蓎 +蓏 +蓐 +蓑 +蓓 +蓖 +蓘 +蓚 +蓝 +蓟 +蓠 +蓢 +蓣 +蓥 +蓦 +蓧 +蓨 +蓩 +蓪 +蓫 +蓬 +蓭 +蓮 +蓯 +蓰 +蓱 +蓲 +蓳 +蓴 +蓶 +蓷 +蓹 +蓺 +蓻 +蓼 +蓽 +蓾 +蓿 +蔀 +蔂 +蔃 +蔄 +蔆 +蔇 +蔈 +蔉 +蔊 +蔌 +蔍 +蔎 +蔏 +蔑 +蔒 +蔓 +蔔 +蔕 +蔖 +蔗 +蔘 +蔚 +蔜 +蔝 +蔞 +蔟 +蔠 +蔡 +蔣 +蔤 +蔥 +蔦 +蔧 +蔨 +蔩 +蔪 +蔫 +蔬 +蔭 +蔮 +蔰 +蔱 +蔴 +蔵 +蔷 +蔸 +蔹 +蔺 +蔻 +蔼 +蔽 +蔾 +蔿 +蕀 +蕁 +蕃 +蕄 +蕅 +蕆 +蕇 +蕈 +蕉 +蕊 +蕋 +蕍 +蕎 +蕑 +蕒 +蕓 +蕕 +蕖 +蕗 +蕘 +蕙 +蕚 +蕛 +蕝 +蕞 +蕟 +蕠 +蕡 +蕢 +蕣 +蕤 +蕦 +蕧 +蕨 +蕩 +蕪 +蕫 +蕭 +蕮 +蕰 +蕱 +蕲 +蕴 +蕵 +蕷 +蕸 +蕹 +蕺 +蕻 +蕼 +蕾 +蕿 +薀 +薁 +薂 +薃 +薄 +薅 +薆 +薇 +薈 +薉 +薊 +薋 +薌 +薍 +薎 +薏 +薐 +薑 +薔 +薕 +薖 +薗 +薘 +薙 +薚 +薛 +薜 +薝 +薞 +薟 +薠 +薡 +薢 +薣 +薤 +薦 +薧 +薨 +薩 +薪 +薫 +薬 +薭 +薮 +薯 +薰 +薱 +薲 +薳 +薴 +薵 +薶 +薷 +薸 +薹 +薺 +薽 +薾 +薿 +藀 +藁 +藂 +藃 +藄 +藅 +藆 +藇 +藈 +藉 +藋 +藍 +藎 +藏 +藐 +藑 +藒 +藓 +藔 +藕 +藗 +藘 +藙 +藚 +藜 +藝 +藟 +藠 +藡 +藣 +藤 +藥 +藦 +藨 +藩 +藪 +藫 +藬 +藭 +藰 +藱 +藲 +藴 +藶 +藷 +藸 +藹 +藺 +藻 +藼 +藾 +藿 +蘀 +蘁 +蘂 +蘄 +蘅 +蘆 +蘇 +蘉 +蘊 +蘋 +蘌 +蘐 +蘑 +蘓 +蘖 +蘗 +蘘 +蘙 +蘚 +蘛 +蘜 +蘞 +蘟 +蘠 +蘡 +蘢 +蘣 +蘤 +蘥 +蘦 +蘧 +蘩 +蘪 +蘬 +蘭 +蘮 +蘱 +蘳 +蘴 +蘵 +蘶 +蘸 +蘹 +蘺 +蘻 +蘼 +蘾 +蘿 +虀 +虃 +虆 +虇 +虈 +虉 +虋 +虌 +虎 +虏 +虐 +虑 +虒 +虓 +虔 +處 +虖 +虙 +虚 +虛 +虜 +虞 +號 +虡 +虢 +虣 +虤 +虧 +虨 +虩 +虪 +虫 +虬 +虭 +虮 +虯 +虰 +虱 +虴 +虵 +虷 +虸 +虹 +虺 +虻 +虼 +虽 +虾 +虿 +蚀 +蚁 +蚂 +蚄 +蚅 +蚆 +蚇 +蚊 +蚋 +蚌 +蚍 +蚑 +蚓 +蚕 +蚖 +蚗 +蚘 +蚙 +蚚 +蚜 +蚝 +蚞 +蚡 +蚢 +蚣 +蚤 +蚥 +蚧 +蚨 +蚩 +蚪 +蚬 +蚯 +蚰 +蚱 +蚲 +蚳 +蚴 +蚵 +蚶 +蚷 +蚸 +蚹 +蚺 +蚻 +蚼 +蚿 +蛀 +蛁 +蛂 +蛃 +蛄 +蛅 +蛆 +蛇 +蛈 +蛉 +蛊 +蛋 +蛌 +蛍 +蛎 +蛏 +蛐 +蛑 +蛓 +蛔 +蛕 +蛖 +蛗 +蛘 +蛙 +蛚 +蛛 +蛜 +蛝 +蛞 +蛟 +蛢 +蛣 +蛤 +蛦 +蛩 +蛪 +蛫 +蛬 +蛭 +蛮 +蛯 +蛰 +蛱 +蛲 +蛳 +蛴 +蛵 +蛶 +蛷 +蛸 +蛹 +蛺 +蛻 +蛾 +蜀 +蜁 +蜂 +蜃 +蜄 +蜆 +蜇 +蜈 +蜉 +蜊 +蜋 +蜌 +蜍 +蜎 +蜐 +蜑 +蜒 +蜓 +蜕 +蜖 +蜗 +蜘 +蜙 +蜚 +蜛 +蜜 +蜞 +蜠 +蜡 +蜢 +蜣 +蜤 +蜥 +蜦 +蜧 +蜨 +蜩 +蜪 +蜬 +蜭 +蜮 +蜯 +蜰 +蜱 +蜲 +蜳 +蜴 +蜵 +蜷 +蜸 +蜺 +蜻 +蜼 +蜾 +蜿 +蝀 +蝁 +蝂 +蝃 +蝆 +蝇 +蝈 +蝉 +蝋 +蝌 +蝍 +蝎 +蝐 +蝑 +蝒 +蝓 +蝔 +蝕 +蝖 +蝗 +蝘 +蝙 +蝚 +蝛 +蝜 +蝝 +蝞 +蝟 +蝠 +蝡 +蝣 +蝤 +蝥 +蝦 +蝨 +蝪 +蝫 +蝬 +蝭 +蝮 +蝯 +蝰 +蝱 +蝲 +蝳 +蝴 +蝶 +蝷 +蝸 +蝹 +蝺 +蝻 +蝼 +蝽 +蝾 +蝿 +螁 +螂 +螃 +螄 +螅 +螇 +螈 +螋 +融 +螎 +螏 +螐 +螑 +螒 +螓 +螔 +螖 +螗 +螘 +螚 +螛 +螜 +螝 +螞 +螟 +螠 +螡 +螢 +螣 +螤 +螥 +螨 +螪 +螫 +螬 +螭 +螮 +螯 +螰 +螱 +螳 +螴 +螵 +螶 +螷 +螸 +螹 +螺 +螻 +螼 +螽 +螾 +螿 +蟀 +蟁 +蟂 +蟃 +蟄 +蟅 +蟆 +蟇 +蟈 +蟉 +蟊 +蟋 +蟌 +蟎 +蟏 +蟑 +蟒 +蟓 +蟔 +蟗 +蟘 +蟙 +蟛 +蟜 +蟞 +蟟 +蟠 +蟡 +蟢 +蟣 +蟤 +蟥 +蟦 +蟧 +蟨 +蟪 +蟫 +蟬 +蟭 +蟮 +蟯 +蟲 +蟳 +蟴 +蟶 +蟷 +蟹 +蟺 +蟻 +蟼 +蟾 +蟿 +蠀 +蠁 +蠂 +蠃 +蠄 +蠅 +蠆 +蠈 +蠉 +蠊 +蠋 +蠌 +蠍 +蠏 +蠐 +蠑 +蠓 +蠔 +蠕 +蠖 +蠗 +蠘 +蠙 +蠛 +蠜 +蠝 +蠟 +蠠 +蠡 +蠢 +蠣 +蠤 +蠥 +蠦 +蠨 +蠩 +蠪 +蠫 +蠬 +蠭 +蠮 +蠯 +蠰 +蠱 +蠲 +蠳 +蠵 +蠶 +蠷 +蠸 +蠹 +蠻 +蠼 +蠽 +蠾 +蠿 +血 +衁 +衂 +衃 +衄 +衅 +衆 +衇 +衈 +衊 +衋 +行 +衍 +衎 +衒 +術 +衔 +衕 +衖 +街 +衙 +衚 +衛 +衜 +衝 +衞 +衠 +衡 +衢 +衣 +补 +衧 +表 +衩 +衪 +衫 +衬 +衭 +衮 +衯 +衰 +衱 +衲 +衵 +衶 +衷 +衹 +衺 +衽 +衾 +衿 +袀 +袁 +袂 +袃 +袄 +袅 +袆 +袈 +袉 +袋 +袌 +袍 +袑 +袒 +袓 +袕 +袖 +袗 +袘 +袙 +袚 +袛 +袜 +袞 +袟 +袠 +袡 +袢 +袤 +袧 +袨 +袪 +被 +袬 +袭 +袯 +袰 +袱 +袲 +袴 +袵 +袶 +袷 +袸 +袹 +袺 +袼 +袽 +袾 +袿 +裀 +裁 +裂 +裃 +装 +裆 +裈 +裉 +裊 +裋 +裍 +裎 +裏 +裒 +裔 +裕 +裖 +裗 +裘 +裙 +裚 +裛 +補 +裝 +裞 +裟 +裠 +裡 +裢 +裣 +裤 +裥 +裧 +裨 +裬 +裮 +裯 +裰 +裱 +裲 +裳 +裴 +裵 +裶 +裷 +裸 +裹 +裺 +裻 +裼 +製 +裾 +裿 +褀 +褁 +褂 +褄 +褅 +褆 +複 +褊 +褋 +褌 +褍 +褎 +褐 +褑 +褒 +褓 +褔 +褕 +褖 +褗 +褘 +褙 +褚 +褛 +褞 +褟 +褡 +褢 +褥 +褦 +褧 +褩 +褪 +褫 +褭 +褮 +褯 +褰 +褱 +褲 +褳 +褴 +褵 +褶 +褷 +褸 +褻 +褼 +褽 +褾 +襁 +襂 +襃 +襄 +襆 +襇 +襋 +襌 +襏 +襐 +襒 +襓 +襕 +襖 +襗 +襘 +襚 +襛 +襜 +襝 +襞 +襟 +襠 +襡 +襢 +襣 +襤 +襦 +襩 +襪 +襫 +襬 +襭 +襮 +襯 +襲 +襳 +襴 +襶 +襷 +襹 +襺 +襻 +襾 +西 +要 +覂 +覃 +覅 +覆 +覇 +覈 +見 +覌 +覎 +規 +覓 +覕 +視 +覗 +覘 +覚 +覛 +覜 +覝 +覡 +覢 +覣 +覤 +覦 +覧 +覩 +親 +覬 +覭 +覮 +覯 +覲 +観 +覶 +覷 +覺 +覽 +覿 +觀 +见 +观 +觃 +规 +觅 +视 +觇 +览 +觉 +觊 +觋 +觌 +觎 +觏 +觐 +觑 +角 +觓 +觔 +觕 +觖 +觙 +觚 +觜 +觝 +觞 +觟 +觠 +觡 +觢 +解 +觤 +觥 +触 +觩 +觫 +觬 +觭 +觯 +觰 +觱 +觲 +觳 +觴 +觶 +觷 +觸 +觺 +觻 +觼 +觾 +觿 +言 +訁 +訂 +訃 +訄 +訇 +計 +訊 +訌 +討 +訏 +訐 +訑 +訒 +訓 +訔 +訕 +訖 +託 +記 +訚 +訛 +訝 +訞 +訟 +訢 +訣 +訥 +訧 +訩 +訪 +訬 +設 +訰 +許 +訳 +訴 +訶 +訹 +診 +註 +証 +訾 +訿 +詀 +詁 +詄 +詅 +詆 +詈 +詍 +詎 +詐 +詒 +詔 +評 +詖 +詗 +詘 +詙 +詛 +詝 +詞 +詟 +詠 +詡 +詢 +詣 +詥 +試 +詧 +詩 +詪 +詫 +詬 +詭 +詮 +詰 +話 +該 +詳 +詵 +詶 +詷 +詹 +詻 +詼 +詿 +誂 +誃 +誄 +誅 +誆 +誇 +誉 +誊 +誋 +誌 +認 +誑 +誒 +誓 +誕 +誖 +誘 +誙 +誚 +語 +誠 +誡 +誣 +誤 +誥 +誦 +誨 +說 +誫 +説 +読 +誰 +課 +誴 +誶 +誸 +誹 +誻 +誼 +誾 +調 +諀 +諂 +諄 +諅 +諆 +談 +諈 +諉 +請 +諌 +諍 +諏 +諐 +諑 +諒 +諓 +諔 +諕 +論 +諗 +諚 +諛 +諜 +諝 +諞 +諟 +諠 +諡 +諢 +諤 +諦 +諧 +諪 +諫 +諭 +諮 +諰 +諱 +諲 +諳 +諴 +諵 +諶 +諷 +諸 +諺 +諼 +諾 +謀 +謁 +謂 +謄 +謅 +謇 +謈 +謊 +謋 +謌 +謍 +謎 +謏 +謐 +謑 +謒 +謔 +謕 +謖 +謗 +謘 +謙 +謚 +講 +謜 +謝 +謞 +謠 +謡 +謢 +謣 +謤 +謥 +謦 +謧 +謨 +謩 +謪 +謫 +謬 +謯 +謰 +謱 +謳 +謵 +謷 +謹 +謼 +謾 +譀 +譁 +譅 +譆 +譇 +譈 +證 +譊 +譋 +譌 +譎 +譏 +譐 +譑 +譓 +譔 +譕 +譖 +識 +譙 +譚 +譛 +譜 +譝 +譞 +譟 +譠 +譣 +譥 +警 +譨 +譪 +譫 +譬 +譭 +譯 +議 +譲 +譳 +譴 +護 +譸 +譹 +譺 +譻 +譽 +譾 +譿 +讀 +讂 +讃 +讄 +讆 +變 +讋 +讌 +讎 +讐 +讒 +讓 +讔 +讕 +讖 +讘 +讙 +讚 +讜 +讞 +讟 +计 +订 +讣 +认 +讥 +讦 +讧 +讨 +让 +讪 +讫 +训 +议 +讯 +记 +讱 +讲 +讳 +讴 +讵 +讶 +讷 +许 +讹 +论 +讻 +讼 +讽 +设 +访 +诀 +证 +诂 +诃 +评 +诅 +识 +诇 +诈 +诉 +诊 +诋 +诌 +词 +诎 +诏 +诐 +译 +诒 +诓 +诔 +试 +诖 +诗 +诘 +诙 +诚 +诛 +诜 +话 +诞 +诟 +诠 +诡 +询 +诣 +诤 +该 +详 +诧 +诨 +诩 +诫 +诬 +语 +诮 +误 +诰 +诱 +诲 +诳 +说 +诵 +请 +诸 +诹 +诺 +读 +诼 +诽 +课 +诿 +谀 +谁 +谂 +调 +谄 +谅 +谆 +谇 +谈 +谊 +谋 +谌 +谍 +谎 +谏 +谐 +谑 +谒 +谓 +谔 +谕 +谖 +谗 +谙 +谚 +谛 +谜 +谝 +谞 +谟 +谠 +谡 +谢 +谣 +谤 +谥 +谦 +谧 +谨 +谩 +谪 +谫 +谬 +谭 +谮 +谯 +谰 +谱 +谲 +谳 +谴 +谵 +谶 +谷 +谹 +谻 +谼 +谽 +谾 +谿 +豁 +豃 +豅 +豆 +豇 +豈 +豉 +豊 +豋 +豌 +豍 +豎 +豏 +豐 +豔 +豕 +豗 +豚 +豜 +豝 +豟 +象 +豢 +豤 +豥 +豦 +豨 +豪 +豫 +豬 +豭 +豮 +豯 +豰 +豱 +豲 +豳 +豵 +豶 +豷 +豸 +豹 +豺 +豻 +豽 +豿 +貀 +貁 +貂 +貄 +貅 +貆 +貉 +貊 +貌 +貍 +貏 +貐 +貑 +貒 +貓 +貔 +貕 +貗 +貘 +貙 +貛 +貜 +貝 +貞 +負 +財 +貢 +貣 +貤 +貧 +貨 +販 +貪 +貫 +責 +貭 +貮 +貯 +貰 +貲 +貳 +貴 +貶 +買 +貸 +貺 +費 +貼 +貽 +貾 +貿 +賀 +賁 +賂 +賃 +賄 +賅 +資 +賈 +賉 +賊 +賌 +賎 +賑 +賒 +賓 +賔 +賕 +賙 +賚 +賛 +賜 +賞 +賟 +賠 +賡 +賢 +賣 +賤 +賥 +賦 +賧 +賨 +質 +賫 +賬 +賭 +賮 +賴 +賵 +賸 +賹 +賺 +賻 +購 +賽 +賾 +贄 +贅 +贆 +贇 +贈 +贊 +贋 +贌 +贍 +贏 +贐 +贓 +贔 +贕 +贖 +贗 +贙 +贛 +贜 +贝 +贞 +负 +贡 +财 +责 +贤 +败 +账 +货 +质 +贩 +贪 +贫 +贬 +购 +贮 +贯 +贰 +贱 +贲 +贳 +贴 +贵 +贶 +贷 +贸 +费 +贺 +贻 +贼 +贽 +贾 +贿 +赀 +赁 +赂 +赃 +资 +赅 +赆 +赇 +赈 +赉 +赊 +赋 +赌 +赍 +赎 +赏 +赐 +赑 +赒 +赓 +赔 +赕 +赖 +赗 +赘 +赙 +赚 +赛 +赜 +赝 +赞 +赟 +赠 +赡 +赢 +赣 +赤 +赦 +赧 +赨 +赩 +赪 +赫 +赬 +赭 +赮 +走 +赳 +赴 +赵 +赶 +起 +赸 +趀 +趁 +趂 +趄 +超 +越 +趋 +趌 +趍 +趎 +趏 +趐 +趑 +趓 +趔 +趕 +趖 +趙 +趜 +趟 +趠 +趡 +趣 +趥 +趧 +趨 +趪 +趫 +趬 +趭 +趮 +趯 +趱 +趲 +足 +趴 +趵 +趷 +趸 +趹 +趺 +趼 +趾 +趿 +跂 +跃 +跄 +跅 +跆 +跇 +跈 +跋 +跌 +跍 +跎 +跏 +跐 +跑 +跓 +跕 +跖 +跗 +跘 +跙 +跚 +跛 +跜 +距 +跞 +跟 +跠 +跡 +跢 +跣 +跤 +跥 +跦 +跧 +跨 +跩 +跪 +跫 +跬 +跮 +路 +跰 +跱 +跲 +跳 +跴 +践 +跶 +跷 +跸 +跹 +跺 +跻 +跼 +跽 +跾 +跿 +踂 +踃 +踅 +踆 +踇 +踉 +踊 +踌 +踍 +踎 +踏 +踐 +踑 +踒 +踓 +踔 +踕 +踖 +踘 +踙 +踛 +踝 +踞 +踟 +踠 +踡 +踢 +踣 +踤 +踥 +踦 +踧 +踩 +踪 +踫 +踬 +踮 +踯 +踰 +踱 +踳 +踴 +踵 +踶 +踸 +踹 +踺 +踼 +踽 +踾 +蹀 +蹁 +蹂 +蹄 +蹅 +蹇 +蹈 +蹉 +蹊 +蹋 +蹌 +蹍 +蹎 +蹏 +蹐 +蹑 +蹒 +蹓 +蹔 +蹕 +蹖 +蹗 +蹙 +蹚 +蹛 +蹜 +蹝 +蹞 +蹟 +蹠 +蹡 +蹢 +蹣 +蹤 +蹥 +蹦 +蹧 +蹩 +蹪 +蹬 +蹭 +蹯 +蹰 +蹲 +蹳 +蹴 +蹵 +蹶 +蹸 +蹺 +蹻 +蹼 +蹽 +蹾 +蹿 +躁 +躂 +躄 +躅 +躆 +躇 +躈 +躉 +躊 +躋 +躍 +躏 +躐 +躑 +躒 +躓 +躔 +躕 +躖 +躗 +躙 +躚 +躜 +躝 +躞 +躟 +躠 +躡 +躣 +躤 +躥 +躦 +躨 +躩 +躪 +身 +躬 +躭 +躯 +躰 +躲 +躳 +躶 +躺 +躽 +軀 +車 +軋 +軌 +軍 +軎 +軏 +軑 +軒 +軓 +軔 +軘 +軛 +軝 +軞 +軟 +転 +軤 +軥 +軦 +軧 +軨 +軫 +軬 +軮 +軯 +軱 +軲 +軵 +軶 +軷 +軸 +軹 +軺 +軻 +軼 +軽 +軾 +軿 +輀 +輁 +輂 +較 +輄 +輅 +輆 +輇 +輈 +載 +輊 +輋 +輌 +輐 +輑 +輒 +輓 +輔 +輕 +輖 +輗 +輘 +輚 +輛 +輜 +輝 +輞 +輟 +輠 +輣 +輤 +輥 +輦 +輩 +輪 +輬 +輭 +輮 +輯 +輲 +輳 +輴 +輵 +輶 +輷 +輸 +輹 +輻 +輾 +輿 +轀 +轂 +轃 +轄 +轅 +轆 +轇 +轈 +轉 +轍 +轎 +轏 +轐 +轑 +轒 +轓 +轔 +轕 +轖 +轗 +轘 +轙 +轚 +轛 +轝 +轞 +轟 +轠 +轡 +轢 +轤 +车 +轧 +轨 +轩 +轪 +轫 +转 +轭 +轮 +软 +轰 +轱 +轲 +轳 +轴 +轵 +轶 +轷 +轸 +轹 +轺 +轻 +轼 +载 +轾 +轿 +辀 +辁 +辂 +较 +辄 +辅 +辆 +辇 +辈 +辉 +辊 +辋 +辌 +辍 +辎 +辏 +辐 +辑 +辒 +输 +辔 +辕 +辖 +辗 +辘 +辙 +辚 +辛 +辜 +辞 +辟 +辠 +辢 +辣 +辥 +辦 +辧 +辨 +辩 +辫 +辭 +辮 +辯 +辰 +辱 +農 +辴 +辵 +边 +辺 +辻 +込 +辽 +达 +辿 +迁 +迂 +迄 +迅 +迆 +过 +迈 +迉 +迋 +迍 +迎 +运 +近 +迒 +迓 +返 +迕 +迖 +还 +这 +进 +远 +违 +连 +迟 +迡 +迢 +迣 +迤 +迥 +迦 +迨 +迩 +迪 +迫 +迭 +迮 +述 +迳 +迴 +迵 +迷 +迸 +迹 +迺 +迻 +追 +迾 +迿 +退 +送 +适 +逃 +逄 +逅 +逆 +逈 +选 +逊 +逋 +逌 +逍 +逎 +透 +逐 +逑 +递 +逓 +途 +逕 +逖 +逗 +這 +通 +逛 +逜 +逝 +逞 +速 +造 +逡 +逢 +連 +逤 +逦 +逨 +逩 +逭 +逮 +逯 +週 +進 +逴 +逵 +逶 +逸 +逹 +逺 +逻 +逼 +逾 +逿 +遁 +遂 +遄 +遅 +遆 +遇 +遊 +運 +遍 +過 +遏 +遐 +遑 +遒 +道 +達 +違 +遗 +遘 +遙 +遛 +遜 +遝 +遞 +遠 +遡 +遢 +遣 +遥 +遨 +適 +遭 +遮 +遯 +遰 +遲 +遳 +遴 +遵 +遶 +遷 +選 +遹 +遺 +遻 +遼 +遽 +遾 +避 +邀 +邁 +邂 +邃 +還 +邅 +邆 +邇 +邈 +邉 +邊 +邋 +邍 +邏 +邐 +邑 +邓 +邔 +邕 +邗 +邘 +邙 +邛 +邝 +邞 +邟 +邠 +邡 +邢 +那 +邥 +邦 +邧 +邨 +邪 +邬 +邮 +邯 +邰 +邱 +邲 +邳 +邴 +邵 +邶 +邸 +邹 +邺 +邻 +邽 +邾 +邿 +郁 +郃 +郄 +郅 +郇 +郈 +郊 +郋 +郎 +郏 +郐 +郑 +郓 +郔 +郕 +郖 +郗 +郘 +郙 +郚 +郛 +郜 +郝 +郞 +郟 +郠 +郡 +郢 +郣 +郤 +郥 +郦 +郧 +部 +郪 +郫 +郭 +郯 +郰 +郱 +郲 +郳 +郴 +郵 +郷 +郸 +郹 +郺 +郻 +郼 +都 +郾 +郿 +鄀 +鄁 +鄂 +鄃 +鄄 +鄅 +鄆 +鄇 +鄈 +鄉 +鄋 +鄌 +鄍 +鄎 +鄏 +鄐 +鄑 +鄒 +鄔 +鄖 +鄗 +鄘 +鄙 +鄚 +鄛 +鄜 +鄝 +鄞 +鄟 +鄠 +鄡 +鄢 +鄣 +鄤 +鄦 +鄧 +鄨 +鄩 +鄪 +鄫 +鄬 +鄭 +鄮 +鄯 +鄰 +鄱 +鄲 +鄳 +鄴 +鄵 +鄶 +鄸 +鄹 +鄺 +鄻 +鄾 +酀 +酁 +酂 +酃 +酄 +酅 +酆 +酇 +酈 +酉 +酊 +酋 +酌 +配 +酎 +酏 +酐 +酒 +酓 +酔 +酖 +酗 +酘 +酚 +酝 +酞 +酟 +酡 +酢 +酣 +酤 +酥 +酦 +酧 +酨 +酩 +酪 +酬 +酮 +酯 +酰 +酱 +酲 +酳 +酴 +酵 +酶 +酷 +酸 +酹 +酺 +酼 +酽 +酾 +酿 +醁 +醂 +醃 +醅 +醆 +醇 +醉 +醊 +醋 +醌 +醍 +醐 +醑 +醒 +醓 +醕 +醖 +醗 +醙 +醚 +醛 +醜 +醞 +醟 +醢 +醣 +醤 +醥 +醧 +醨 +醪 +醫 +醬 +醭 +醮 +醯 +醰 +醱 +醲 +醳 +醴 +醵 +醷 +醸 +醹 +醺 +醻 +醼 +醽 +醾 +醿 +釀 +釁 +釂 +釃 +釅 +釆 +采 +釈 +釉 +释 +釋 +里 +重 +野 +量 +釐 +金 +釓 +釔 +釕 +釗 +釘 +釙 +釚 +釜 +針 +釢 +釣 +釤 +釦 +釧 +釩 +釪 +釬 +釭 +釱 +釳 +釴 +釵 +釷 +釸 +釹 +釺 +釽 +釿 +鈀 +鈁 +鈃 +鈄 +鈆 +鈇 +鈈 +鈉 +鈊 +鈌 +鈍 +鈎 +鈏 +鈐 +鈑 +鈒 +鈔 +鈕 +鈖 +鈚 +鈞 +鈢 +鈣 +鈥 +鈦 +鈧 +鈫 +鈮 +鈰 +鈳 +鈴 +鈶 +鈷 +鈸 +鈹 +鈺 +鈽 +鈾 +鈿 +鉀 +鉄 +鉅 +鉆 +鉇 +鉈 +鉉 +鉊 +鉋 +鉌 +鉍 +鉏 +鉑 +鉒 +鉓 +鉕 +鉗 +鉚 +鉛 +鉞 +鉟 +鉠 +鉢 +鉤 +鉥 +鉦 +鉧 +鉬 +鉭 +鉮 +鉯 +鉱 +鉲 +鉴 +鉶 +鉷 +鉸 +鉹 +鉺 +鉻 +鉼 +鉾 +鉿 +銀 +銂 +銃 +銅 +銈 +銋 +銍 +銎 +銑 +銓 +銔 +銕 +銖 +銗 +銘 +銚 +銛 +銜 +銠 +銣 +銤 +銥 +銦 +銨 +銩 +銪 +銫 +銬 +銭 +銮 +銱 +銲 +銳 +銶 +銷 +銹 +銻 +銼 +銾 +鋀 +鋁 +鋂 +鋃 +鋄 +鋅 +鋆 +鋇 +鋈 +鋊 +鋋 +鋌 +鋏 +鋐 +鋒 +鋕 +鋗 +鋘 +鋙 +鋝 +鋟 +鋡 +鋤 +鋥 +鋦 +鋨 +鋩 +鋪 +鋭 +鋮 +鋯 +鋰 +鋱 +鋲 +鋳 +鋶 +鋸 +鋹 +鋺 +鋼 +錀 +錁 +錄 +錆 +錈 +錍 +錎 +錏 +錐 +錒 +錕 +錘 +錙 +錚 +錛 +錞 +錟 +錠 +錡 +錢 +錣 +錦 +錧 +錨 +錫 +錬 +錭 +錮 +錯 +録 +錳 +錵 +錶 +錸 +錻 +錼 +錾 +鍀 +鍁 +鍆 +鍇 +鍈 +鍉 +鍊 +鍋 +鍌 +鍍 +鍏 +鍐 +鍑 +鍔 +鍖 +鍘 +鍚 +鍛 +鍜 +鍝 +鍟 +鍠 +鍤 +鍥 +鍩 +鍪 +鍬 +鍭 +鍮 +鍰 +鍱 +鍳 +鍵 +鍶 +鍷 +鍺 +鍼 +鍾 +鎂 +鎃 +鎅 +鎉 +鎊 +鎌 +鎎 +鎏 +鎒 +鎓 +鎔 +鎖 +鎗 +鎘 +鎚 +鎛 +鎝 +鎞 +鎡 +鎢 +鎣 +鎦 +鎧 +鎩 +鎪 +鎬 +鎭 +鎮 +鎯 +鎰 +鎳 +鎵 +鎷 +鎸 +鎹 +鎻 +鏂 +鏃 +鏇 +鏈 +鏊 +鏌 +鏍 +鏏 +鏐 +鏑 +鏓 +鏖 +鏗 +鏘 +鏙 +鏚 +鏜 +鏝 +鏞 +鏟 +鏡 +鏢 +鏤 +鏦 +鏨 +鏬 +鏰 +鏳 +鏴 +鏵 +鏷 +鏹 +鏺 +鏻 +鏽 +鏾 +鐀 +鐃 +鐇 +鐈 +鐋 +鐍 +鐎 +鐏 +鐐 +鐓 +鐔 +鐕 +鐖 +鐘 +鐙 +鐚 +鐝 +鐠 +鐡 +鐤 +鐦 +鐧 +鐨 +鐫 +鐬 +鐭 +鐮 +鐯 +鐲 +鐳 +鐵 +鐶 +鐸 +鐺 +鐻 +鐽 +鐾 +鐿 +鑀 +鑁 +鑂 +鑄 +鑅 +鑊 +鑋 +鑌 +鑐 +鑑 +鑒 +鑔 +鑕 +鑚 +鑛 +鑞 +鑠 +鑢 +鑣 +鑤 +鑨 +鑪 +鑫 +鑭 +鑮 +鑯 +鑰 +鑱 +鑲 +鑴 +鑵 +鑷 +鑹 +鑼 +鑽 +鑾 +鑿 +钀 +钁 +钂 +钃 +钆 +钇 +针 +钉 +钊 +钋 +钌 +钍 +钎 +钏 +钐 +钒 +钓 +钔 +钕 +钖 +钗 +钘 +钙 +钚 +钛 +钜 +钝 +钞 +钟 +钠 +钡 +钢 +钣 +钤 +钥 +钦 +钧 +钨 +钩 +钪 +钫 +钬 +钭 +钮 +钯 +钰 +钱 +钲 +钳 +钴 +钵 +钷 +钹 +钺 +钻 +钼 +钽 +钾 +钿 +铀 +铁 +铂 +铃 +铄 +铅 +铆 +铈 +铉 +铊 +铋 +铌 +铍 +铎 +铏 +铐 +铑 +铒 +铕 +铖 +铗 +铘 +铙 +铚 +铛 +铜 +铝 +铞 +铟 +铠 +铡 +铢 +铣 +铤 +铥 +铧 +铨 +铩 +铪 +铫 +铬 +铭 +铮 +铯 +铰 +铱 +铲 +铳 +铴 +铵 +银 +铷 +铸 +铹 +铺 +铻 +铼 +铽 +链 +铿 +销 +锁 +锂 +锃 +锄 +锅 +锆 +锇 +锈 +锉 +锊 +锋 +锌 +锍 +锎 +锏 +锐 +锑 +锒 +锓 +锔 +锕 +锖 +锗 +锘 +错 +锚 +锛 +锜 +锝 +锞 +锟 +锡 +锢 +锣 +锤 +锥 +锦 +锧 +锨 +锩 +锪 +锫 +锬 +锭 +键 +锯 +锰 +锱 +锲 +锳 +锴 +锵 +锶 +锷 +锸 +锹 +锺 +锻 +锼 +锽 +锾 +锿 +镀 +镁 +镂 +镃 +镄 +镅 +镆 +镇 +镈 +镉 +镊 +镋 +镌 +镍 +镎 +镏 +镐 +镑 +镒 +镓 +镔 +镕 +镖 +镗 +镘 +镚 +镛 +镜 +镝 +镞 +镠 +镡 +镢 +镣 +镤 +镥 +镦 +镧 +镨 +镩 +镪 +镫 +镬 +镭 +镮 +镯 +镰 +镱 +镲 +镳 +镴 +镵 +镶 +長 +镺 +镻 +镼 +镽 +长 +門 +閂 +閃 +閆 +閇 +閈 +閉 +開 +閌 +閍 +閎 +閏 +閑 +閒 +間 +閔 +閘 +閜 +閞 +閟 +閡 +関 +閣 +閤 +閥 +閦 +閧 +閨 +閩 +閫 +閬 +閭 +閰 +閱 +閲 +閵 +閶 +閷 +閹 +閺 +閻 +閼 +閽 +閾 +閿 +闀 +闃 +闅 +闆 +闇 +闈 +闉 +闊 +闋 +闌 +闍 +闐 +闑 +闒 +闓 +闔 +闕 +闖 +闘 +闚 +闛 +關 +闞 +闟 +闠 +闡 +闢 +闤 +闥 +门 +闩 +闪 +闫 +闭 +问 +闯 +闰 +闱 +闲 +闳 +间 +闵 +闶 +闷 +闸 +闹 +闺 +闻 +闼 +闽 +闾 +闿 +阀 +阁 +阂 +阃 +阄 +阅 +阆 +阇 +阈 +阉 +阊 +阋 +阌 +阍 +阎 +阏 +阐 +阑 +阒 +阔 +阕 +阖 +阗 +阘 +阙 +阚 +阜 +阝 +阞 +队 +阠 +阡 +阢 +阤 +阨 +阪 +阬 +阭 +阮 +阯 +阰 +阱 +防 +阳 +阴 +阵 +阶 +阸 +阹 +阺 +阻 +阼 +阽 +阿 +陀 +陁 +陂 +附 +际 +陆 +陇 +陈 +陉 +陊 +陋 +陌 +降 +陎 +陏 +限 +陑 +陓 +陔 +陕 +陗 +陘 +陛 +陜 +陝 +陞 +陟 +陡 +院 +陣 +除 +陥 +陧 +陨 +险 +陪 +陫 +陬 +陭 +陰 +陲 +陳 +陴 +陵 +陶 +陷 +陸 +険 +陻 +陼 +陽 +陾 +隃 +隄 +隅 +隆 +隇 +隈 +隉 +隊 +隋 +隍 +階 +随 +隐 +隑 +隒 +隓 +隔 +隕 +隗 +隘 +隙 +際 +障 +隞 +隠 +隣 +隤 +隧 +隨 +隩 +險 +隮 +隰 +隱 +隲 +隳 +隴 +隶 +隷 +隸 +隹 +隺 +隻 +隼 +隽 +难 +隿 +雀 +雁 +雂 +雄 +雅 +集 +雇 +雈 +雉 +雊 +雋 +雌 +雍 +雎 +雏 +雑 +雒 +雓 +雔 +雕 +雖 +雗 +雘 +雙 +雚 +雛 +雜 +雝 +雞 +雟 +雠 +離 +難 +雨 +雩 +雪 +雫 +雯 +雰 +雱 +雲 +雳 +零 +雷 +雹 +雺 +電 +雽 +雾 +雿 +需 +霁 +霂 +霄 +霅 +霆 +震 +霈 +霉 +霊 +霋 +霍 +霎 +霏 +霐 +霑 +霒 +霓 +霖 +霙 +霜 +霞 +霠 +霢 +霣 +霤 +霧 +霨 +霩 +霪 +霫 +霬 +霭 +霮 +霰 +露 +霵 +霶 +霸 +霹 +霽 +霾 +霿 +靁 +靂 +靃 +靄 +靆 +靈 +靉 +靑 +青 +靓 +靖 +静 +靚 +靛 +靜 +非 +靠 +靡 +面 +靥 +靦 +靨 +革 +靪 +靫 +靬 +靭 +靮 +靰 +靱 +靲 +靳 +靴 +靶 +靷 +靸 +靺 +靻 +靼 +靽 +靾 +靿 +鞀 +鞁 +鞂 +鞃 +鞄 +鞅 +鞆 +鞈 +鞊 +鞋 +鞌 +鞍 +鞎 +鞏 +鞑 +鞒 +鞔 +鞗 +鞘 +鞙 +鞚 +鞜 +鞞 +鞠 +鞡 +鞣 +鞤 +鞥 +鞦 +鞧 +鞨 +鞪 +鞫 +鞬 +鞭 +鞮 +鞯 +鞲 +鞳 +鞴 +鞵 +鞶 +鞷 +鞹 +鞻 +鞽 +鞾 +鞿 +韁 +韂 +韃 +韄 +韅 +韆 +韇 +韉 +韋 +韌 +韍 +韎 +韏 +韐 +韑 +韓 +韔 +韕 +韗 +韙 +韜 +韝 +韞 +韟 +韠 +韡 +韣 +韥 +韦 +韧 +韨 +韩 +韪 +韫 +韬 +韭 +韮 +韰 +韱 +音 +韵 +韶 +韹 +韺 +韻 +韽 +韾 +響 +頁 +頂 +頃 +頄 +項 +順 +頇 +須 +頊 +頌 +頍 +頎 +頏 +預 +頑 +頒 +頓 +頔 +頖 +頗 +領 +頚 +頜 +頝 +頞 +頠 +頡 +頤 +頦 +頨 +頩 +頫 +頬 +頭 +頯 +頰 +頲 +頴 +頵 +頷 +頸 +頹 +頻 +頼 +頽 +顁 +顄 +顅 +顆 +顇 +顈 +顉 +顊 +顋 +題 +額 +顎 +顏 +顐 +顑 +顒 +顓 +顔 +顕 +顗 +願 +顙 +顛 +顜 +顝 +類 +顟 +顠 +顢 +顣 +顤 +顥 +顦 +顧 +顩 +顪 +顫 +顯 +顰 +顱 +顲 +顳 +顴 +页 +顶 +顷 +顸 +项 +顺 +须 +顼 +顽 +顾 +顿 +颀 +颁 +颂 +颃 +预 +颅 +领 +颇 +颈 +颉 +颊 +颋 +颌 +颍 +颎 +颏 +颐 +频 +颓 +颔 +颖 +颗 +题 +颙 +颚 +颛 +颜 +额 +颞 +颟 +颠 +颡 +颢 +颤 +颥 +颦 +颧 +風 +颬 +颭 +颮 +颯 +颱 +颲 +颳 +颶 +颸 +颺 +颻 +颼 +颽 +颾 +颿 +飁 +飂 +飄 +飆 +飈 +飉 +飋 +飌 +风 +飏 +飐 +飑 +飒 +飓 +飔 +飕 +飗 +飘 +飙 +飛 +飜 +飞 +食 +飡 +飢 +飣 +飥 +飧 +飨 +飩 +飪 +飫 +飬 +飭 +飮 +飯 +飱 +飲 +飴 +飶 +飺 +飼 +飽 +飾 +飿 +餀 +餂 +餃 +餄 +餅 +餈 +餉 +養 +餌 +餍 +餎 +餏 +餐 +餑 +餒 +餓 +餔 +餕 +餖 +餗 +餘 +餚 +餛 +餜 +餝 +餞 +餟 +餠 +餡 +餤 +餥 +餧 +館 +餪 +餫 +餬 +餭 +餮 +餯 +餰 +餱 +餲 +餳 +餵 +餷 +餹 +餺 +餻 +餼 +餽 +餾 +餿 +饁 +饂 +饃 +饅 +饇 +饈 +饉 +饊 +饋 +饌 +饍 +饎 +饐 +饑 +饒 +饔 +饕 +饗 +饘 +饙 +饛 +饜 +饞 +饟 +饡 +饢 +饥 +饧 +饨 +饩 +饪 +饫 +饬 +饭 +饮 +饯 +饰 +饱 +饲 +饳 +饴 +饵 +饶 +饷 +饸 +饹 +饺 +饻 +饼 +饽 +饿 +馁 +馃 +馄 +馅 +馆 +馇 +馈 +馉 +馊 +馋 +馌 +馍 +馏 +馐 +馑 +馒 +馓 +馔 +馕 +首 +馗 +馘 +香 +馛 +馝 +馞 +馣 +馥 +馦 +馧 +馨 +馬 +馭 +馮 +馯 +馰 +馱 +馲 +馳 +馴 +馵 +馹 +馺 +馻 +馼 +馽 +駁 +駂 +駃 +駄 +駅 +駆 +駈 +駉 +駍 +駎 +駏 +駐 +駑 +駒 +駓 +駔 +駕 +駖 +駘 +駙 +駛 +駜 +駝 +駟 +駡 +駢 +駣 +駤 +駥 +駩 +駪 +駬 +駭 +駮 +駰 +駱 +駴 +駶 +駷 +駸 +駹 +駺 +駻 +駼 +駽 +駾 +駿 +騁 +騂 +騃 +騄 +騅 +騇 +騉 +騊 +騋 +騌 +騍 +騎 +騏 +騑 +騒 +験 +騕 +騖 +騙 +騚 +騛 +騜 +騝 +騞 +騠 +騢 +騣 +騤 +騥 +騧 +騨 +騩 +騪 +騫 +騬 +騭 +騮 +騰 +騱 +騲 +騴 +騵 +騶 +騷 +騸 +騹 +騺 +騽 +騾 +驀 +驁 +驂 +驃 +驄 +驅 +驆 +驈 +驉 +驊 +驌 +驍 +驎 +驏 +驒 +驓 +驔 +驕 +驖 +驗 +驚 +驛 +驞 +驟 +驠 +驢 +驤 +驥 +驦 +驨 +驩 +驪 +驫 +马 +驭 +驮 +驯 +驰 +驱 +驲 +驳 +驴 +驵 +驶 +驷 +驸 +驹 +驺 +驻 +驼 +驽 +驾 +驿 +骀 +骁 +骂 +骃 +骄 +骅 +骆 +骇 +骈 +骉 +骊 +骋 +验 +骍 +骎 +骏 +骐 +骑 +骒 +骓 +骕 +骖 +骗 +骘 +骙 +骚 +骛 +骜 +骝 +骞 +骟 +骠 +骡 +骢 +骣 +骤 +骥 +骦 +骧 +骨 +骫 +骭 +骯 +骰 +骱 +骴 +骶 +骷 +骸 +骹 +骺 +骼 +骽 +骾 +骿 +髀 +髁 +髂 +髃 +髄 +髅 +髆 +髇 +髈 +髊 +髋 +髌 +髍 +髎 +髏 +髐 +髑 +髒 +髓 +體 +髕 +髖 +高 +髙 +髟 +髡 +髢 +髣 +髥 +髦 +髧 +髪 +髫 +髬 +髭 +髮 +髯 +髲 +髳 +髴 +髶 +髷 +髹 +髺 +髻 +髼 +髽 +髾 +鬀 +鬁 +鬃 +鬄 +鬅 +鬆 +鬈 +鬉 +鬊 +鬋 +鬌 +鬍 +鬎 +鬏 +鬐 +鬒 +鬓 +鬕 +鬖 +鬗 +鬘 +鬙 +鬚 +鬞 +鬟 +鬠 +鬢 +鬣 +鬤 +鬥 +鬧 +鬨 +鬩 +鬪 +鬫 +鬬 +鬮 +鬯 +鬱 +鬲 +鬳 +鬵 +鬶 +鬷 +鬹 +鬺 +鬻 +鬼 +鬾 +鬿 +魁 +魂 +魃 +魄 +魅 +魆 +魇 +魈 +魉 +魊 +魋 +魌 +魍 +魎 +魏 +魑 +魔 +魕 +魖 +魘 +魚 +魛 +魞 +魟 +魠 +魡 +魣 +魦 +魧 +魨 +魩 +魮 +魯 +魱 +魴 +魵 +魶 +魷 +魻 +魼 +魾 +鮀 +鮁 +鮂 +鮃 +鮄 +鮅 +鮆 +鮇 +鮊 +鮋 +鮍 +鮎 +鮐 +鮑 +鮒 +鮓 +鮗 +鮚 +鮛 +鮜 +鮝 +鮞 +鮟 +鮠 +鮡 +鮣 +鮤 +鮥 +鮦 +鮨 +鮪 +鮫 +鮭 +鮮 +鮰 +鮵 +鮸 +鮹 +鮻 +鮿 +鯀 +鯁 +鯃 +鯆 +鯇 +鯈 +鯉 +鯊 +鯏 +鯒 +鯓 +鯔 +鯕 +鯖 +鯗 +鯙 +鯛 +鯝 +鯞 +鯠 +鯡 +鯢 +鯤 +鯦 +鯧 +鯨 +鯪 +鯫 +鯬 +鯭 +鯮 +鯰 +鯱 +鯶 +鯷 +鯸 +鯻 +鯽 +鯿 +鰂 +鰃 +鰅 +鰆 +鰈 +鰉 +鰋 +鰌 +鰍 +鰏 +鰐 +鰒 +鰓 +鰕 +鰗 +鰛 +鰜 +鰝 +鰟 +鰣 +鰤 +鰥 +鰧 +鰨 +鰩 +鰫 +鰬 +鰭 +鰮 +鰯 +鰰 +鰱 +鰲 +鰳 +鰴 +鰶 +鰷 +鰹 +鰺 +鰻 +鰼 +鰾 +鰿 +鱀 +鱁 +鱂 +鱄 +鱅 +鱆 +鱇 +鱈 +鱉 +鱊 +鱋 +鱍 +鱐 +鱒 +鱓 +鱔 +鱕 +鱖 +鱗 +鱘 +鱚 +鱝 +鱞 +鱟 +鱠 +鱢 +鱣 +鱥 +鱦 +鱧 +鱨 +鱬 +鱭 +鱮 +鱰 +鱲 +鱳 +鱴 +鱵 +鱷 +鱸 +鱹 +鱺 +鱻 +鱼 +鱽 +鱾 +鱿 +鲀 +鲁 +鲂 +鲃 +鲅 +鲆 +鲇 +鲈 +鲉 +鲊 +鲋 +鲌 +鲍 +鲎 +鲏 +鲐 +鲑 +鲒 +鲔 +鲕 +鲖 +鲗 +鲘 +鲙 +鲚 +鲛 +鲜 +鲝 +鲞 +鲟 +鲠 +鲡 +鲢 +鲣 +鲤 +鲥 +鲦 +鲧 +鲨 +鲩 +鲪 +鲫 +鲬 +鲭 +鲮 +鲯 +鲰 +鲱 +鲲 +鲳 +鲴 +鲵 +鲷 +鲸 +鲹 +鲺 +鲻 +鲼 +鲽 +鲾 +鲿 +鳀 +鳁 +鳂 +鳃 +鳄 +鳅 +鳇 +鳈 +鳉 +鳊 +鳌 +鳍 +鳎 +鳏 +鳐 +鳑 +鳒 +鳓 +鳔 +鳕 +鳖 +鳗 +鳘 +鳙 +鳚 +鳛 +鳜 +鳝 +鳞 +鳟 +鳠 +鳡 +鳢 +鳣 +鳤 +鳥 +鳦 +鳧 +鳩 +鳪 +鳬 +鳭 +鳯 +鳰 +鳱 +鳲 +鳳 +鳴 +鳵 +鳶 +鳷 +鳹 +鳺 +鳻 +鳼 +鳽 +鳾 +鳿 +鴀 +鴃 +鴅 +鴆 +鴇 +鴈 +鴉 +鴎 +鴐 +鴒 +鴓 +鴔 +鴕 +鴗 +鴘 +鴛 +鴝 +鴞 +鴟 +鴠 +鴡 +鴢 +鴣 +鴥 +鴦 +鴨 +鴩 +鴫 +鴮 +鴯 +鴰 +鴱 +鴳 +鴴 +鴶 +鴷 +鴸 +鴻 +鴽 +鴾 +鴿 +鵀 +鵁 +鵂 +鵃 +鵄 +鵅 +鵊 +鵋 +鵌 +鵎 +鵏 +鵐 +鵑 +鵒 +鵓 +鵔 +鵖 +鵗 +鵙 +鵛 +鵜 +鵝 +鵞 +鵟 +鵠 +鵡 +鵧 +鵩 +鵪 +鵫 +鵬 +鵮 +鵯 +鵰 +鵱 +鵲 +鵳 +鵴 +鵵 +鵷 +鵸 +鵹 +鵺 +鵻 +鵼 +鵽 +鵾 +鶀 +鶁 +鶂 +鶄 +鶅 +鶆 +鶇 +鶈 +鶉 +鶊 +鶋 +鶌 +鶏 +鶐 +鶒 +鶓 +鶔 +鶖 +鶗 +鶘 +鶙 +鶚 +鶛 +鶜 +鶝 +鶞 +鶟 +鶠 +鶡 +鶢 +鶣 +鶤 +鶥 +鶨 +鶩 +鶪 +鶬 +鶭 +鶯 +鶱 +鶲 +鶴 +鶵 +鶶 +鶷 +鶹 +鶺 +鶻 +鶼 +鶾 +鶿 +鷀 +鷁 +鷂 +鷃 +鷄 +鷅 +鷇 +鷈 +鷉 +鷊 +鷋 +鷎 +鷏 +鷐 +鷑 +鷒 +鷓 +鷕 +鷖 +鷗 +鷘 +鷙 +鷚 +鷛 +鷜 +鷞 +鷟 +鷡 +鷢 +鷣 +鷤 +鷥 +鷦 +鷩 +鷫 +鷮 +鷯 +鷰 +鷲 +鷳 +鷵 +鷶 +鷷 +鷸 +鷹 +鷺 +鷻 +鷽 +鷾 +鷿 +鸀 +鸁 +鸂 +鸃 +鸄 +鸅 +鸆 +鸇 +鸉 +鸊 +鸋 +鸌 +鸍 +鸏 +鸐 +鸑 +鸒 +鸓 +鸔 +鸕 +鸗 +鸘 +鸙 +鸚 +鸛 +鸜 +鸝 +鸞 +鸟 +鸠 +鸡 +鸢 +鸣 +鸤 +鸥 +鸦 +鸧 +鸨 +鸩 +鸪 +鸫 +鸬 +鸭 +鸮 +鸯 +鸰 +鸱 +鸲 +鸳 +鸵 +鸶 +鸷 +鸸 +鸹 +鸺 +鸻 +鸼 +鸽 +鸾 +鸿 +鹀 +鹁 +鹂 +鹃 +鹄 +鹅 +鹆 +鹇 +鹈 +鹉 +鹊 +鹋 +鹌 +鹍 +鹎 +鹏 +鹐 +鹑 +鹒 +鹔 +鹕 +鹖 +鹗 +鹘 +鹙 +鹚 +鹛 +鹜 +鹝 +鹞 +鹟 +鹠 +鹡 +鹢 +鹣 +鹤 +鹦 +鹧 +鹨 +鹩 +鹪 +鹫 +鹬 +鹭 +鹮 +鹯 +鹰 +鹱 +鹲 +鹳 +鹴 +鹵 +鹸 +鹹 +鹺 +鹻 +鹼 +鹽 +鹾 +鹿 +麀 +麁 +麂 +麃 +麅 +麆 +麇 +麈 +麉 +麊 +麋 +麌 +麎 +麐 +麑 +麒 +麓 +麔 +麖 +麗 +麙 +麚 +麛 +麜 +麝 +麞 +麟 +麠 +麡 +麤 +麥 +麦 +麧 +麩 +麪 +麮 +麯 +麰 +麴 +麵 +麶 +麷 +麸 +麹 +麺 +麻 +麼 +麽 +麾 +麿 +黀 +黁 +黂 +黃 +黄 +黇 +黈 +黉 +黌 +黍 +黎 +黏 +黐 +黑 +黒 +黓 +黔 +黕 +黖 +默 +黙 +黚 +黛 +黜 +黝 +點 +黟 +黠 +黡 +黢 +黤 +黥 +黧 +黨 +黩 +黪 +黫 +黭 +黮 +黯 +黰 +黲 +黳 +黴 +黵 +黶 +黷 +黹 +黺 +黻 +黼 +黽 +黾 +黿 +鼀 +鼁 +鼂 +鼃 +鼆 +鼇 +鼈 +鼉 +鼊 +鼋 +鼍 +鼎 +鼏 +鼐 +鼒 +鼓 +鼕 +鼖 +鼗 +鼘 +鼙 +鼛 +鼜 +鼠 +鼢 +鼣 +鼤 +鼥 +鼨 +鼩 +鼪 +鼫 +鼬 +鼭 +鼮 +鼯 +鼰 +鼱 +鼲 +鼳 +鼴 +鼵 +鼶 +鼷 +鼸 +鼹 +鼻 +鼽 +鼾 +齀 +齁 +齂 +齃 +齇 +齉 +齊 +齋 +齌 +齍 +齎 +齏 +齐 +齑 +齒 +齔 +齕 +齖 +齗 +齘 +齙 +齛 +齜 +齝 +齞 +齟 +齠 +齡 +齢 +齣 +齤 +齥 +齦 +齧 +齩 +齪 +齫 +齬 +齮 +齯 +齰 +齱 +齲 +齴 +齵 +齶 +齷 +齸 +齹 +齺 +齻 +齾 +齿 +龀 +龁 +龂 +龃 +龄 +龅 +龆 +龇 +龈 +龉 +龊 +龋 +龌 +龍 +龎 +龐 +龑 +龒 +龔 +龕 +龗 +龙 +龚 +龛 +龜 +龝 +龟 +龠 +龢 +龤 +鿍 +鿎 +鿏 +郎 +凉 +︽ +︾ +﹏ +﹥ +﹪ +! +# +% +& +( +) ++ +, +- +. +/ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +: +; += +? +@ +A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z +a +b +c +d +e +f +g +h +i +j +k +l +m +n +o +p +q +r +s +t +u +v +w +x +y +z +| +~ +・ +ヲ +ァ +ィ +ゥ +ェ +ォ +ャ +ュ +ョ +ッ +ア +イ +ウ +エ +オ +カ +キ +ク +ケ +コ +サ +シ +ス +セ +ソ +タ +チ +ツ +テ +ト +ナ +ニ +ヌ +ネ +ノ +ハ +ヒ +フ +ヘ +ホ +マ +ミ +ム +メ +モ +ヤ +ユ +ヨ +ラ +リ +ル +レ +ロ +ワ +ン +゙ +゚ +¥ +𠅤 +𠙶 +𠳐 +𠴰 +𡎚 +𡐓 +𡑍 +𡚁 +𣇉 +𣗋 +𣲗 +𣲘 +𣸣 +𤋮 +𤧛 +𤩽 +𤫉 +𤺥 +𥔲 +𥕢 +𥖨 +𥻗 +𦈡 +𦍑 +𦒍 +𦙶 +𦝼 +𦭜 +𦰡 +𧿹 +𨐈 +𨙸 +𨚕 +𨟠 +𨭉 +𨱇 +𨱏 +𨱑 +𨱔 +𨺙 +𩓐 +𩽾 +𩾃 +𩾌 +𪟝 +𪣻 +𪤗 +𪨰 +𪨶 +𪩘 +𪾢 +𫄧 +𫄨 +𫄷 +𫄸 +𫇭 +𫌀 +𫍣 +𫍯 +𫍲 +𫍽 +𫐄 +𫐐 +𫐓 +𫑡 +𫓧 +𫓯 +𫓶 +𫓹 +𫔍 +𫔎 +𫔶 +𫖮 +𫖯 +𫖳 +𫗧 +𫗴 +𫘜 +𫘝 +𫘦 +𫘧 +𫘨 +𫘪 +𫘬 +𫚕 +𫚖 +𫚭 +𫛭 +𫞩 +𫟅 +𫟦 +𫟹 +𫟼 +𫠆 +𫠊 +𫠜 +𫢸 +𫫇 +𫭟 +𫭢 +𫭼 +𫮃 +𫰛 +𫵷 +𫶇 +𫷷 +𫸩 +𬀩 +𬀪 +𬂩 +𬃊 +𬇕 +𬇙 +𬇹 +𬉼 +𬊈 +𬊤 +𬌗 +𬍛 +𬍡 +𬍤 +𬒈 +𬒔 +𬒗 +𬕂 +𬘓 +𬘘 +𬘡 +𬘩 +𬘫 +𬘬 +𬘭 +𬘯 +𬙂 +𬙊 +𬙋 +𬜬 +𬜯 +𬞟 +𬟁 +𬟽 +𬣙 +𬣞 +𬣡 +𬣳 +𬤇 +𬤊 +𬤝 +𬨂 +𬨎 +𬩽 +𬪩 +𬬩 +𬬭 +𬬮 +𬬱 +𬬸 +𬬹 +𬬻 +𬬿 +𬭁 +𬭊 +𬭎 +𬭚 +𬭛 +𬭤 +𬭩 +𬭬 +𬭯 +𬭳 +𬭶 +𬭸 +𬭼 +𬮱 +𬮿 +𬯀 +𬯎 +𬱖 +𬱟 +𬳵 +𬳶 +𬳽 +𬳿 +𬴂 +𬴃 +𬴊 +𬶋 +𬶍 +𬶏 +𬶐 +𬶟 +𬶠 +𬶨 +𬶭 +𬶮 +𬷕 +𬸘 +𬸚 +𬸣 +𬸦 +𬸪 +𬹼 +𬺈 +𬺓 +🀄 +🃏 +🅰 +🅱 +🅾 +🅿 +🆎 +🆑 +🆒 +🆓 +🆔 +🆕 +🆖 +🆗 +🆘 +🆙 +🆚 +🇨 +🇩 +🇪 +🇫 +🇬 +🇮 +🇯 +🇰 +🇷 +🇺 +🈁 +🌀 +🌁 +🌂 +🌃 +🌄 +🌅 +🌆 +🌇 +🌈 +🌉 +🌊 +🌋 +🌌 +🌍 +🌎 +🌏 +🌐 +🌑 +🌒 +🌓 +🌔 +🌕 +🌖 +🌗 +🌘 +🌙 +🌚 +🌛 +🌜 +🌝 +🌞 +🌟 +🌠 +🌰 +🌱 +🌲 +🌳 +🌴 +🌵 +🌷 +🌸 +🌹 +🌺 +🌻 +🌼 +🌽 +🌾 +🌿 +🍀 +🍁 +🍂 +🍃 +🍄 +🍅 +🍆 +🍇 +🍈 +🍉 +🍊 +🍋 +🍌 +🍍 +🍎 +🍏 +🍐 +🍑 +🍒 +🍓 +🍔 +🍕 +🍖 +🍗 +🍘 +🍙 +🍚 +🍛 +🍜 +🍝 +🍞 +🍟 +🍠 +🍡 +🍢 +🍣 +🍤 +🍥 +🍦 +🍧 +🍨 +🍩 +🍪 +🍫 +🍬 +🍭 +🍮 +🍯 +🍰 +🍱 +🍲 +🍳 +🍴 +🍵 +🍶 +🍷 +🍸 +🍹 +🍺 +🍻 +🍼 +🎀 +🎁 +🎂 +🎃 +🎄 +🎅 +🎆 +🎇 +🎈 +🎉 +🎊 +🎋 +🎌 +🎍 +🎎 +🎏 +🎐 +🎑 +🎒 +🎓 +🎠 +🎡 +🎢 +🎣 +🎤 +🎥 +🎦 +🎧 +🎨 +🎩 +🎪 +🎫 +🎬 +🎭 +🎮 +🎯 +🎰 +🎱 +🎲 +🎳 +🎴 +🎵 +🎶 +🎷 +🎸 +🎹 +🎺 +🎻 +🎼 +🎽 +🎾 +🎿 +🏀 +🏁 +🏂 +🏃 +🏄 +🏆 +🏇 +🏈 +🏉 +🏊 +🏠 +🏡 +🏢 +🏣 +🏤 +🏥 +🏦 +🏧 +🏨 +🏩 +🏪 +🏫 +🏬 +🏭 +🏮 +🏯 +🏰 +🐀 +🐁 +🐂 +🐃 +🐄 +🐅 +🐆 +🐇 +🐈 +🐉 +🐊 +🐋 +🐌 +🐍 +🐎 +🐏 +🐐 +🐑 +🐒 +🐓 +🐔 +🐕 +🐖 +🐗 +🐘 +🐙 +🐚 +🐛 +🐜 +🐝 +🐞 +🐟 +🐠 +🐡 +🐢 +🐣 +🐤 +🐥 +🐦 +🐧 +🐨 +🐩 +🐪 +🐫 +🐬 +🐭 +🐮 +🐯 +🐰 +🐱 +🐲 +🐳 +🐴 +🐵 +🐶 +🐷 +🐸 +🐹 +🐺 +🐻 +🐼 +🐽 +🐾 +👀 +👂 +👃 +👄 +👅 +👆 +👇 +👈 +👉 +👊 +👋 +👌 +👍 +👎 +👏 +👐 +👑 +👒 +👓 +👔 +👕 +👖 +👗 +👘 +👙 +👚 +👛 +👜 +👝 +👞 +👟 +👠 +👡 +👢 +👣 +👤 +👥 +👦 +👧 +👨 +👩 +👪 +👫 +👬 +👭 +👮 +👯 +👰 +👱 +👲 +👳 +👴 +👵 +👶 +👷 +👸 +👹 +👺 +👻 +👼 +👽 +👾 +👿 +💀 +💁 +💂 +💃 +💄 +💅 +💆 +💇 +💈 +💉 +💊 +💋 +💌 +💍 +💎 +💏 +💐 +💑 +💒 +💓 +💔 +💕 +💖 +💗 +💘 +💙 +💚 +💛 +💜 +💝 +💞 +💟 +💠 +💡 +💢 +💣 +💤 +💥 +💦 +💧 +💨 +💩 +💪 +💫 +💬 +💭 +💮 +💯 +💰 +💲 +💳 +💴 +💵 +💶 +💷 +💸 +💹 +💺 +💻 +💼 +💽 +💾 +💿 +📀 +📁 +📂 +📃 +📄 +📅 +📆 +📇 +📈 +📉 +📊 +📋 +📌 +📍 +📎 +📏 +📐 +📑 +📒 +📓 +📔 +📕 +📖 +📗 +📘 +📙 +📚 +📛 +📜 +📝 +📞 +📟 +📠 +📡 +📢 +📣 +📤 +📥 +📦 +📧 +📨 +📩 +📪 +📫 +📬 +📭 +📮 +📯 +📰 +📱 +📲 +📳 +📴 +📵 +📶 +📷 +📹 +📺 +📻 +📼 +🔀 +🔁 +🔂 +🔃 +🔄 +🔅 +🔆 +🔇 +🔉 +🔊 +🔋 +🔌 +🔍 +🔎 +🔏 +🔐 +🔑 +🔒 +🔓 +🔔 +🔕 +🔖 +🔗 +🔘 +🔙 +🔚 +🔛 +🔜 +🔝 +🔞 +🔟 +🔠 +🔡 +🔢 +🔣 +🔤 +🔥 +🔦 +🔧 +🔨 +🔩 +🔪 +🔫 +🔬 +🔭 +🔮 +🔯 +🔰 +🔱 +🔲 +🔳 +🔴 +🔵 +🔶 +🔷 +🔸 +🔹 +🔺 +🔻 +🔼 +🔽 +🕐 +🕑 +🕒 +🕓 +🕔 +🕕 +🕖 +🕗 +🕘 +🕙 +🕚 +🕛 +🕜 +🕝 +🕞 +🕟 +🕠 +🕡 +🕢 +🕣 +🕤 +🕥 +🕦 +🕧 +🗻 +🗼 +🗽 +🗾 +🗿 +😀 +😁 +😂 +😃 +😄 +😅 +😆 +😇 +😈 +😉 +😊 +😋 +😌 +😍 +😎 +😏 +😐 +😑 +😒 +😓 +😔 +😕 +😖 +😗 +😘 +😙 +😚 +😛 +😜 +😝 +😞 +😟 +😠 +😡 +😢 +😣 +😤 +😥 +😦 +😧 +😨 +😩 +😪 +😫 +😬 +😭 +😮 +😯 +😰 +😱 +😲 +😳 +😴 +😵 +😶 +😷 +😸 +😹 +😺 +😻 +😼 +😽 +😾 +😿 +🙀 +🙅 +🙆 +🙇 +🙈 +🙉 +🙊 +🙋 +🙌 +🙍 +🙎 +🙏 +🚀 +🚁 +🚂 +🚃 +🚄 +🚅 +🚆 +🚇 +🚈 +🚉 +🚊 +🚌 +🚍 +🚎 +🚏 +🚐 +🚑 +🚒 +🚓 +🚔 +🚕 +🚖 +🚗 +🚘 +🚙 +🚚 +🚛 +🚜 +🚝 +🚞 +🚟 +🚠 +🚡 +🚢 +🚣 +🚤 +🚥 +🚦 +🚧 +🚨 +🚩 +🚪 +🚫 +🚬 +🚭 +🚮 +🚯 +🚰 +🚱 +🚲 +🚳 +🚴 +🚵 +🚶 +🚷 +🚸 +🚹 +🚺 +🚻 +🚼 +🚽 +🚾 +🚿 +🛀 +🛁 +🛂 +🛃 +🛄 +🛅 \ No newline at end of file