ofd-view 0.1.43 → 0.1.45

Sign up to get free protection for your applications and to get access to all the features.
package/lib/viewer.css CHANGED
@@ -2629,6 +2629,7 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
2629
2629
  }
2630
2630
 
2631
2631
  .treeItem > a {
2632
+ text-align: left;
2632
2633
  text-decoration: none;
2633
2634
  display: inline-block;
2634
2635
  min-width: 95%;
@@ -3242,20 +3243,6 @@ dialog :link {
3242
3243
  transform: rotate(-45deg);
3243
3244
  }
3244
3245
 
3245
- svg text {
3246
- -webkit-touch-callout: none;
3247
- -webkit-user-select: none;
3248
- -khtml-user-select: none;
3249
- -moz-user-select: none;
3250
- -ms-user-select: none;
3251
- user-select: none;
3252
- }
3253
-
3254
- .mask_div {
3255
- -webkit-touch-callout: none;
3256
- -webkit-user-select: none;
3257
- -khtml-user-select: none;
3258
- -moz-user-select: none;
3259
- -ms-user-select: none;
3260
- user-select: none;
3246
+ .highLight {
3247
+ background-color: rgba(255,255,0,.3);
3261
3248
  }
@@ -0,0 +1,251 @@
1
+ # Copyright 2012 Mozilla Foundation
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # Main toolbar buttons (tooltips and alt text for images)
16
+ previous.title=上一页
17
+ previous_label=上一页
18
+ next.title=下一页
19
+ next_label=下一页
20
+
21
+ # LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
22
+ page.title=页面
23
+ # LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
24
+ # representing the total number of pages in the document.
25
+ of_pages=/ {{pagesCount}}
26
+ # LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
27
+ # will be replaced by a number representing the currently visible page,
28
+ # respectively a number representing the total number of pages in the document.
29
+ page_of_pages=({{pageNumber}} / {{pagesCount}})
30
+
31
+ zoom_out.title=缩小
32
+ zoom_out_label=缩小
33
+ zoom_in.title=放大
34
+ zoom_in_label=放大
35
+ zoom.title=缩放
36
+ presentation_mode.title=切换到演示模式
37
+ presentation_mode_label=演示模式
38
+ open_file.title=打开文件
39
+ open_file_label=打开
40
+ print.title=打印
41
+ print_label=打印
42
+ download.title=下载
43
+ download_label=下载
44
+ bookmark.title=当前在看的内容(复制或在新窗口中打开)
45
+ bookmark_label=当前在看
46
+
47
+ # Secondary toolbar and context menu
48
+ tools.title=工具
49
+ tools_label=工具
50
+ first_page.title=转到第一页
51
+ first_page_label=转到第一页
52
+ last_page.title=转到最后一页
53
+ last_page_label=转到最后一页
54
+ page_rotate_cw.title=顺时针旋转
55
+ page_rotate_cw_label=顺时针旋转
56
+ page_rotate_ccw.title=逆时针旋转
57
+ page_rotate_ccw_label=逆时针旋转
58
+
59
+ cursor_text_select_tool.title=启用文本选择工具
60
+ cursor_text_select_tool_label=文本选择工具
61
+ cursor_hand_tool.title=启用手形工具
62
+ cursor_hand_tool_label=手形工具
63
+
64
+ scroll_page.title=使用页面滚动
65
+ scroll_page_label=页面滚动
66
+ scroll_vertical.title=使用垂直滚动
67
+ scroll_vertical_label=垂直滚动
68
+ scroll_horizontal.title=使用水平滚动
69
+ scroll_horizontal_label=水平滚动
70
+ scroll_wrapped.title=使用平铺滚动
71
+ scroll_wrapped_label=平铺滚动
72
+
73
+ spread_none.title=不加入衔接页
74
+ spread_none_label=单页视图
75
+ spread_odd.title=加入衔接页使奇数页作为起始页
76
+ spread_odd_label=双页视图
77
+ spread_even.title=加入衔接页使偶数页作为起始页
78
+ spread_even_label=书籍视图
79
+
80
+ # Document properties dialog box
81
+ document_properties.title=文档属性…
82
+ document_properties_label=文档属性…
83
+ document_properties_file_name=文件名:
84
+ document_properties_file_size=文件大小:
85
+ # LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
86
+ # will be replaced by the OFD file size in kilobytes, respectively in bytes.
87
+ document_properties_kb={{size_kb}} KB ({{size_b}} 字节)
88
+ # LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
89
+ # will be replaced by the OFD file size in megabytes, respectively in bytes.
90
+ document_properties_mb={{size_mb}} MB ({{size_b}} 字节)
91
+ document_properties_title=标题:
92
+ document_properties_author=作者:
93
+ document_properties_subject=主题:
94
+ document_properties_keywords=关键词:
95
+ document_properties_creation_date=创建日期:
96
+ document_properties_modification_date=修改日期:
97
+ # LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
98
+ # will be replaced by the creation/modification date, and time, of the OFD file.
99
+ document_properties_date_string={{date}}, {{time}}
100
+ document_properties_creator=创建者:
101
+ document_properties_producer=OFD 生成器:
102
+ document_properties_version=OFD 版本:
103
+ document_properties_page_count=页数:
104
+ document_properties_page_size=页面大小:
105
+ document_properties_page_size_unit_inches=英寸
106
+ document_properties_page_size_unit_millimeters=毫米
107
+ document_properties_page_size_orientation_portrait=纵向
108
+ document_properties_page_size_orientation_landscape=横向
109
+ document_properties_page_size_name_a3=A3
110
+ document_properties_page_size_name_a4=A4
111
+ document_properties_page_size_name_letter=文本
112
+ document_properties_page_size_name_legal=法律
113
+ # LOCALIZATION NOTE (document_properties_page_size_dimension_string):
114
+ # "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
115
+ # the size, respectively their unit of measurement and orientation, of the (current) page.
116
+ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}})
117
+ # LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
118
+ # "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
119
+ # the size, respectively their unit of measurement, name, and orientation, of the (current) page.
120
+ document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}})
121
+ # LOCALIZATION NOTE (document_properties_linearized): The linearization status of
122
+ # the document; usually called "Fast Web View" in English locales of Adobe software.
123
+ document_properties_linearized=快速 Web 视图:
124
+ document_properties_linearized_yes=是
125
+ document_properties_linearized_no=否
126
+ document_properties_close=关闭
127
+
128
+ print_progress_message=正在准备打印文档…
129
+ # LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
130
+ # a numerical per cent value.
131
+ print_progress_percent={{progress}}%
132
+ print_progress_close=取消
133
+
134
+ # Tooltips and alt text for side panel toolbar buttons
135
+ # (the _label strings are alt text for the buttons, the .title strings are
136
+ # tooltips)
137
+ toggle_sidebar.title=切换侧栏
138
+ toggle_sidebar_notification2.title=切换侧栏(文档所含的大纲/附件/图层)
139
+ toggle_sidebar_label=切换侧栏
140
+ document_outline.title=显示文档大纲(双击展开/折叠所有项)
141
+ document_outline_label=文档大纲
142
+ attachments.title=显示附件
143
+ attachments_label=附件
144
+ layers.title=显示图层(双击即可将所有图层重置为默认状态)
145
+ layers_label=图层
146
+ thumbs.title=显示缩略图
147
+ thumbs_label=缩略图
148
+ current_outline_item.title=查找当前大纲项目
149
+ current_outline_item_label=当前大纲项目
150
+ findbar.title=在文档中查找
151
+ findbar_label=查找
152
+
153
+ additional_layers=其他图层
154
+ # LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
155
+ page_landmark=第 {{page}} 页
156
+ # Thumbnails panel item (tooltip and alt text for images)
157
+ # LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
158
+ # number.
159
+ thumb_page_title=第 {{page}} 页
160
+ # LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
161
+ # number.
162
+ thumb_page_canvas=页面 {{page}} 的缩略图
163
+
164
+ # Find panel button title and messages
165
+ find_input.title=查找
166
+ find_input.placeholder=在文档中查找…
167
+ find_previous.title=查找词语上一次出现的位置
168
+ find_previous_label=上一页
169
+ find_next.title=查找词语后一次出现的位置
170
+ find_next_label=下一页
171
+ find_highlight=全部高亮显示
172
+ find_match_case_label=区分大小写
173
+ find_match_diacritics_label=匹配变音符号
174
+ find_entire_word_label=字词匹配
175
+ find_reached_top=到达文档开头,从末尾继续
176
+ find_reached_bottom=到达文档末尾,从开头继续
177
+ # LOCALIZATION NOTE (find_match_count): The supported plural forms are
178
+ # [one|two|few|many|other], with [other] as the default value.
179
+ # "{{current}}" and "{{total}}" will be replaced by a number representing the
180
+ # index of the currently active find result, respectively a number representing
181
+ # the total number of matches in the document.
182
+ find_match_count={[ plural(total) ]}
183
+ find_match_count[one]=第 {{current}} 项,共匹配 {{total}} 项
184
+ find_match_count[two]=第 {{current}} 项,共匹配 {{total}} 项
185
+ find_match_count[few]=第 {{current}} 项,共匹配 {{total}} 项
186
+ find_match_count[many]=第 {{current}} 项,共匹配 {{total}} 项
187
+ find_match_count[other]=第 {{current}} 项,共匹配 {{total}} 项
188
+ # LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
189
+ # [zero|one|two|few|many|other], with [other] as the default value.
190
+ # "{{limit}}" will be replaced by a numerical value.
191
+ find_match_count_limit={[ plural(limit) ]}
192
+ find_match_count_limit[zero]=超过 {{limit}} 项匹配
193
+ find_match_count_limit[one]=超过 {{limit}} 项匹配
194
+ find_match_count_limit[two]=超过 {{limit}} 项匹配
195
+ find_match_count_limit[few]=超过 {{limit}} 项匹配
196
+ find_match_count_limit[many]=超过 {{limit}} 项匹配
197
+ find_match_count_limit[other]=超过 {{limit}} 项匹配
198
+ find_not_found=找不到指定词语
199
+
200
+ # Error panel labels
201
+ error_more_info=更多信息
202
+ error_less_info=更少信息
203
+ error_close=关闭
204
+ # LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
205
+ # replaced by the OFD.JS version and build ID.
206
+ error_version_info=OFD.js v{{version}} (build: {{build}})
207
+ # LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
208
+ # english string describing the error.
209
+ error_message=信息:{{message}}
210
+ # LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
211
+ # trace.
212
+ error_stack=堆栈:{{stack}}
213
+ # LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
214
+ error_file=文件:{{file}}
215
+ # LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
216
+ error_line=行号:{{line}}
217
+ rendering_error=渲染页面时发生错误。
218
+
219
+ # Predefined zoom values
220
+ page_scale_width=适合页宽
221
+ page_scale_fit=适合页面
222
+ page_scale_auto=自动缩放
223
+ page_scale_actual=实际大小
224
+ # LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
225
+ # numerical scale value.
226
+ page_scale_percent={{scale}}%
227
+
228
+ # Loading indicator messages
229
+ loading=正在载入…
230
+ loading_error=载入 OFD 时发生错误。
231
+ invalid_file_error=无效或损坏的 OFD 文件。
232
+ missing_file_error=缺少 OFD 文件。
233
+ unexpected_response_error=意外的服务器响应。
234
+
235
+ # LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
236
+ # replaced by the modification date, and time, of the annotation.
237
+ annotation_date_string={{date}},{{time}}
238
+
239
+ # LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
240
+ # "{{type}}" will be replaced with an annotation type from a list defined in
241
+ # the OFD spec (32000-1:2008 Table 169 – Annotation types).
242
+ # Some common types are e.g.: "Check", "Text", "Comment", "Note"
243
+ text_annotation_type.alt=[{{type}} 注释]
244
+ password_label=输入密码以打开此 OFD 文件。
245
+ password_invalid=密码无效。请重试。
246
+ password_ok=确定
247
+ password_cancel=取消
248
+
249
+ printing_not_supported=警告:此浏览器尚未完整支持打印功能。
250
+ printing_not_ready=警告:此 OFD 未完成载入,无法打印。
251
+ web_fonts_disabled=Web 字体已被禁用:无法使用嵌入的 OFD 字体。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofd-view",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "main": "lib/ofd-view.umd.js",
5
5
  "files": [
6
6
  "lib/*",
@@ -13,13 +13,6 @@
13
13
  "ofdlib": "vue-cli-service build --target lib --name ofd-view --dest lib packages/index.js",
14
14
  "pdflib": "vue-cli-service build --target lib --name pdf-view --dest lib packages/index.js"
15
15
  },
16
- "dependencies": {
17
- "core-js": "^3.6.5",
18
- "vue": "^2.6.11",
19
- "parser_x.js": "1.0.25",
20
- "ofd.js": "1.3.25",
21
- "pdfjs-dist": "2.5.207"
22
- },
23
16
  "devDependencies": {
24
17
  "@babel/core": "^7.12.16",
25
18
  "@babel/eslint-parser": "^7.12.16",