@readium/shared 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +8 -7
- package/dist/_virtual/preload-helper.js +1 -0
- package/dist/fetcher/Fetcher.js +1 -0
- package/dist/fetcher/HttpFetcher.js +1 -0
- package/dist/fetcher/Resource.js +1 -0
- package/dist/index.js +1 -4993
- package/dist/locales/publication-metadata/ar.json.js +1 -0
- package/dist/locales/publication-metadata/da.json.js +1 -0
- package/dist/locales/publication-metadata/el.json.js +1 -0
- package/dist/locales/publication-metadata/en.json.js +1 -0
- package/dist/locales/publication-metadata/es.json.js +1 -0
- package/dist/locales/publication-metadata/et.json.js +1 -0
- package/dist/locales/publication-metadata/fi.json.js +1 -0
- package/dist/locales/publication-metadata/fr.json.js +1 -0
- package/dist/locales/publication-metadata/it.json.js +1 -0
- package/dist/locales/publication-metadata/pl.json.js +1 -0
- package/dist/locales/publication-metadata/pt_PT.json.js +1 -0
- package/dist/locales/publication-metadata/sv.json.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/constants.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/index.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-attribute.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-class.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-fallback.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-id.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-nth-child.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-nth-of-type.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/selector-tag.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/types.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-cartesian.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-data.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-dom.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-element-data.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-iselement.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-messages.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-options.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-powerset.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-selectors.js +1 -0
- package/dist/node_modules/.pnpm/css-selector-generator@3.8.0/node_modules/css-selector-generator/esm/utilities-typescript.js +1 -0
- package/dist/opds/Acquisition.js +1 -0
- package/dist/opds/Availability.js +1 -0
- package/dist/opds/Copies.js +1 -0
- package/dist/opds/Holds.js +1 -0
- package/dist/opds/Price.js +1 -0
- package/dist/publication/AltIdentifier.js +1 -0
- package/dist/publication/BelongsTo.js +1 -0
- package/dist/publication/Contributor.js +1 -0
- package/dist/publication/GuidedNavigation.js +1 -0
- package/dist/publication/Layout.js +1 -0
- package/dist/publication/Link.js +1 -0
- package/dist/publication/LocalizedString.js +1 -0
- package/dist/publication/Locator.js +1 -0
- package/dist/publication/LocatorCollection.js +1 -0
- package/dist/publication/Manifest.js +1 -0
- package/dist/publication/Metadata.js +1 -0
- package/dist/publication/Profiles.js +1 -0
- package/dist/publication/Properties.js +1 -0
- package/dist/publication/Publication.js +1 -0
- package/dist/publication/PublicationCollection.js +1 -0
- package/dist/publication/ReadingProgression.js +1 -0
- package/dist/publication/Subject.js +1 -0
- package/dist/publication/TDM.js +1 -0
- package/dist/publication/accessibility/Accessibility.js +1 -0
- package/dist/publication/accessibility/AccessibilityMetadataDisplayGuide.js +1 -0
- package/dist/publication/accessibility/Localization.js +1 -0
- package/dist/publication/accessibility/SupportedLanguages.js +1 -0
- package/dist/publication/encryption/Encryption.js +1 -0
- package/dist/publication/encryption/Properties.js +1 -0
- package/dist/publication/encryption/index.js +1 -0
- package/dist/publication/epub/MediaOverlay.js +1 -0
- package/dist/publication/epub/Metadata.js +1 -0
- package/dist/publication/epub/Properties.js +1 -0
- package/dist/publication/epub/Publication.js +1 -0
- package/dist/publication/epub/index.js +1 -0
- package/dist/publication/html/DomRange.js +1 -0
- package/dist/publication/html/DomRangePoint.js +1 -0
- package/dist/publication/html/Locations.js +1 -0
- package/dist/publication/html/index.js +1 -0
- package/dist/publication/opds/Properties.js +1 -0
- package/dist/publication/opds/Publication.js +1 -0
- package/dist/publication/opds/index.js +1 -0
- package/dist/publication/services/content/Content.js +2 -0
- package/dist/publication/services/content/ContentTokenizer.js +1 -0
- package/dist/publication/services/content/Iterator.js +1 -0
- package/dist/publication/services/content/element/attributes.js +1 -0
- package/dist/publication/services/content/element/element.js +1 -0
- package/dist/publication/services/content/element/text_role.js +1 -0
- package/dist/publication/services/content/iterators/HTMLResourceContentIterator.js +1 -0
- package/dist/publication/services/content/iterators/PDFTextContentIterator.js +1 -0
- package/dist/publication/services/content/iterators/PublicationContentIterator.js +1 -0
- package/dist/publication/services/content/iterators/helpers.js +1 -0
- package/dist/publication/services/timeline/Timeline.js +1 -0
- package/dist/publication/services/timeline/audio.js +1 -0
- package/dist/publication/services/timeline/html.js +1 -0
- package/dist/publication/services/timeline/index.js +1 -0
- package/dist/util/JSONParse.js +1 -0
- package/dist/util/URITemplate.js +1 -0
- package/dist/util/mediatype/MediaType.js +1 -0
- package/dist/util/npt.js +1 -0
- package/dist/util/tokenizer/TextTokenizer.js +1 -0
- package/dist/util/tokenizer/tokenize-english/abbreviations.js +1 -0
- package/dist/util/tokenizer/tokenize-english/index.js +2 -0
- package/dist/util/tokenizer/tokenize-english/utils.js +1 -0
- package/dist/util/tokenizer/tokenize-text/index.js +1 -0
- package/dist/util/tokenizer/tokenize-text/tokens.js +1 -0
- package/package.json +26 -19
- package/src/locales/publication-metadata/ar.json +402 -0
- package/src/locales/publication-metadata/brh.json +1 -0
- package/src/locales/publication-metadata/da.json +310 -0
- package/src/locales/publication-metadata/el.json +310 -0
- package/src/locales/publication-metadata/en.json +310 -0
- package/src/locales/publication-metadata/es.json +333 -0
- package/src/locales/publication-metadata/et.json +310 -0
- package/src/locales/publication-metadata/fi.json +310 -0
- package/src/locales/publication-metadata/fr.json +333 -0
- package/src/locales/publication-metadata/he.json +9 -0
- package/src/locales/publication-metadata/it.json +333 -0
- package/src/locales/publication-metadata/lt.json +8 -0
- package/src/locales/publication-metadata/pl.json +333 -0
- package/src/locales/publication-metadata/pt_PT.json +329 -0
- package/src/locales/publication-metadata/sv.json +310 -0
- package/src/locales/publication-metadata/tr.json +51 -0
- package/src/locales/publication-metadata/uk.json +1 -0
- package/src/publication/Link.ts +2 -6
- package/src/publication/Locator.ts +21 -3
- package/src/publication/Manifest.ts +5 -7
- package/src/publication/Publication.ts +2 -1
- package/src/publication/accessibility/Localization.ts +12 -14
- package/src/publication/accessibility/SupportedLanguages.ts +1 -1
- package/src/publication/encryption/Properties.ts +3 -15
- package/src/publication/epub/Metadata.ts +6 -12
- package/src/publication/epub/Properties.ts +3 -13
- package/src/publication/epub/Publication.ts +18 -39
- package/src/publication/html/Locations.ts +54 -101
- package/src/publication/opds/Properties.ts +21 -66
- package/src/publication/opds/Publication.ts +3 -9
- package/src/publication/services/content/iterators/HTMLResourceContentIterator.ts +3 -1
- package/src/publication/services/timeline/Timeline.ts +268 -59
- package/src/publication/services/timeline/TimelineItem.ts +3 -3
- package/src/publication/services/timeline/audio.ts +31 -0
- package/src/publication/services/timeline/html.ts +5 -0
- package/src/publication/services/timeline/index.ts +12 -0
- package/src/util/npt.ts +19 -0
- package/types/src/publication/encryption/Properties.d.ts +2 -9
- package/types/src/publication/epub/Metadata.d.ts +3 -6
- package/types/src/publication/epub/Properties.d.ts +2 -10
- package/types/src/publication/epub/Publication.d.ts +7 -18
- package/types/src/publication/html/Locations.d.ts +15 -44
- package/types/src/publication/opds/Properties.d.ts +8 -36
- package/types/src/publication/opds/Publication.d.ts +2 -5
- package/types/src/publication/services/timeline/Timeline.d.ts +78 -12
- package/types/src/publication/services/timeline/TimelineItem.d.ts +3 -3
- package/types/src/publication/services/timeline/audio.d.ts +4 -0
- package/types/src/publication/services/timeline/html.d.ts +4 -0
- package/types/src/publication/services/timeline/index.d.ts +6 -0
- package/types/src/util/npt.d.ts +10 -0
- package/dist/ar-DyHX_uy2.js +0 -7
- package/dist/da-Dct0PS3E.js +0 -7
- package/dist/fr-C5HEel98.js +0 -7
- package/dist/index.umd.cjs +0 -3
- package/dist/it-DFOBoXGy.js +0 -7
- package/dist/pt_PT-Di3sVjze.js +0 -7
- package/dist/sv-BfzAFsVN.js +0 -7
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { Links } from '../Link.ts';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Identifies fundamental structural components of the publication in order to enable Reading
|
|
11
|
-
* Systems to provide the User efficient access to them.
|
|
12
|
-
*/
|
|
13
|
-
getLandmarks(): Links | undefined;
|
|
14
|
-
getListOfAudioClips(): Links | undefined;
|
|
15
|
-
getListOfIllustrations(): Links | undefined;
|
|
16
|
-
getListOfTables(): Links | undefined;
|
|
17
|
-
getListOfVideoClips(): Links | undefined;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
2
|
+
import { Publication } from '../Publication.ts';
|
|
3
|
+
export declare function getPageList(pub: Publication): Links | undefined;
|
|
4
|
+
export declare function getLandmarks(pub: Publication): Links | undefined;
|
|
5
|
+
export declare function getListOfAudioClips(pub: Publication): Links | undefined;
|
|
6
|
+
export declare function getListOfIllustrations(pub: Publication): Links | undefined;
|
|
7
|
+
export declare function getListOfTables(pub: Publication): Links | undefined;
|
|
8
|
+
export declare function getListOfVideoClips(pub: Publication): Links | undefined;
|
|
@@ -1,45 +1,16 @@
|
|
|
1
|
+
import { LocatorLocations } from '../Locator.ts';
|
|
1
2
|
import { DomRange } from './DomRange.ts';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* An HTML DOM range.
|
|
18
|
-
*/
|
|
19
|
-
getDomRange(): DomRange | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* All named parameters found in the fragments, such as `p=5`.
|
|
22
|
-
*/
|
|
23
|
-
fragmentParameters(): Map<string, string>;
|
|
24
|
-
/**
|
|
25
|
-
* HTML ID fragment identifier.
|
|
26
|
-
*/
|
|
27
|
-
htmlId(): string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Page fragment identifier, used for example in PDF.
|
|
30
|
-
*/
|
|
31
|
-
page(): number | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Temporal Dimension media fragment, used for example in audiobooks.
|
|
34
|
-
*
|
|
35
|
-
* https://www.w3.org/TR/media-frags/
|
|
36
|
-
*/
|
|
37
|
-
time(): number | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Spatial Dimension media fragment, used for example in audiobooks.
|
|
40
|
-
*
|
|
41
|
-
* https://www.w3.org/TR/media-frags/
|
|
42
|
-
*/
|
|
43
|
-
space(): [number, number, number, number] | undefined;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
3
|
+
export declare function getCssSelector(loc: LocatorLocations): string | undefined;
|
|
4
|
+
export declare function getPartialCfi(loc: LocatorLocations): string | undefined;
|
|
5
|
+
export declare function getDomRange(loc: LocatorLocations): DomRange | undefined;
|
|
6
|
+
export declare function getFragmentParameters(loc: LocatorLocations): Map<string, string>;
|
|
7
|
+
export declare function getHtmlId(loc: LocatorLocations): string | undefined;
|
|
8
|
+
export declare function getPage(loc: LocatorLocations): number | undefined;
|
|
9
|
+
export declare function getTime(loc: LocatorLocations): number | undefined;
|
|
10
|
+
export declare function getSpace(loc: LocatorLocations): {
|
|
11
|
+
unit: "pixel" | "percent";
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
} | undefined;
|
|
@@ -1,38 +1,10 @@
|
|
|
1
1
|
import { Copies, Acquisition, Holds, Price, Availability } from '../../opds/index.ts';
|
|
2
2
|
import { Link } from '../Link.ts';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
getPrice(): Price | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Indirect acquisition provides a hint for the expected media type that will be acquired after
|
|
15
|
-
* additional steps.
|
|
16
|
-
*/
|
|
17
|
-
getIndirectAcquisitions(): Array<Acquisition> | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Library-specific features when a specific book is unavailable but provides a hold list.
|
|
20
|
-
*/
|
|
21
|
-
getHolds(): Holds | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Library-specific feature that contains information about the copies that a library has acquired.
|
|
24
|
-
*/
|
|
25
|
-
getCopies(): Copies | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Indicated the availability of a given resource.
|
|
28
|
-
*/
|
|
29
|
-
getAvailability(): Availability | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Indicates that the linked resource supports authentication with the associated Authentication
|
|
32
|
-
* Document.
|
|
33
|
-
*
|
|
34
|
-
* See https://specs.opds.io/authentication-for-opds-1.0.html
|
|
35
|
-
*/
|
|
36
|
-
getAuthenticate(): Link | undefined;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
3
|
+
import { Properties } from '../Properties.ts';
|
|
4
|
+
export declare function getNumberOfItems(properties: Properties): number | undefined;
|
|
5
|
+
export declare function getPrice(properties: Properties): Price | undefined;
|
|
6
|
+
export declare function getIndirectAcquisitions(properties: Properties): Array<Acquisition> | undefined;
|
|
7
|
+
export declare function getHolds(properties: Properties): Holds | undefined;
|
|
8
|
+
export declare function getCopies(properties: Properties): Copies | undefined;
|
|
9
|
+
export declare function getAvailability(properties: Properties): Availability | undefined;
|
|
10
|
+
export declare function getAuthenticate(properties: Properties): Link | undefined;
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { Link, Links } from "../../Link.ts";
|
|
2
2
|
import { Locator } from "../../Locator.ts";
|
|
3
|
+
import { Profile } from "../../Profiles.ts";
|
|
3
4
|
import { TimelineItem } from "./TimelineItem.ts";
|
|
4
|
-
interface PublicationLike {
|
|
5
|
+
export interface PublicationLike {
|
|
5
6
|
toc?: Links;
|
|
6
7
|
readingOrder: Links;
|
|
8
|
+
metadata?: {
|
|
9
|
+
conformsTo?: Profile[];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A TOC entry, mirroring `publication.toc`'s authored hierarchy and
|
|
14
|
+
* contextualized with display-ready progression. When a publication has no
|
|
15
|
+
* `toc` at all, falls back to one flat entry per reading-order item.
|
|
16
|
+
*
|
|
17
|
+
* Exactly one of `position`/`timestamp` is populated, depending on the
|
|
18
|
+
* publication's profile.
|
|
19
|
+
*/
|
|
20
|
+
export interface ContextualizedTocEntry {
|
|
21
|
+
link: Link;
|
|
22
|
+
/** Display-ready label for non-audio profiles: a Positions List position for EPUB, a page number for PDF (e.g. "42"). */
|
|
23
|
+
position?: string;
|
|
24
|
+
/** Display-ready formatted time for audiobooks (e.g. "27:27"). */
|
|
25
|
+
timestamp?: string;
|
|
26
|
+
children?: ContextualizedTocEntry[];
|
|
7
27
|
}
|
|
8
28
|
/**
|
|
9
29
|
* A publication's timeline, built once from its reading order and table of contents.
|
|
@@ -14,26 +34,50 @@ interface PublicationLike {
|
|
|
14
34
|
* 2. Populate flat children — all TOC fragment entries that reference the
|
|
15
35
|
* resource, collected depth-first in TOC declaration order.
|
|
16
36
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
37
|
+
* `contextualizedToc` returns the authored TOC hierarchy (see
|
|
38
|
+
* `ContextualizedTocEntry`), each entry contextualized with progression.
|
|
39
|
+
* `tocEntryFor(item)` maps a `TimelineItem` (e.g. from
|
|
40
|
+
* `locate()`) back to its entry in that hierarchy. TOC entries whose href
|
|
41
|
+
* does not match any reading order item are ignored.
|
|
20
42
|
*
|
|
21
|
-
* The `depth` build option limits how many levels deep into the TOC tree
|
|
22
|
-
* title resolution
|
|
23
|
-
* entries; level 2 = their children; etc.
|
|
43
|
+
* The `depth` build option limits how many levels deep into the TOC tree
|
|
44
|
+
* title resolution, child collection, and `contextualizedToc` traversal may
|
|
45
|
+
* look. Level 1 = top-level TOC entries; level 2 = their children; etc.
|
|
46
|
+
* `undefined` means no limit.
|
|
24
47
|
*/
|
|
25
48
|
export declare class Timeline {
|
|
26
49
|
private readonly _allItems;
|
|
27
50
|
private readonly linkMap;
|
|
51
|
+
private readonly _conformsTo;
|
|
52
|
+
private readonly tocLinks;
|
|
28
53
|
private _depth;
|
|
54
|
+
/**
|
|
55
|
+
* Depth used for `contextualizedToc` traversal. Tracks `_depth`, but is
|
|
56
|
+
* seeded independently from `Timeline.build()`'s `depth` option: unlike
|
|
57
|
+
* `_depth`, which only ever triggers `items`/`flat` re-trimming via the
|
|
58
|
+
* runtime `depth` setter, the TOC tree is walked fresh from `tocLinks`
|
|
59
|
+
* every time, so there's no equivalent "already baked in, don't reapply"
|
|
60
|
+
* hazard to avoid.
|
|
61
|
+
*/
|
|
62
|
+
private _tocDepth;
|
|
29
63
|
private _items;
|
|
30
64
|
private _flat;
|
|
65
|
+
private _toc;
|
|
66
|
+
private _linkToItem;
|
|
31
67
|
/** Populated when depth is set; maps cloned items from trimToDepth back to their Links. */
|
|
32
68
|
private _trimmedLinkMap;
|
|
33
|
-
constructor(items: TimelineItem[], linkMap: Map<TimelineItem, Link
|
|
69
|
+
constructor(items: TimelineItem[], linkMap: Map<TimelineItem, Link>, conformsTo?: readonly Profile[], tocLinks?: Link[], tocDepth?: number | undefined);
|
|
34
70
|
static build(publication: PublicationLike, options?: {
|
|
35
71
|
depth?: number;
|
|
36
72
|
}): Timeline;
|
|
73
|
+
/**
|
|
74
|
+
* Augments all items in the timeline by applying the mapper's returned patch.
|
|
75
|
+
* The mapper receives the item and its original manifest Link, and returns
|
|
76
|
+
* a partial TimelineItem — any fields it sets will overwrite the item's
|
|
77
|
+
* current value. Use this to populate `position`, `scroll`, `role`, or any
|
|
78
|
+
* future TimelineItem fields from format-specific data.
|
|
79
|
+
*/
|
|
80
|
+
augment(mapper: (item: TimelineItem, link: Link) => Partial<TimelineItem>): void;
|
|
37
81
|
/**
|
|
38
82
|
* The active depth limit for TOC traversal (title resolution and child
|
|
39
83
|
* collection). `undefined` means unlimited. Setting the same value again
|
|
@@ -49,10 +93,25 @@ export declare class Timeline {
|
|
|
49
93
|
next: TimelineItem | undefined;
|
|
50
94
|
};
|
|
51
95
|
segmentsForHref(href: string): TimelineItem[];
|
|
52
|
-
itemAtProgression(href: string, progression: number, duration?: number): TimelineItem | undefined;
|
|
53
96
|
ancestors(item: TimelineItem): TimelineItem[];
|
|
54
97
|
linkFor(item: TimelineItem): Link | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* The authored TOC, contextualized with display-ready progression. Mirrors
|
|
100
|
+
* `publication.toc`'s authored hierarchy (respecting `depth`), falling
|
|
101
|
+
* back to one flat entry per reading-order item when there's no toc at
|
|
102
|
+
* all. Cached; invalidated when `depth` changes.
|
|
103
|
+
*/
|
|
104
|
+
get contextualizedToc(): ContextualizedTocEntry[];
|
|
105
|
+
/**
|
|
106
|
+
* Maps a `TimelineItem` (typically from `locate()`) to its `ContextualizedTocEntry`:
|
|
107
|
+
* a direct match first, falling back to the nearest preceding toc entry
|
|
108
|
+
* for that resource when there's no exact match (e.g. a mid-resource
|
|
109
|
+
* audio position between chapter markers).
|
|
110
|
+
*/
|
|
111
|
+
tocEntryFor(current: TimelineItem): ContextualizedTocEntry | undefined;
|
|
55
112
|
private get flat();
|
|
113
|
+
/** All items flattened from _allItems, depth-independent — used by augment(). */
|
|
114
|
+
private get flatAll();
|
|
56
115
|
/**
|
|
57
116
|
* Resolve a display title for `bare` from the TOC, looking no deeper than
|
|
58
117
|
* `maxDepth` levels (1 = top-level entries only). Priority:
|
|
@@ -80,12 +139,19 @@ export declare class Timeline {
|
|
|
80
139
|
* explicit beginning of the file).
|
|
81
140
|
*/
|
|
82
141
|
private static isStartOfResource;
|
|
142
|
+
private get linkToItem();
|
|
143
|
+
private buildTocEntries;
|
|
144
|
+
/** All toc Links flattened, respecting the same depth limit as `buildTocEntries`. */
|
|
145
|
+
private tocLinksFlat;
|
|
146
|
+
private entryFor;
|
|
147
|
+
private resourceStartItem;
|
|
148
|
+
private findTocEntryByLink;
|
|
149
|
+
private nearestTocEntryForResource;
|
|
83
150
|
private static trimToDepth;
|
|
84
151
|
private flattenItems;
|
|
85
152
|
private itemStartTime;
|
|
86
|
-
private
|
|
87
|
-
private timeFromItem;
|
|
153
|
+
private itemMatchesHref;
|
|
88
154
|
private ancestorPath;
|
|
155
|
+
private itemScrollPosition;
|
|
89
156
|
private static bareHref;
|
|
90
157
|
}
|
|
91
|
-
export {};
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* show previous/next as chapter titles, group search results by chapter, etc.
|
|
7
7
|
*/
|
|
8
8
|
export interface TimelineItem {
|
|
9
|
-
/** Display title of this entry. */
|
|
10
|
-
title
|
|
9
|
+
/** Display title of this entry, when one could be derived. */
|
|
10
|
+
title?: string;
|
|
11
11
|
/**
|
|
12
12
|
* References as hrefs with optional fragments.
|
|
13
13
|
* e.g. ["track1.mp3#t=60"] for audio, ["chapter1.html"] for EPUB, ["#page=6"] for PDF.
|
|
@@ -15,7 +15,7 @@ export interface TimelineItem {
|
|
|
15
15
|
references: string[];
|
|
16
16
|
/** Structural roles of this entry, e.g. ["chapter"], ["part"]. */
|
|
17
17
|
role?: string[];
|
|
18
|
-
/**
|
|
18
|
+
/** Raw position: book-global seconds for audio, a Positions List position for EPUB, a page number for PDF. */
|
|
19
19
|
position?: number;
|
|
20
20
|
/** Scroll progression within the resource (0 to 1), for entries that start mid-way in a resource. */
|
|
21
21
|
scroll?: number;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
import { PublicationLike, Timeline } from "./Timeline.ts";
|
|
1
2
|
export * from './Timeline.ts';
|
|
2
3
|
export * from './TimelineItem.ts';
|
|
4
|
+
export { buildHtmlTimeline } from './html.ts';
|
|
5
|
+
export { buildAudioTimeline } from './audio.ts';
|
|
6
|
+
export declare function buildTimeline(pub: PublicationLike, options?: {
|
|
7
|
+
depth?: number;
|
|
8
|
+
}): Timeline;
|
package/types/src/util/npt.d.ts
CHANGED
|
@@ -18,3 +18,13 @@ export declare function parseNptTime(raw: string): number | undefined;
|
|
|
18
18
|
* (t=0, t=0.0, t=npt:0, t=npt:0:0:0, etc.).
|
|
19
19
|
*/
|
|
20
20
|
export declare function isNptStartOfResource(raw: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Formats a duration in seconds as a human-readable string suitable for
|
|
23
|
+
* display in a Table of Contents or progress indicator.
|
|
24
|
+
*
|
|
25
|
+
* Outputs "H:MM:SS" when hours > 0, otherwise "M:SS".
|
|
26
|
+
* Minutes and seconds are always zero-padded to two digits.
|
|
27
|
+
*
|
|
28
|
+
* Examples: 0 → "0:00", 90 → "1:30", 3661 → "1:01:01"
|
|
29
|
+
*/
|
|
30
|
+
export declare function formatNptTime(seconds: number): string;
|
package/dist/ar-DyHX_uy2.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e = { metadata: { accessibility: { "display-guide": { "accessibility-summary": { "no-metadata": "لا تتوفر أي معلومات", "publisher-contact": "لمزيد من المعلومات حول إمكانية الوصول إلى هذا المنتج، يُرجى التواصل مع الناشر: ", title: "ملخص إمكانية الوصول" }, "additional-accessibility-information": { aria: { compact: "أدوار ARIA مدرَجة", descriptive: "يتم تعزيز المحتوى باستخدام أدوار ARIA لتحسين التنظيم وتيسير التنقّل" }, "audio-descriptions": "الوصف الصوتي", braille: "برايل", "color-not-sole-means-of-conveying-information": "اللون ليس الوسيلة الوحيدة لنقل المعلومات", "dyslexia-readability": "سهولة القراءة لذوي عُسر القراءة", "full-ruby-annotations": "شروح روبي كاملة", "high-contrast-between-foreground-and-background-audio": "تباين عالٍ بين الصوت الرئيسي وصوت الخلفية", "high-contrast-between-text-and-background": "تباين عالٍ بين النص والخلفية", "large-print": "خط كبير", "page-breaks": { compact: "فواصل الصفحات متضمَّنة", descriptive: "فواصل الصفحات متضمَّنة من المصدر المطبوع الأصلي" }, "ruby-annotations": "بعض شروح الروبي", "sign-language": "لغة الإشارة", "tactile-graphics": { compact: "الرسوم اللمسية مدرجة", descriptive: "تم دمج الرسوم اللمسية لتيسير الوصول إلى العناصر البصرية للأشخاص المكفوفين" }, "tactile-objects": "مجسمات لمسية ثلاثية الأبعاد", "text-to-speech-hinting": "إرشادات تحويل النص إلى كلام (TTS)متوفرة", title: "معلومات إضافية عن إمكانية الوصول", "ultra-high-contrast-between-text-and-background": "تباين عالٍ جدًا بين النص والخلفية", "visible-page-numbering": "ترقيم صفحات مرئي", "without-background-sounds": "من دون أصوات في خلفية" }, conformance: { a: { compact: "هذا المنشور يفي بالمعايير الدنيا لإمكانية الوصول", descriptive: "يحتوي هذا المنشور على بيان مطابقة يفيد بأنه يفي بمعيار إمكانية الوصول في EPUB وبمستوى A من معيار WCAG 2" }, aa: { compact: "هذا المنشور يفي بالمعايير المعتمدة لإمكانية الوصول", descriptive: "يحتوي هذا المنشور على بيان مطابقة يفيد بأنه يفي بمعيار إمكانية الوصول في EPUB وبمستوى AA من معيار WCAG 2" }, aaa: { compact: "هذا المنشور يفوق المعايير المقبولة لإمكانية الوصول", descriptive: "يحتوي هذا المنشور على بيان مطابقة يفيد بأنه يفي بمعيار إمكانية الوصول في EPUB وبمستوى AAA من معيار WCAG 2" }, certifier: "تم اعتماد هذا المنشور من قبل ", "certifier-credentials": "بيانات اعتماد جهة التصديق ", details: { "certification-info": "تم اعتماد هذا المنشور في تاريخ ", "certifier-report": "لمزيد من المعلومات، يرجى الرجوع إلى تقرير جهة التصديق", claim: "يدّعي هذا المنشور أنه يستوفي", "epub-accessibility-1-0": "معيار إمكانية الوصول لـ EPUB إصدار 1.0", "epub-accessibility-1-1": "معيار إمكانية الوصول لـ EPUB إصدار 1.1", "level-a": "المستوى A", "level-aa": "المستوى AA", "level-aaa": "المستوى AAA", "wcag-2-0": { compact: "WCAG 2.0", descriptive: "مبادئ النفاذ إلى محتوى الويب (WCAG) 2.0" }, "wcag-2-1": { compact: "WCAG 2.1", descriptive: "مبادئ النفاذ إلى محتوى الويب (WCAG) 2.1" }, "wcag-2-2": { compact: "WCAG 2.2", descriptive: "مبادئ النفاذ إلى محتوى الويب (WCAG) 2.2" } }, "details-title": "معلومات تفصيلية عن مدى المطابقة", no: "لا تتوفر أي معلومات", title: "المطابقة", "unknown-standard": "لا يمكن التأكد من مدى مطابقة هذا المنشور للمعايير المقبولة لإمكانية الوصول" }, hazards: { flashing: { compact: "محتوى وامض", descriptive: "يحتوي هذا المنشور على محتوى وامض قد يسبب نوبات حساسة للضوء" }, "flashing-none": { compact: "لا توجد مخاطر وميض", descriptive: "لا يحتوي هذا المنشور على محتوى وامض قد يسبب نوبات حساسة للضوء" }, "flashing-unknown": { compact: "مخاطر الوميض غير معروفة", descriptive: "لم يُمكن التأكد من وجود محتوى وامض قد يسبب نوبات حساسية للضوء" }, motion: { compact: "محاكاة الحركة", descriptive: "يحتوي المنشور على محاكاة حركة قد تسبّب دوار الحركة" }, "motion-none": { compact: "لا توجد مخاطر محاكاة الحركة", descriptive: "لا يحتوي المنشور على محاكاة حركة قد تسبّب دوار الحركة" }, "motion-unknown": { compact: "مخاطر محاكاة الحركة غير معروفة", descriptive: "تعذّر تحديد ما إذا كانت هناك محاكاة للحركة قد تُسبب دوار الحركة" }, "no-metadata": "لا تتوفر أي معلومات", none: { compact: "لا توجد مخاطر", descriptive: "لا يحتوي المنشور على أي مخاطر" }, sound: { compact: "أصوات", descriptive: "يحتوي المنشور على أصوات قد تؤدي إلى مشاكل حساسية صوتية" }, "sound-none": { compact: "لا توجد مخاطر صوتية", descriptive: "لا يحتوي المنشور على أصوات قد تؤدي إلى مشاكل حساسية صوتية" }, "sound-unknown": { compact: "مخاطر الصوت غير معروفة", descriptive: "تعذّر تحديد ما إذا كانت هناك أصوات قد تُسبب مشكلات في الحساسية" }, title: "مخاطر", unknown: "وجود المخاطر غير معروف" }, "legal-considerations": { exempt: { compact: "يُعلن عن استثناء من متطلبات إمكانية الوصول من بعض السلطات القضائية", descriptive: "يُصرّح هذا المنشور بوجود استثناء من متطلبات إمكانية الوصول من بعض السلطات القضائية" }, "no-metadata": "لا تتوفر أي معلومات", title: "اعتبارات قانونية" }, navigation: { index: { compact: "كشاف", descriptive: "كشاف يحتوي على روابط إلى الإدخالات المشار إليها" }, "no-metadata": "لا تتوفر أي معلومات", "page-navigation": { compact: "الانتقال إلى صفحة", descriptive: "قائمة الصفحات للانتقال إلى صفحات من النسخة المطبوعة الأصلية" }, structural: { compact: "العناوين", descriptive: "عناصر مثل العناوين والجداول وغيرها للتنقل المنظّم" }, title: "التنقل", toc: { compact: "جدول المحتويات", descriptive: "جدول المحتويات لكل فصول النص عبر روابط" } }, "rich-content": { "accessible-chemistry-as-latex": { compact: "الصيغ الكيميائية بصيغة LaTeX", descriptive: "الصيغ الكيميائية بشكل ميسر (LaTeX)" }, "accessible-chemistry-as-mathml": { compact: "الصيغ الكيميائية بصيغة MathML", descriptive: "الصيغ الكيميائية بشكل ميسر (MathML)" }, "accessible-math-as-latex": { compact: "الرياضيات بصيغة LaTeX", descriptive: "الصيغ الرياضية بشكل ميسر (LaTeX)" }, "accessible-math-described": "تتوفر أوصاف نصية للصيغ الرياضية", "closed-captions": { compact: "تحتوي الفيديوهات على شروح مغلقة", descriptive: "الفيديوهات الموجودة في المنشورات تحتوي على شروح مغلقة" }, "extended-descriptions": "يتم وصف الصور الغنية بالمعلومات بأوصاف مفصّلة", "math-as-mathml": { compact: "الرياضيات بصيغة MathML", descriptive: "الصيغ الرياضية بشكل ميسر(MathML)" }, "open-captions": { compact: "تحتوي الفيديوهات على شروح مدمجة", descriptive: "الفيديوهات الموجودة في المنشورات تحتوي على شروح مدمجة" }, title: "محتوى غني", transcript: "يتوفر نص(نصوص)", unknown: "لا تتوفر أي معلومات" }, "ways-of-reading": { "nonvisual-reading": { "alt-text": { compact: "يحتوي على نص بديل", descriptive: "يحتوي على أوصاف نصية بديلة للصور" }, "no-metadata": "لا تتوفر معلومات عن القراءة غير البصرية", none: { compact: "غير قابل للقراءة بصوتٍ عالٍ أو بطريقة برايل الديناميكية", descriptive: "المحتوى غير قابل للقراءة بصوتٍ عالٍ أو بطريقة برايل الديناميكية" }, "not-fully": { compact: "غير قابل للقراءة بالكامل بصوتٍ عالٍ أو بطريقة برايل الديناميكية", descriptive: "لن يكون كل المحتوى قابلًا للقراءة بصوتٍ عالٍ أو بطريقة برايل الديناميكية" }, readable: { compact: "قابل للقراءة بصوتٍ عالٍ أو بطريقة برايل الديناميكية", descriptive: "يمكن قراءة كل المحتوى بصوتٍ عالٍ أو بطريقة برايل الديناميكية" } }, "prerecorded-audio": { complementary: { compact: "مقاطع الصوت المسجّلة مسبقًا", descriptive: "مقاطع الصوت المسجّلة مسبقًا مدمجة في المحتوى" }, "no-metadata": "لا توجد معلومات عن الصوت المسجّل مسبقًا", only: { compact: "الصوت المسجّل مسبقًا فقط", descriptive: "كتاب صوتي بدون بديل نصي" }, synchronized: { compact: "صوت مسجّل مسبقًا متزامن مع النص", descriptive: "كل المحتوى متوفر كصوت مسجّل مسبقًا متزامن مع النص" } }, title: "طرق القراءة", "visual-adjustments": { modifiable: { compact: "يمكن تعديل المظهر", descriptive: "يمكن تعديل مظهر النص وتخطيط الصفحة وفقاً لإمكانات نظام القراءة (اسم الخط وحجمه، والمسافات بين الفقرات والجمل والكلمات والأحرف، بالإضافة إلى لون الخلفية والنص)" }, unknown: "لا توجد معلومات عن إمكانية تعديل المظهر", unmodifiable: { compact: "لا يمكن تعديل المظهر", descriptive: "لا يمكن تعديل مظهر النص وتخطيط الصفحات لأن تجربة القراءة قريبة من النسخة المطبوعة، ولكن تطبيقات القراءة ما زالت تتيح خيارات التكبير" } } } } }, altIdentifier_one: "رمز تعريفي بديل", altIdentifier_other: "رموز تعريفية بديلة", artist_one: "فنان", artist_other: "فنانون", author_one: "مؤلف", author_other: "مؤلفون", collection_one: "سلسلة تحريرية", collection_other: "سلاسل تحريرية", colorist_one: "ملوّن الألوان", colorist_other: "ملوّنو الألوان", contributor_one: "مساهم", contributor_other: "مساهمون", description: "وصف", duration: "مدة", editor_one: "محرر", editor_other: "محررون", identifier_one: "رمز تعريفي", identifier_other: "رموز تعريفية", illustrator_one: "رسًام", illustrator_other: "رسامون", imprint_one: "العلامة التجارية للنشر", imprint_other: "العلامات التجارية للنشر", inker_one: "مُحَبِّر", inker_other: "مُحَبِّرون", language_one: "اللغة", language_other: "اللغات", letterer_one: "خطّاط", letterer_other: "خطّاطون", modified: "تاريخ التعديل", narrator_one: "قارئ صوتي", narrator_other: "قرّاء صوتيون", numberOfPages: "عدد الصفحات في النسخة المطبوعة", penciler_one: "رسّام أولي", penciler_other: "رسّامون أوّليون", published: "تاريخ النشر", publisher_one: "ناشر", publisher_other: "ناشرون", series_one: "سلسلة", series_other: "سلاسل", subject_one: "موضوع", subject_other: "مواضيع", subtitle: "عنوان فرعي", title: "العنوان", translator_one: "مترجم", translator_other: "مترجمون" } }, t = {
|
|
2
|
-
publication: e
|
|
3
|
-
};
|
|
4
|
-
export {
|
|
5
|
-
t as default,
|
|
6
|
-
e as publication
|
|
7
|
-
};
|
package/dist/da-Dct0PS3E.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e = { metadata: { accessibility: { "display-guide": { "accessibility-summary": { "no-metadata": "Ingen information tilgængelig", "publisher-contact": "For mere information om tilgængeligheden af denne bog, kontakt venligst udgiveren: ", title: "Tilgængeligheds-oversigt" }, "additional-accessibility-information": { aria: { compact: "Indeholder ARIA roller", descriptive: "Indhold forbedres med ARIA-roller for at optimere organisering og gøre navigation lettere" }, "audio-descriptions": "Lydbeskrivelser", braille: "Punktskrift (braille)", "color-not-sole-means-of-conveying-information": "Information gives ikke udelukkende via farver", "dyslexia-readability": "Læsbarhed for ordblinde", "full-ruby-annotations": 'Indeholder såkalde "ruby" notationer (til asiatiske sprog)', "high-contrast-between-foreground-and-background-audio": "Høj kontrast imellem forgrunds- og baggrunds-lyd", "high-contrast-between-text-and-background": "Høj kontrast imellem tekst og baggrunden", "large-print": "Forstørret tekst", "page-breaks": { compact: "Indeholder sideskift", descriptive: "Indeholder sideskift fra den trykte version af bogen" }, "ruby-annotations": 'Nogle "ruby" annotationer (til asiatiske sprog)', "sign-language": "Tegnsprog", "tactile-graphics": { compact: "Indeholder taktil grafik", descriptive: "Indeholder taktil grafik for at muliggøre adgang til visuel information for blinde" }, "tactile-objects": "Taktile 3D objekter", "text-to-speech-hinting": "Udtaleforbedringer til syntetisk tale", title: "Yderligere information om tilgængelighed", "ultra-high-contrast-between-text-and-background": "Ultra høj kontrast imellem tekst og baggrund", "visible-page-numbering": "Synlige sidenumre", "without-background-sounds": "Uden baggrundslyd" }, conformance: { a: { compact: "Denne bog overholder minimum-tilgængelighedskravene", descriptive: "Denne bog en overensstemmelseserklæring om, at den opfylder EPUB Tilgængelighedskrav og WCAG 2 standarden på niveau A" }, aa: { compact: "Denne bog lever op til de accepterede tilgængelighedskrav", descriptive: "Denne bog en overensstemmelseserklæring om, at den opfylder EPUB Tilgængelighedskrav og WCAG 2 standarden på niveau AA" }, aaa: { compact: "Denne bog mere end opfylder de accepterede tilgængelighedskrav", descriptive: "Denne bog en overensstemmelseserklæring om, at den opfylder EPUB Tilgængelighedskrav og WCAG 2 standarden på niveau AAA" }, certifier: "Denne bog blev certificeret af ", "certifier-credentials": "Certificeringsorganets legitimationsoplysninger er ", details: { "certification-info": "Bogen blev certificeret den ", "certifier-report": "Se certificeringsorganets rapport for mere information", claim: "Denne bog hævder at opfylde", "epub-accessibility-1-0": "EPUB Tilgængelighed 1.0", "epub-accessibility-1-1": "EPUB Tilgængelighed 1.1", "level-a": "Niveau A", "level-aa": "Niveau AA", "level-aaa": "Niveau AAA", "wcag-2-0": { compact: "WCAG 2.0", descriptive: "Retningslinjer for tilgængeligt webindhold (WCAG) 2.0" }, "wcag-2-1": { compact: "WCAG 2.1", descriptive: "Retningslinjer for tilgængeligt webindhold (WCAG) 2.1" }, "wcag-2-2": { compact: "WCAG 2.2", descriptive: "Retningslinjer for tilgængeligt webindhold (WCAG) 2.2" } }, "details-title": "Detaljeret overholdelses-information", no: "Ingen information tilgængelig", title: "Overholdelse", "unknown-standard": "Overholdelse af de accepterede tilgængelighedskrav kan ikke vurderes for denne bog" }, hazards: { flashing: { compact: "Blinkende indhold", descriptive: "Bogen indeholder blinkende indhold der kan forårsage epileptiske anfald" }, "flashing-none": { compact: "Ingen blinkende indhold", descriptive: "Bogen indeholder ikke noget blinkende indhold, der kunne forårsage epileptiske anfald" }, "flashing-unknown": { compact: "Ingen information om bogen har blinkende indhold", descriptive: "Det kunne ikke afgøres om bogen indeholder blinkende indhold der kan lede til epileptiske anfald" }, motion: { compact: "Simuleret bevægelse", descriptive: "Bogen indeholder simuleret bevægelse, der kan forårsage en følelse af køresyge" }, "motion-none": { compact: "Indeholder ikke simuleret bevægelse", descriptive: "Denne bog indeholder ikke noget indhold med simuleret bevægelse, der kunne lede til en følelse af køresyge" }, "motion-unknown": { compact: "Ingen information om simuleret bevægelse", descriptive: "Det kunne ikke vurderes om bogen indeholder simuleret bevægelse, der kan lede til en følelse af køresyge" }, "no-metadata": "Ingen information tilgængelig", none: { compact: "Ingen farer", descriptive: "Bogen indeholder ikke noget indhold der kategoriseres som farligt" }, sound: { compact: "Lyde", descriptive: "Bogen indeholder lyde der kan være ubehagelige hvis man er sensitiv overfor lyde" }, "sound-none": { compact: "Ingen ubehagelige lyde", descriptive: "Bogen indeholder ikke lyde der kunne opleves som ubehagelige hvis man er sensitiv overfor lyde" }, "sound-unknown": { compact: "Ingen information om ubehagelige lyde", descriptive: "Det kunne ikke afgøres om bogen indeholder ubehagelige lyde" }, title: "Farer", unknown: "Ingen information om farligt indhold" }, "legal-considerations": { exempt: { compact: "Gør krav på undtagelser fra tilgængelighedskrav", descriptive: "Denne bog gør krav på en tilgængelighedsundtagelse i en eller flere jurisdiktioner" }, "no-metadata": "Ingen information tilgængelig", title: "Juridiske overvejelser" }, navigation: { index: { compact: "Indholdsfortegnelse", descriptive: "Indholdsfortegnelse med links til referencer" }, "no-metadata": "Ingen information tilgængelig", "page-navigation": { compact: "Gå til side", descriptive: "Sideliste for at gå til sider fra den trykte kildeversion" }, structural: { compact: "Overskrifter", descriptive: "Elementer så som overskrifter og tabeller til struktureret navigation" }, title: "Navigation", toc: { compact: "Indholdsfortegnelse", descriptive: "Indholdsfortegnelse med links til alle kapitler" } }, "rich-content": { "accessible-chemistry-as-latex": { compact: "Kemiske formularer i LaTeX", descriptive: "Kemiske formularer i tilgængeligt format (LaTeX)" }, "accessible-chemistry-as-mathml": { compact: "Kemiske formularer i MathML notation", descriptive: "Kemiske formularer i tilgængeligt format (MathML)" }, "accessible-math-as-latex": { compact: "Matematik som LaTeX", descriptive: "Matematikformler i tilgængeligt format (LaTeX)" }, "accessible-math-described": "Tekstbeskrivelser til matematiske formler", "closed-captions": { compact: "Videoer har undertekster", descriptive: "Videoer der optræder i bogen har undertekster" }, "extended-descriptions": "Informationsrige billeder beskrives med udvidede beskrivelser", "math-as-mathml": { compact: "Matematik som MathML", descriptive: "Matematiske formler i tilgængeligt format (MathML)" }, "open-captions": { compact: "Videoer har indlejrede undertekster", descriptive: "Videoer der optræder i bogen har indlejrede undertekster" }, title: "Komplekst indhold", transcript: "Indeholder transskription(er)", unknown: "Ingen information tilgængelig" }, "ways-of-reading": { "nonvisual-reading": { "alt-text": { compact: "Har alternativ tekst", descriptive: "Har billedbeskrivelser" }, "no-metadata": "Ingen information omkring ikke-visuel læsning", none: { compact: "Ikke læsbar med oplæsning eller dynamisk punktskrift", descriptive: "Dette indhold er ikke læsbart med oplæsning eller dynamisk punktskrift" }, "not-fully": { compact: "Ikke fuldt læsbar med oplæsning eller dynamisk punktskrift", descriptive: "Alt indholdet er ikke fuldt læsbart med oplæsning eller dynamisk punktskrift" }, readable: { compact: "Læsbar med oplæsning eller dynamisk punktskrift", descriptive: "Alt indholdet er læsbart med oplæsning eller dynamisk punktskrift" } }, "prerecorded-audio": { complementary: { compact: "Indlæste lydklip", descriptive: "Indlæste lydklip er indlejret i indholdet" }, "no-metadata": "Ingen information om indlæst lyd", only: { compact: "Kun indlæst lyd", descriptive: "Lydbog uden tekst alternativer" }, synchronized: { compact: "Indlæst lyd med synkroniseret tekst", descriptive: "Alt indholdet er tilgængeligt med indlæst lyd og synkroniseret tekst" } }, title: "Læseformer", "visual-adjustments": { modifiable: { compact: "Udseende kan ændres", descriptive: "Udseende af tekst og sidelayout kan ændres, så vidt muligt i læsesystemet (skrifttype, skriftstørrelse, afstand mellem afsnit, sætninger, ord og bogstaver, samt farven på tekst og baggrund)" }, unknown: "Ingen information om mulighed for ændring af udseende", unmodifiable: { compact: "Udseende kan ikke ændres", descriptive: "Tekst og sidelayout kan ikke ændres, da læseoplevelsen afspejler den trykte version af materialet. Læsesystemet kan dog stadig give mulighed for zoom" } } } } }, altIdentifier_one: "alternativt ID", altIdentifier_other: "alternative ID'er", artist_one: "kunstner", artist_other: "kunstnere", author_one: "forfatter", author_other: "forfattere", collection_one: "redaktionel samling", collection_other: "redaktionelle samlinger", colorist_one: "farvelægger", colorist_other: "farvelæggere", contributor_one: "bidragsyder", contributor_other: "bidragsydere", description: "beskrivelse", duration: "varighed", editor_one: "redaktør", editor_other: "redaktører", identifier_one: "ID", identifier_other: "ID'er", illustrator_one: "illustrator", illustrator_other: "illustratorer", imprint_one: "trykkeri", imprint_other: "trykkerier", inker_one: "tegner", inker_other: "tegnere", language_one: "sprog", language_other: "sprog", letterer_one: "taleboble-forfatter", letterer_other: "taleboble-forfattere", modified: "rettet dato", narrator_one: "indlæser", narrator_other: "indlæsere", numberOfPages: "printbare sider", penciler_one: "tegneseriekunstner", penciler_other: "tegneseriekunstnere", published: "udgivelsesdato", publisher_one: "udgiver", publisher_other: "udgivere", series_one: "serie", series_other: "serier", subject_one: "emne", subject_other: "emner", subtitle: "undertitel", title: "titel", translator_one: "oversætter", translator_other: "oversættere" } }, i = {
|
|
2
|
-
publication: e
|
|
3
|
-
};
|
|
4
|
-
export {
|
|
5
|
-
i as default,
|
|
6
|
-
e as publication
|
|
7
|
-
};
|
package/dist/fr-C5HEel98.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e = /* @__PURE__ */ JSON.parse(`{"format":{"audiobook":"Livre audio","audiobookJSON":"Manifeste de livre audio","cbz":"Bande dessinée","divina":"Bande dessinée Divina","divinaJSON":"Manifeste de bande dessinée Divina","epub":"EPUB","lcpa":"Livre audio protégé par LCP","lcpdf":"PDF protégé par LCP","lcpl":"Licence LCP","pdf":"PDF","rwp":"Publication web Readium","rwpm":"Manifeste de publication web Readium","zab":"Livre audio","zip":"Archive ZIP"},"kind":{"audiobook_many":"livres audio","audiobook_one":"livre audio","audiobook_other":"livres audio","book_many":"livres","book_one":"livre","book_other":"livres","comic_many":"bandes dessinées","comic_one":"bande dessinée","comic_other":"bandes dessinées","document_many":"documents","document_one":"document","document_other":"documents"},"metadata":{"accessibility":{"display-guide":{"accessibility-summary":{"no-metadata":"Aucune information disponible","publisher-contact":"Pour plus d'information à propos de l'accessibilité de cette publication, veuillez contacter l'éditeur : ","title":"Informations d'accessibilité supplémentaires fournies par l'éditeur"},"additional-accessibility-information":{"aria":{"compact":"Information enrichie pour les technologies d'assistances","descriptive":"La structure est enrichi de rôles ARIA afin d'optimiser l'organisation et de faciliter la navigation via les technologies d'assistances"},"audio-descriptions":"Description audio","braille":"Braille","color-not-sole-means-of-conveying-information":"La couleur n'est pas la seule manière de communiquer de l'information","dyslexia-readability":"Lisibilité adapté aux publics dys","full-ruby-annotations":"Annotations complètes au format ruby (langues asiatiques)","high-contrast-between-foreground-and-background-audio":"Contraste sonore amélioré entre les différents plans","high-contrast-between-text-and-background":"Contraste élevé entre le texte et l'arrière-plan","large-print":"Grands caractères","page-breaks":{"compact":"Pagination identique à l'imprimé","descriptive":"Contient une pagination identique à la version imprimée"},"ruby-annotations":"Annotations partielles au format ruby (langues asiatiques)","sign-language":"Langue des signes","tactile-graphics":{"compact":"Graphiques tactiles","descriptive":"Des graphiques tactiles ont été intégrés pour faciliter l'accès des personnes aveugles aux éléments visuels"},"tactile-objects":"Objets 3D ou tactiles","text-to-speech-hinting":"Prononciation améliorée pour la synthèse vocale","title":"Informations complémentaires sur l'accessibilité","ultra-high-contrast-between-text-and-background":"Contraste très élevé entre le texte et l'arrière-plan","visible-page-numbering":"Numérotation de page visible","without-background-sounds":"Aucun bruit de fond"},"conformance":{"a":{"compact":"Cette publication répond aux règles minimales d'accessibilité","descriptive":"La publication indique qu'elle respecte les règles d'accessibilité EPUB et WCAG 2 niveau A"},"aa":{"compact":"Cette publication répond aux règles d'accessibilité reconnues","descriptive":"La publication indique qu'elle respecte les règles d'accessibilité EPUB et WCAG 2 niveau AA"},"aaa":{"compact":"Cette publication dépasse les règles d'accessibilité reconnues","descriptive":"La publication indique qu'elle respecte les règles d'accessibilité EPUB et WCAG 2 niveau AAA"},"certifier":"Accessibilité évaluée par ","certifier-credentials":"L'évaluateur est accrédité par ","details":{"certification-info":"Cette publication a été certifié le","certifier-report":"Pour plus d'information, veuillez consulter le rapport de certification","claim":"Cette publication indique respecter","epub-accessibility-1-0":"EPUB Accessibilité 1.0","epub-accessibility-1-1":"EPUB Accessibilité 1.1","level-a":"Niveau A","level-aa":"Niveau AA","level-aaa":"Niveau AAA","wcag-2-0":{"compact":"WCAG 2.0","descriptive":"Règles pour l’accessibilité des contenus Web (WCAG) 2.0"},"wcag-2-1":{"compact":"WCAG 2.1","descriptive":"Règles pour l’accessibilité des contenus Web (WCAG) 2.1"},"wcag-2-2":{"compact":"WCAG 2.2","descriptive":"Règles pour l’accessibilité des contenus Web (WCAG) 2.2"}},"details-title":"Information détaillée","no":"Aucune information disponible","title":"Règles d'accessibilité","unknown-standard":"Aucune indication concernant les normes d'accessibilité"},"hazards":{"flashing":{"compact":"Flashs lumineux","descriptive":"La publication contient des flashs lumineux qui peuvent provoquer des crises d’épilepsie"},"flashing-none":{"compact":"Pas de flashs lumineux","descriptive":"La publication ne contient pas de flashs lumineux susceptibles de provoquer des crises d’épilepsie"},"flashing-unknown":{"compact":"Pas d'information concernant la présence de flashs lumineux","descriptive":"La présence de flashs lumineux susceptibles de provoquer des crises d’épilepsie n'a pas pu être déterminée"},"motion":{"compact":"Sensations de mouvement","descriptive":"La publication contient des images en mouvement qui peuvent provoquer des nausées, des vertiges et des maux de tête"},"motion-none":{"compact":"Pas de sensations de mouvement","descriptive":"La publication ne contient pas d'images en mouvement qui pourraient provoquer des nausées, des vertiges et des maux de tête"},"motion-unknown":{"compact":"Pas d'information concernant la présence d'images en mouvement","descriptive":"La présence d'images en mouvement susceptibles de provoquer des nausées, des vertiges et des maux de tête n'a pas pu être déterminée"},"no-metadata":"Aucune information disponible","none":{"compact":"Aucun points d'attention","descriptive":"La publication ne présente aucun risque lié à la présence de flashs lumineux, de sensations de mouvement ou de sons"},"sound":{"compact":"Sons","descriptive":"La publication contient des sons qui peuvent causer des troubles de la sensibilité"},"sound-none":{"compact":"Pas de risques sonores","descriptive":"La publication ne contient pas de sons susceptibles de provoquer des troubles de la sensibilité"},"sound-unknown":{"compact":"Pas d'information concernant la présence de sons","descriptive":"La présence de sons susceptibles de causer des troubles de sensibilité n'a pas pu être déterminée"},"title":"Points d'attention","unknown":"La présence de risques est inconnue"},"legal-considerations":{"exempt":{"compact":"Déclare être sous le coup d'une exemption dans certaines juridictions","descriptive":"Cette publication dééclare être sous le coup d'une exemption dans certaines juridictions"},"no-metadata":"Aucune information disponible","title":"Considérations légales"},"navigation":{"index":{"compact":"Index","descriptive":"Index comportant des liens vers les entrées référencées"},"no-metadata":"Aucune information disponible","page-navigation":{"compact":"Aller à la page","descriptive":"Permet d'accéder aux pages de la version source imprimée"},"structural":{"compact":"Titres","descriptive":"Contient des titres pour une navigation structurée"},"title":"Points de repère","toc":{"compact":"Table des matières","descriptive":"Table des matières"}},"rich-content":{"accessible-chemistry-as-latex":{"compact":"Formules chimiques en LaTeX","descriptive":"Formules chimiques en format accessible (LaTeX)"},"accessible-chemistry-as-mathml":{"compact":"Formules chimiques en MathML","descriptive":"Formules chimiques en format accessible (MathML)"},"accessible-math-as-latex":{"compact":"Mathématiques en LaTeX","descriptive":"Formules mathématiques en format accessible (LaTeX)"},"accessible-math-described":"Des descriptions textuelles des formules mathématiques sont fournies","closed-captions":{"compact":"Sous-titres disponibles pour les vidéos","descriptive":"Des sous titres sont disponibles pour les vidéos"},"extended-descriptions":"Les images porteuses d'informations complexes sont décrites par des descriptions longues","math-as-mathml":{"compact":"Mathématiques en MathML","descriptive":"Formules mathématiques en format accessible (MathML)"},"open-captions":{"compact":"Sous-titres incrustés","descriptive":"Des sous titres sont incrustés pour les vidéos"},"title":"Contenus spécifiques","transcript":"Transcriptions fournies","unknown":"Aucune information disponible"},"ways-of-reading":{"nonvisual-reading":{"alt-text":{"compact":"Images décrites","descriptive":"Les images sont décrites par un texte"},"no-metadata":"Aucune information pour la lecture en voix de synthèse ou en braille","none":{"compact":"Non lisible en voix de synthèse ou en braille","descriptive":"Le contenu n'est pas lisible en voix de synthèse ou en braille"},"not-fully":{"compact":"Pas entièrement lisible en voix de synthèse ou en braille","descriptive":"Tous les contenus ne pourront pas être lus à haute voix ou en braille"},"readable":{"compact":"Entièrement lisible en voix de synthèse ou en braille","descriptive":"Tous les contenus peuvent être lus en voix de synthèse ou en braille"}},"prerecorded-audio":{"complementary":{"compact":"Clips audio préenregistrés","descriptive":"Des clips audio préenregistrés sont intégrés au contenu"},"no-metadata":"Aucune information sur les enregistrements audio","only":{"compact":"Audio préenregistré uniquement","descriptive":"Livre audio sans texte alternatif"},"synchronized":{"compact":"Audio préenregistré synchronisé avec du texte","descriptive":"Tous les contenus sont disponibles comme audio préenregistrés synchronisés avec le texte"}},"title":"Lisibilité","visual-adjustments":{"modifiable":{"compact":"L'affichage peut être adapté","descriptive":"L'apparence du texte et la mise en page peuvent être modifiées en fonction des capacités du système de lecture (famille et taille des polices, espaces entre les paragraphes, les phrases, les mots et les lettres, ainsi que la couleur de l'arrière-plan et du texte)"},"unknown":"Aucune information sur les possibilités d'adaptation de l'affichage","unmodifiable":{"compact":"L'affichage ne peut pas être adapté","descriptive":"Le texte et la mise en page ne peuvent pas être adaptés étant donné que l'expérience de lecture est proche de celle de la version imprimée, mais l'application de lecture peut tout de même proposer la capacité de zoomer"}}}}},"altIdentifier_many":"","altIdentifier_one":"identifiant alternatif","altIdentifier_other":"identifiants alternatifs","artist_many":"","artist_one":"artiste","artist_other":"artiste","author_many":"","author_one":"auteur","author_other":"auteurs","collection_many":"","collection_one":"collection éditoriale","collection_other":"collections éditoriales","colorist_many":"","colorist_one":"coloriste","colorist_other":"coloristes","contributor_many":"","contributor_one":"contributeur","contributor_other":"contributeurs","description":"description","duration":"durée","editor_many":"","editor_one":"éditeur","editor_other":"éditeurs","identifier_many":"","identifier_one":"identifiant","identifier_other":"identifiants","illustrator_many":"","illustrator_one":"illustrateur","illustrator_other":"illustrateurs","imprint_many":"","imprint_one":"marque éditoriale","imprint_other":"marques éditoriales","inker_many":"","inker_one":"encreur","inker_other":"encreurs","language_many":"","language_one":"langue","language_other":"langues","letterer_many":"","letterer_one":"lettreur","letterer_other":"lettreurs","modified":"date de modification","narrator_many":"","narrator_one":"narrateur","narrator_other":"narrateurs","numberOfPages":"pagination papier","penciler_many":"","penciler_one":"dessinateur","penciler_other":"dessinateurs","published":"date de publication","publisher_many":"","publisher_one":"éditeur","publisher_other":"éditeurs","series_many":"","series_one":"série","series_other":"séries","subject_many":"","subject_one":"catégorie","subject_other":"catégories","subtitle":"sous-titre","title":"titre","translator_many":"","translator_one":"traducteur","translator_other":"traducteurs"}}`), i = {
|
|
2
|
-
publication: e
|
|
3
|
-
};
|
|
4
|
-
export {
|
|
5
|
-
i as default,
|
|
6
|
-
e as publication
|
|
7
|
-
};
|