Skip to content

Commit adbe894

Browse files
committed
Support for DeepZoom .dzi, ePub Open Packaging Format .opf and Navigation Center eXtended .ncx files.
1 parent bb81205 commit adbe894

6 files changed

Lines changed: 111 additions & 2 deletions

File tree

Application/Info.plist

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,22 @@
331331
</array>
332332
</dict>
333333
</dict>
334+
<dict>
335+
<key>UTTypeConformsTo</key>
336+
<array>
337+
<string>dyn.ah62d4rv4ge80k8xm</string>
338+
<string>public.xml</string>
339+
</array>
340+
<key>UTTypeIdentifier</key>
341+
<string>com.microsoft.dzi</string>
342+
<key>UTTypeTagSpecification</key>
343+
<dict>
344+
<key>public.filename-extension</key>
345+
<array>
346+
<string>dzi</string>
347+
</array>
348+
</dict>
349+
</dict>
334350
<dict>
335351
<key>UTTypeConformsTo</key>
336352
<array>
@@ -1199,6 +1215,38 @@
11991215
</array>
12001216
</dict>
12011217
</dict>
1218+
<dict>
1219+
<key>UTTypeConformsTo</key>
1220+
<array>
1221+
<string>public.xml</string>
1222+
<string>dyn.ah62d4rv4ge806252</string>
1223+
</array>
1224+
<key>UTTypeIdentifier</key>
1225+
<string>org.idpf.ncx</string>
1226+
<key>UTTypeTagSpecification</key>
1227+
<dict>
1228+
<key>public.filename-extension</key>
1229+
<array>
1230+
<string>ncx</string>
1231+
</array>
1232+
</dict>
1233+
</dict>
1234+
<dict>
1235+
<key>UTTypeConformsTo</key>
1236+
<array>
1237+
<string>public.xnl</string>
1238+
<string>dyn.ah62d4rv4ge8086dg</string>
1239+
</array>
1240+
<key>UTTypeIdentifier</key>
1241+
<string>org.idpf.opf</string>
1242+
<key>UTTypeTagSpecification</key>
1243+
<dict>
1244+
<key>public.filename-extension</key>
1245+
<array>
1246+
<string>opf</string>
1247+
</array>
1248+
</dict>
1249+
</dict>
12021250
<dict>
12031251
<key>UTTypeConformsTo</key>
12041252
<array>

Application/resources/settings.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ UTIs:
9696
dyn.ah62d4rv4ge80g65usm10y: *xml
9797
com.microsoft.csproj: *xml
9898

99+
dyn.ah62d4rv4ge80k8xm: *xml
100+
com.microsoft.dzi: *xml
101+
99102
com.microsoft.typescript:
100103
syntax: typescript
101104
dyn.ah62d4rv4ge80g7dx:
@@ -196,6 +199,12 @@ UTIs:
196199
syntax: txt
197200
dyn.ah62d4rv4ge81g25q:
198201
syntax: txt
202+
203+
dyn.ah62d4rv4ge806252: *xml
204+
org.idpf.ncx: *xml
205+
206+
dyn.ah62d4rv4ge8086dg: *xml
207+
org.idpf.opf: *xml
199208

200209
org.jsoncanvas.canvas: *json
201210
dyn.ah62d4rv4ge80g2pss3u1g: *json
@@ -626,6 +635,8 @@ extensions:
626635
dockerfile:
627636
syntax: dockerfile
628637

638+
dzi: *xml
639+
629640
edl:
630641
syntax: txt
631642

@@ -713,9 +724,13 @@ extensions:
713724
nc:
714725
syntax: txt
715726

727+
ncx: *xml
728+
716729
nf:
717730
syntax: java
718731

732+
opf: *xml
733+
719734
otio: *json
720735

721736
pck:

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
Changelog
22
=======
33

4+
### 2.1.29 (78)
5+
New Features:
6+
- Support for Microsoft DeepZoom files (`.dzi`) _as XML_.
7+
- Support for ePub [Open Packaging Format](https://idpf.org/epub/20/spec/OPF_2.0_latest.htm) (`.opf`) files _as XML_.
8+
- Support for ePub [Navigation Center eXtended](https://idpf.org/epub/20/spec/OPF_2.0_latest.htm#Section2.4.1) (`.ncx`) _as XML_.
9+
10+
411
### 2.1.28 (77)
512
New Features:
613
- Support for Gleam (`.gleam`) files.
714
- Support for Adobe UPX Javascript (`.psjs`).
815
- Support for [MiniScript](https://miniscript.org/) (`.ms`) files.
916
- Support for MetaTrader (`.mq4`, `.mq5`) files _as CPP_.
1017
- Support for JSON5 (`.json5`) files.
11-
- Support for JSON Canvas (`.canvas`) files _as `JSON`_
18+
- Support for JSON Canvas (`.canvas`) files _as `JSON`_.
1219
- Support for [Scala scale file format](https://huygens-fokker.org/scala/scl_format.html) (`.scl`) _as plain text_.
1320
- A custom homebrew cask to install the app bypassing the deprecated warning (a signed version of the app will be available later this year).
1421
- Updated Highlight to version 4.19.

QLExtension/Info.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<string>com.microsoft.csharp-source</string>
9191
<string>com.microsoft.csproj</string>
9292
<string>com.microsoft.c-sharp</string>
93+
<string>com.microsoft.dzi</string>
9394
<string>com.microsoft.f-sharp</string>
9495
<string>com.microsoft.ini</string>
9596
<string>com.microsoft.typescript</string>
@@ -156,6 +157,8 @@
156157
<string>org.haskell.haskell</string>
157158
<string>org.haskell.haskell-source</string>
158159
<string>org.haskell.literate-haskell-source</string>
160+
<string>org.idpf.ncx</string>
161+
<string>org.idpf.opf</string>
159162
<string>org.inno.source</string>
160163
<string>org.iso.sql</string>
161164
<string>org.julialang.julia</string>
@@ -440,6 +443,9 @@
440443
<string>dyn.ah62d4rv4ge8046mz</string>
441444
<string>dyn.ah62d4rv4ge8046my</string>
442445
<string>dyn.ah62d4rv4ge80y65tr24u</string>
446+
<string>dyn.ah62d4rv4ge80k8xm</string>
447+
<string>dyn.ah62d4rv4ge8086dg</string>
448+
<string>dyn.ah62d4rv4ge806252</string>
443449
</array>
444450
<key>QLSupportsSearchableItems</key>
445451
<false/>

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ The application can also handle some [plain files](#plain-files) **without exten
169169
- Eiffel project files (`.ecf`) _as `XML`_
170170
- Eiffel source files (`.e`, `.ex`, `.exs`)
171171
- Elixir files (`.ex`, `.exs`, `.heex`)
172+
- ePub [Navigation Center eXtended](https://idpf.org/epub/20/spec/OPF_2.0_latest.htm#Section2.4.1) (`.ncx`) _as XML_.
173+
- ePub [Open Packaging Format](https://idpf.org/epub/20/spec/OPF_2.0_latest.htm) (`.opf`) files _as XML_.
172174
- Erlang source files (`.erl`, `.hri`)
173175
- F# source files (`.fsx`, `.fs`)
174176
- fish source files (`.fish`)

TODO.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
1-
# TODO
1+
# TODO
22

33
- [ ] When compiling `highlight` avoid the creation of the static library `.a` before the CLI otherwise it will be linked in the executable instead of the dynamic one taking up space.
44
- [x] Sometime when compiling the app the custom lua plugins are not embedded.
55
- [ ] Update the application help.
66
- [ ] Consider whether to incorporate both light and dark styles in the html in order to automatically adapt to the system's style. For RTF [see this link](https://eclecticlight.co/2018/12/10/rendering-rich-text-in-dark-mode/).
7+
8+
9+
# SPUNTI
10+
11+
Nuovo qlsyntax
12+
13+
- Usare app firmata e sandbox. Questo comporta la riscrittura delle preferenze
14+
- Creare un groupcontainer condiviso tra app ed estensione in cui copiare le risorse di highlight
15+
- Evitare l’uso di colorize.sh e usare tutto da codice nativo a meno che non venga richiesto un pre processore
16+
- Gestire internamente alcuni preprocessori (come le plist binarie)
17+
- Valutare di gestire git da codice nativo senza tool esterni. Eventualmente rimuovere supporto di hg
18+
- Usare più appex con codice condiviso specializzati per determinate estensioni (ad esempio app, eseguibili o per i file senza estensioni) rendendo l’uso più modulare
19+
20+
- usare una funzione che riceva uti ed estensione e restituisca la sintassi da usare per l'evidenziazione.
21+
- Consentire di scegliere se l'output della quick look sia html o rtf (ottenuto dalla conversione dall'html) spiegando che rtf torna utile in certe modalità di anteprima (gallery? file info?) E valutare se il passaggio da html -> rtf sia molto peggiorativo della generazione diretta di codcie rtf
22+
23+
Avere una vista dei file per estensione, per ogni estensione gli uti associati:
24+
```swift
25+
import UniformTypeIdentifiers
26+
27+
let fileExtension = "jpg"
28+
29+
let types = UTType.types(tag: fileExtension,
30+
tagClass: .filenameExtension,
31+
conformingTo: nil)
32+
33+
for type in types {
34+
print(type.identifier)
35+
}
36+
37+
```

0 commit comments

Comments
 (0)