Skip to content

Commit

Permalink
Add yomitan pdf viewer (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored Aug 21, 2024
1 parent 4ddc2fe commit 253a583
Show file tree
Hide file tree
Showing 376 changed files with 132,705 additions and 0 deletions.
19,762 changes: 19,762 additions & 0 deletions yomitan-pdf-viewer/build/pdf.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions yomitan-pdf-viewer/build/pdf.mjs.map

Large diffs are not rendered by default.

242 changes: 242 additions & 0 deletions yomitan-pdf-viewer/build/pdf.sandbox.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions yomitan-pdf-viewer/build/pdf.sandbox.mjs.map

Large diffs are not rendered by default.

56,424 changes: 56,424 additions & 0 deletions yomitan-pdf-viewer/build/pdf.worker.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions yomitan-pdf-viewer/build/pdf.worker.mjs.map

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions yomitan-pdf-viewer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=web/">
<script type="text/javascript">
window.location.href = "web/"
</script>
<title>Page Redirection</title>
</head>
<body>
Attempting to redirect to:
<br>
<a href="web/">https://yomitan.wiki/yomitan-pdf-viewer/web</a>
</body>
</html>
1 change: 1 addition & 0 deletions yomitan-pdf-viewer/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python -m http.server --bind localhost
10 changes: 10 additions & 0 deletions yomitan-pdf-viewer/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# get latest github tag minus the "v" on front
pdfjs_version=$(curl "https://api.github.com/repos/mozilla/pdf.js/releases/latest" | jq -r '.tag_name' | sed 's/^v//')

wget "https://github.com/mozilla/pdf.js/releases/download/v$pdfjs_version/pdfjs-$pdfjs_version-dist.zip"
unzip -o "pdfjs-$pdfjs_version-dist.zip" "web/*" -d "."
unzip -o "pdfjs-$pdfjs_version-dist.zip" "build/*" -d "."
mv "./web/viewer.html" "./web/index.html"
cp "yomitan-pdf-viewer.pdf" "./web/compressed.tracemonkey-pldi-09.pdf"

rm "pdfjs-$pdfjs_version-dist.zip"
Binary file added yomitan-pdf-viewer/web/cmaps/78-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78ms-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/78ms-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/83pv-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/90ms-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/90ms-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/90msp-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/90msp-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/90pv-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/90pv-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Add-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Add-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Add-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Add-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-0.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-1.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-2.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-3.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-4.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-5.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-CNS1-6.bcmap
Binary file not shown.
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-0.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-1.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-2.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-3.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-4.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-5.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-GB1-UCS2.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-0.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-1.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-2.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-3.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-4.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-5.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Japan1-6.bcmap
Binary file not shown.
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Korea1-0.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Korea1-1.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Adobe-Korea1-2.bcmap
Binary file not shown.
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/B5pc-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/B5pc-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/CNS-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/CNS-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/CNS1-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/CNS1-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/CNS2-H.bcmap
Binary file not shown.
3 changes: 3 additions & 0 deletions yomitan-pdf-viewer/web/cmaps/CNS2-V.bcmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
�RCopyright 1990-2009 Adobe Systems Incorporated.
All rights reserved.
See ./LICENSE�CNS2-H
Binary file added yomitan-pdf-viewer/web/cmaps/ETHK-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/ETHK-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/ETen-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/ETen-B5-V.bcmap
Binary file not shown.
3 changes: 3 additions & 0 deletions yomitan-pdf-viewer/web/cmaps/ETenms-B5-H.bcmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
�RCopyright 1990-2009 Adobe Systems Incorporated.
All rights reserved.
See ./LICENSE� ETen-B5-H` ^
Binary file added yomitan-pdf-viewer/web/cmaps/ETenms-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Ext-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Ext-RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Ext-RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Ext-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GB-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GB-EUC-V.bcmap
Binary file not shown.
4 changes: 4 additions & 0 deletions yomitan-pdf-viewer/web/cmaps/GB-H.bcmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
�RCopyright 1990-2009 Adobe Systems Incorporated.
All rights reserved.
See ./LICENSE!!��]aX!!]`�21�> �p �z�$]��"R�d�-U�7�*�4�%�+ �Z �{�/�%�<�9K�b�1]�.�"� �`]�,�"]�
�"]�h�"]�F�"]�$�"]��"]�`�"]�>�"]��"]�z�"]�X�"]�6�"]��"]�r�"]�P�"]�.�"]� �"]�j�"]�H�"]�&�"]��"]�b�"]�@�"]��"]�|�"]�Z�"]�8�"]��"]�t�"]�R�"]�0�"]��"]�l�"]�J�"]�(�"]��"]�d�"]�B�"]� �"X�~�']�W�"]�5�"]��"]�q�"]�O�"]�-�"]� �"]�i�"]�G�"]�%�"]��"]�a�"]�?�"]��"]�{�"]�Y�"]�7�"]��"]�s�"]�Q�"]�/�"]��"]�k�"]�I�"]�'�"]��"]�c�"]�A�"]��"]�}�"]�[�"]�9
Expand Down
Binary file added yomitan-pdf-viewer/web/cmaps/GB-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBK-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBK-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBK2K-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBK2K-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBKp-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBKp-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBT-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBT-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBT-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBT-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBTpc-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBTpc-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBpc-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/GBpc-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKdla-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKdla-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKdlb-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKdlb-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKgccs-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKgccs-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKm314-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKm314-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKm471-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKm471-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKscs-B5-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/HKscs-B5-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Hankaku.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Hiragana.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSC-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSC-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSC-Johab-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSC-Johab-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSCms-UHC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSCms-UHC-HW-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSCms-UHC-HW-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSCms-UHC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSCpc-EUC-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/KSCpc-EUC-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Katakana.bcmap
Binary file not shown.
36 changes: 36 additions & 0 deletions yomitan-pdf-viewer/web/cmaps/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
%%Copyright: -----------------------------------------------------------
%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated.
%%Copyright: All rights reserved.
%%Copyright:
%%Copyright: Redistribution and use in source and binary forms, with or
%%Copyright: without modification, are permitted provided that the
%%Copyright: following conditions are met:
%%Copyright:
%%Copyright: Redistributions of source code must retain the above
%%Copyright: copyright notice, this list of conditions and the following
%%Copyright: disclaimer.
%%Copyright:
%%Copyright: Redistributions in binary form must reproduce the above
%%Copyright: copyright notice, this list of conditions and the following
%%Copyright: disclaimer in the documentation and/or other materials
%%Copyright: provided with the distribution.
%%Copyright:
%%Copyright: Neither the name of Adobe Systems Incorporated nor the names
%%Copyright: of its contributors may be used to endorse or promote
%%Copyright: products derived from this software without specific prior
%%Copyright: written permission.
%%Copyright:
%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%%Copyright: -----------------------------------------------------------
Binary file added yomitan-pdf-viewer/web/cmaps/NWP-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/NWP-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/RKSJ-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/RKSJ-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/Roman.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UCS2-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UCS2-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UTF16-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UTF16-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UTF32-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UTF32-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UTF8-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniCNS-UTF8-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UCS2-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UCS2-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UTF16-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UTF16-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UTF32-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UTF32-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UTF8-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniGB-UTF8-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UCS2-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UCS2-HW-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UCS2-HW-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UCS2-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UTF16-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UTF16-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UTF32-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UTF32-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UTF8-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS-UTF8-V.bcmap
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJIS2004-UTF8-V.bcmap
Binary file not shown.
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJISPro-UCS2-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniJISPro-UTF8-V.bcmap
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UCS2-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UCS2-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UTF16-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UTF16-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UTF32-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UTF32-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UTF8-H.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/UniKS-UTF8-V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/V.bcmap
Binary file not shown.
Binary file added yomitan-pdf-viewer/web/cmaps/WP-Symbol.bcmap
Binary file not shown.
Binary file not shown.
111 changes: 111 additions & 0 deletions yomitan-pdf-viewer/web/debugger.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/* Copyright 2014 Mozilla Foundation
*
* 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.
*/

:root {
--panel-width: 300px;
}

#PDFBug,
#PDFBug :is(input, button, select) {
font: message-box;
}
#PDFBug {
background-color: rgb(255 255 255);
border: 1px solid rgb(102 102 102);
position: fixed;
top: 32px;
right: 0;
bottom: 0;
font-size: 10px;
padding: 0;
width: var(--panel-width);
}
#PDFBug .controls {
background: rgb(238 238 238);
border-bottom: 1px solid rgb(102 102 102);
padding: 3px;
}
#PDFBug .panels {
inset: 27px 0 0;
overflow: auto;
position: absolute;
}
#PDFBug .panels > div {
padding: 5px;
}
#PDFBug button.active {
font-weight: bold;
}
.debuggerShowText,
.debuggerHideText:hover {
background-color: rgb(255 255 0 / 0.25);
}
#PDFBug .stats {
font-family: courier;
font-size: 10px;
white-space: pre;
}
#PDFBug .stats .title {
font-weight: bold;
}
#PDFBug table {
font-size: 10px;
white-space: pre;
}
#PDFBug table.showText {
border-collapse: collapse;
text-align: center;
}
#PDFBug table.showText,
#PDFBug table.showText :is(tr, td) {
border: 1px solid black;
padding: 1px;
}
#PDFBug table.showText td.advance {
color: grey;
}

#viewer.textLayer-visible .textLayer {
opacity: 1;
}

#viewer.textLayer-visible .canvasWrapper {
background-color: rgb(128 255 128);
}

#viewer.textLayer-visible .canvasWrapper canvas {
mix-blend-mode: screen;
}

#viewer.textLayer-visible .textLayer span {
background-color: rgb(255 255 0 / 0.1);
color: rgb(0 0 0);
border: solid 1px rgb(255 0 0 / 0.5);
box-sizing: border-box;
}

#viewer.textLayer-visible .textLayer span[aria-owns] {
background-color: rgb(255 0 0 / 0.3);
}

#viewer.textLayer-hover .textLayer span:hover {
background-color: rgb(255 255 255);
color: rgb(0 0 0);
}

#viewer.textLayer-shadow .textLayer span {
background-color: rgb(255 255 255 / 0.6);
color: rgb(0 0 0);
}
Loading

0 comments on commit 253a583

Please sign in to comment.