Merge remote-tracking branch 'origin/develop' into feat-deferred-refresh
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
.idea
|
||||
.DS_Store
|
||||
.vscode
|
||||
open-x4-sdk
|
||||
fs_
|
||||
lib/EpdFont/fontsrc
|
||||
lib/I18n/I18nKeys.h
|
||||
lib/I18n/I18nStrings.h
|
||||
|
||||
@@ -90,13 +90,19 @@ if (parsedSize != fileSize) {
|
||||
|
||||
## `section.bin`
|
||||
|
||||
### Version 29
|
||||
### Version 30
|
||||
|
||||
Each file in `sections/*.bin` stores one laid-out spine section. The header is
|
||||
also the cache-busting key: if any layout-affecting setting differs from the
|
||||
current reader settings, the section is discarded and rebuilt.
|
||||
|
||||
Version 29 includes:
|
||||
Version 30 is binary-identical to version 29. The version was bumped because
|
||||
Arabic contextual shaping changed text measurement (`getTextAdvanceX` now
|
||||
measures the shaped visual text), so word positions cached by v29 no longer
|
||||
match what `drawText` renders.
|
||||
|
||||
Version 28 introduced serialized word style bits for underline, strikethrough,
|
||||
superscript, and subscript. The format also includes:
|
||||
|
||||
- cache-busting fields for paragraph alignment, hyphenation, embedded CSS,
|
||||
image rendering mode, and Focus Reading
|
||||
@@ -119,7 +125,7 @@ import std.mem;
|
||||
import std.string;
|
||||
import std.core;
|
||||
|
||||
#define EXPECTED_VERSION 29
|
||||
#define EXPECTED_VERSION 30
|
||||
#define MAX_STRING_LENGTH 65535
|
||||
#define FOOTNOTE_NUMBER_LEN 32
|
||||
#define FOOTNOTE_HREF_LEN 96
|
||||
|
||||
@@ -44,16 +44,17 @@ void EpdFont::getTextBounds(const char* string, const int startX, const int star
|
||||
continue;
|
||||
}
|
||||
|
||||
const int raiseBy = isCombining ? combiningMark::raiseAboveBase(glyph->top, glyph->height, lastBaseTop) : 0;
|
||||
const combiningMark::Anchor anchor = combiningMark::anchorFor(cp);
|
||||
const int raiseBy = isCombining ? combiningMark::raiseAboveBase(anchor, glyph->top, glyph->height, lastBaseTop) : 0;
|
||||
|
||||
if (!isCombining && prevCp != 0) {
|
||||
const auto kernFP = getKerning(prevCp, cp); // 4.4 fixed-point kern
|
||||
lastBaseX += fp4::toPixel(prevAdvanceFP + kernFP);
|
||||
}
|
||||
|
||||
const int glyphBaseX =
|
||||
isCombining ? combiningMark::centerOver(lastBaseX, lastBaseLeft, lastBaseWidth, glyph->left, glyph->width)
|
||||
: lastBaseX;
|
||||
const int glyphBaseX = isCombining ? combiningMark::anchorOver(anchor, lastBaseX, lastBaseLeft, lastBaseWidth,
|
||||
glyph->left, glyph->width)
|
||||
: lastBaseX;
|
||||
const int glyphBaseY = startY - raiseBy;
|
||||
|
||||
*minX = std::min(*minX, glyphBaseX + glyph->left);
|
||||
|
||||
+76
-11
@@ -36,24 +36,71 @@ namespace combiningMark {
|
||||
|
||||
constexpr int MIN_GAP_PX = 1;
|
||||
|
||||
/// Compute the cursor-X at which to render a combining mark so its bitmap
|
||||
/// is visually centered over the base glyph's bitmap.
|
||||
constexpr int centerOver(int baseCursorPos, int baseLeft, int baseWidth, int markLeft, int markWidth) {
|
||||
return baseCursorPos + baseLeft + baseWidth / 2 - markWidth / 2 - markLeft;
|
||||
/// Placement of a mark relative to its base glyph. The default heuristic —
|
||||
/// centered over the base, raised clear of its top — suits Latin diacritics
|
||||
/// and Arabic harakat, but misplaces the Hebrew niqqud whose identity depends
|
||||
/// on position: dagesh sits inside the letter body, the shin/sin dots
|
||||
/// distinguish the letter by sitting over its right/left arm, and holam hangs
|
||||
/// over the left corner. "Native" anchors keep the glyph's font-designed
|
||||
/// height (which may overlap the base) instead of raising it.
|
||||
enum class Anchor : uint8_t {
|
||||
CenterRaised, ///< centered over the base, lifted above its top (default)
|
||||
CenterNative, ///< centered over the base at font-native height
|
||||
RightNative, ///< right edges aligned, font-native height
|
||||
LeftNative, ///< left edges aligned, font-native height
|
||||
};
|
||||
|
||||
constexpr Anchor anchorFor(const uint32_t cp) {
|
||||
switch (cp) {
|
||||
case 0x05BC: // dagesh / mapiq / shuruk dot: inside the letter body
|
||||
case 0x05BA: // holam haser for vav: straight above the vav stem
|
||||
return Anchor::CenterNative;
|
||||
case 0x05C1: // shin dot: over the letter's right arm
|
||||
return Anchor::RightNative;
|
||||
case 0x05B9: // holam: above the letter's left corner
|
||||
case 0x05C2: // sin dot: over the letter's left arm
|
||||
return Anchor::LeftNative;
|
||||
default:
|
||||
return Anchor::CenterRaised;
|
||||
}
|
||||
}
|
||||
|
||||
/// Rotated-90CW variant of centerOver. In the rotated coordinate system
|
||||
/// Horizontal offset from the base bitmap's left edge to the mark bitmap's
|
||||
/// left edge for a given anchor.
|
||||
constexpr int anchorShift(const Anchor anchor, const int baseWidth, const int markWidth) {
|
||||
switch (anchor) {
|
||||
case Anchor::LeftNative:
|
||||
return 0;
|
||||
case Anchor::RightNative:
|
||||
return baseWidth - markWidth;
|
||||
default:
|
||||
return baseWidth / 2 - markWidth / 2;
|
||||
}
|
||||
}
|
||||
|
||||
/// Compute the cursor-X at which to render a combining mark so its bitmap
|
||||
/// lands at its anchor position over the base glyph's bitmap.
|
||||
constexpr int anchorOver(const Anchor anchor, const int baseCursorPos, const int baseLeft, const int baseWidth,
|
||||
const int markLeft, const int markWidth) {
|
||||
return baseCursorPos + baseLeft + anchorShift(anchor, baseWidth, markWidth) - markLeft;
|
||||
}
|
||||
|
||||
/// Rotated-90CW variant of anchorOver. In the rotated coordinate system
|
||||
/// renderCharImpl uses (cursorY - left) instead of (cursorX + left), so
|
||||
/// every left/width term inverts sign.
|
||||
constexpr int centerOverRotated90CW(int baseCursorPos, int baseLeft, int baseWidth, int markLeft, int markWidth) {
|
||||
return baseCursorPos - baseLeft - baseWidth / 2 + markWidth / 2 + markLeft;
|
||||
constexpr int anchorOverRotated90CW(const Anchor anchor, const int baseCursorPos, const int baseLeft,
|
||||
const int baseWidth, const int markLeft, const int markWidth) {
|
||||
return baseCursorPos - baseLeft - anchorShift(anchor, baseWidth, markWidth) + markLeft;
|
||||
}
|
||||
|
||||
/// For combining marks that sit entirely above the baseline, compute how many
|
||||
/// pixels to raise the mark so there is at least MIN_GAP_PX between its bottom
|
||||
/// edge and the top of the base glyph. Returns 0 for marks that extend to or
|
||||
/// below the baseline (e.g. cedilla, dot-below, ogonek).
|
||||
constexpr int raiseAboveBase(int markTop, int markHeight, int baseTop) {
|
||||
/// below the baseline (e.g. cedilla, dot-below, ogonek) and for anchors that
|
||||
/// keep the font-native height (dagesh must stay inside the letter, the
|
||||
/// shin/sin dots touch its arms).
|
||||
constexpr int raiseAboveBase(const Anchor anchor, const int markTop, const int markHeight, const int baseTop) {
|
||||
if (anchor != Anchor::CenterRaised) return 0;
|
||||
if (markTop - markHeight <= 0) return 0;
|
||||
const int gap = markTop - markHeight - baseTop;
|
||||
return (gap < MIN_GAP_PX) ? (MIN_GAP_PX - gap) : 0;
|
||||
@@ -61,6 +108,20 @@ constexpr int raiseAboveBase(int markTop, int markHeight, int baseTop) {
|
||||
|
||||
} // namespace combiningMark
|
||||
|
||||
/// GCC/Clang (the ESP32 firmware toolchain) pack structs with __attribute__((packed)).
|
||||
/// MSVC (host unit tests) has no equivalent attribute and instead needs a #pragma pack
|
||||
/// region achieving the same 1-byte alignment. These macros keep the on-disk font layout
|
||||
/// identical across both toolchains.
|
||||
#if defined(_MSC_VER)
|
||||
#define EPD_PACKED_BEGIN __pragma(pack(push, 1))
|
||||
#define EPD_PACKED_END __pragma(pack(pop))
|
||||
#define EPD_PACKED_ATTR
|
||||
#else
|
||||
#define EPD_PACKED_BEGIN
|
||||
#define EPD_PACKED_END
|
||||
#define EPD_PACKED_ATTR __attribute__((packed))
|
||||
#endif
|
||||
|
||||
/// Fixed-point conventions used by EpdGlyph and EpdFontData:
|
||||
/// advanceX: 12.4 unsigned fixed-point in uint16_t (use fp4::toPixel)
|
||||
/// kernMatrix: 4.4 signed fixed-point in int8_t (use fp4::toPixel)
|
||||
@@ -95,17 +156,21 @@ typedef struct {
|
||||
|
||||
/// Maps a codepoint to a kerning class ID, sorted by codepoint for binary search.
|
||||
/// Class IDs are 1-based; codepoints not in the table have implicit class 0 (no kerning).
|
||||
EPD_PACKED_BEGIN
|
||||
typedef struct {
|
||||
uint16_t codepoint; ///< Unicode codepoint
|
||||
uint8_t classId; ///< 1-based kerning class ID
|
||||
} __attribute__((packed)) EpdKernClassEntry;
|
||||
} EPD_PACKED_ATTR EpdKernClassEntry;
|
||||
EPD_PACKED_END
|
||||
|
||||
/// Ligature substitution for a specific glyph pair, sorted by `pair` for binary search.
|
||||
/// `pair` encodes (leftCodepoint << 16 | rightCodepoint) for single-key lookup.
|
||||
EPD_PACKED_BEGIN
|
||||
typedef struct {
|
||||
uint32_t pair; ///< Packed codepoint pair (left << 16 | right)
|
||||
uint32_t ligatureCp; ///< Codepoint of the replacement ligature glyph
|
||||
} __attribute__((packed)) EpdLigaturePair;
|
||||
} EPD_PACKED_ATTR EpdLigaturePair;
|
||||
EPD_PACKED_END
|
||||
|
||||
/// Data stored for FONT AS A WHOLE
|
||||
typedef struct {
|
||||
|
||||
@@ -1222,7 +1222,8 @@ int SdCardFont::fetchAdvancesForCodepoints(uint32_t* codepoints, uint32_t cpCoun
|
||||
}
|
||||
|
||||
template <typename Iter>
|
||||
int SdCardFont::buildAdvanceTableRange(Iter begin, Iter end, bool includeSpace, bool includeHyphen, uint8_t styleMask) {
|
||||
int SdCardFont::buildAdvanceTableRange(Iter begin, Iter end, bool includeSpace, bool includeHyphen, uint8_t styleMask,
|
||||
const char* extraText) {
|
||||
if (!loaded_) return -1;
|
||||
styleMask = resolveStyleMask(styleMask);
|
||||
if (styleMask == 0) return 0;
|
||||
@@ -1242,6 +1243,9 @@ int SdCardFont::buildAdvanceTableRange(Iter begin, Iter end, bool includeSpace,
|
||||
for (auto it = begin; it != end && !hitCap; ++it) {
|
||||
hitCap = collectUniqueCodepoints(asCStr(*it), codepoints, cpCount, MAX_UNIQUE_CODEPOINTS);
|
||||
}
|
||||
if (extraText && !hitCap) {
|
||||
hitCap = collectUniqueCodepoints(extraText, codepoints, cpCount, MAX_UNIQUE_CODEPOINTS);
|
||||
}
|
||||
|
||||
if (includeSpace && std::none_of(codepoints, codepoints + cpCount, [](uint32_t c) { return c == ' '; }))
|
||||
codepoints[cpCount++] = ' ';
|
||||
@@ -1259,12 +1263,13 @@ int SdCardFont::buildAdvanceTableRange(Iter begin, Iter end, bool includeSpace,
|
||||
return totalMissed;
|
||||
}
|
||||
|
||||
int SdCardFont::buildAdvanceTable(const char* utf8Text, uint8_t styleMask) {
|
||||
return buildAdvanceTableRange(&utf8Text, &utf8Text + 1, false, false, styleMask);
|
||||
int SdCardFont::buildAdvanceTable(const char* utf8Text, uint8_t styleMask, const char* extraText) {
|
||||
return buildAdvanceTableRange(&utf8Text, &utf8Text + 1, false, false, styleMask, extraText);
|
||||
}
|
||||
|
||||
int SdCardFont::buildAdvanceTable(const std::vector<std::string>& words, bool includeHyphen, uint8_t styleMask) {
|
||||
return buildAdvanceTableRange(words.begin(), words.end(), words.size() > 1, includeHyphen, styleMask);
|
||||
int SdCardFont::buildAdvanceTable(const std::vector<std::string>& words, bool includeHyphen, uint8_t styleMask,
|
||||
const char* extraText) {
|
||||
return buildAdvanceTableRange(words.begin(), words.end(), words.size() > 1, includeHyphen, styleMask, extraText);
|
||||
}
|
||||
|
||||
// --- Stats ---
|
||||
|
||||
@@ -47,9 +47,12 @@ class SdCardFont {
|
||||
// Build a compact advance-only table for layout measurement.
|
||||
// Extracts ALL unique codepoints from words (no MAX_PAGE_GLYPHS cap),
|
||||
// batch-reads advanceX from SD, stores in a sorted per-style table.
|
||||
// extraText: optional additional codepoints to warm in the same SD pass
|
||||
// (e.g. shaped Arabic presentation forms the measurement path will look up).
|
||||
// Returns number of codepoints not found in font coverage.
|
||||
int buildAdvanceTable(const char* utf8Text, uint8_t styleMask = 0x0F);
|
||||
int buildAdvanceTable(const std::vector<std::string>& words, bool includeHyphen, uint8_t styleMask = 0x0F);
|
||||
int buildAdvanceTable(const char* utf8Text, uint8_t styleMask = 0x0F, const char* extraText = nullptr);
|
||||
int buildAdvanceTable(const std::vector<std::string>& words, bool includeHyphen, uint8_t styleMask = 0x0F,
|
||||
const char* extraText = nullptr);
|
||||
|
||||
// Look up advanceX for a codepoint from the advance table.
|
||||
// Returns the 12.4 fixed-point advance, or 0 if not found.
|
||||
@@ -140,11 +143,13 @@ class SdCardFont {
|
||||
|
||||
// Full intervals loaded from file (kept in RAM for codepoint lookup)
|
||||
EpdUnicodeInterval* fullIntervals = nullptr;
|
||||
EPD_PACKED_BEGIN
|
||||
struct BmpInterval16 {
|
||||
uint16_t first;
|
||||
uint16_t last;
|
||||
uint16_t offset;
|
||||
} __attribute__((packed));
|
||||
} EPD_PACKED_ATTR;
|
||||
EPD_PACKED_END
|
||||
static_assert(sizeof(BmpInterval16) == 6, "BmpInterval16 must remain compact");
|
||||
BmpInterval16* bmpIntervals = nullptr;
|
||||
bool intervalsAreBmp16 = false;
|
||||
@@ -262,7 +267,8 @@ class SdCardFont {
|
||||
int32_t findGlobalGlyphIndex(const PerStyle& s, uint32_t codepoint) const;
|
||||
int fetchAdvancesForCodepoints(uint32_t* codepoints, uint32_t cpCount, uint8_t styleMask);
|
||||
template <typename Iter>
|
||||
int buildAdvanceTableRange(Iter begin, Iter end, bool includeSpace, bool includeHyphen, uint8_t styleMask);
|
||||
int buildAdvanceTableRange(Iter begin, Iter end, bool includeSpace, bool includeHyphen, uint8_t styleMask,
|
||||
const char* extraText = nullptr);
|
||||
int prewarmStyle(uint8_t styleIdx, const uint32_t* codepoints, uint32_t cpCount, bool metadataOnly);
|
||||
|
||||
// Global helpers
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,8 @@
|
||||
!NotoSerif/**
|
||||
!NotoSans/
|
||||
!NotoSans/**
|
||||
!NotoSansArabic/
|
||||
!NotoSansArabic/**
|
||||
!NotoSansHebrew/
|
||||
!NotoSansHebrew/**
|
||||
!OpenDyslexic/
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,93 @@
|
||||
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/arabic)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
+1872
-1256
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+2244
-1483
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -31,19 +31,48 @@ done
|
||||
UI_FONT_SIZES=(10 12)
|
||||
UI_FONT_STYLES=("Regular" "Bold")
|
||||
|
||||
# Arabic glyphs for UI text (menus, file browser titles). The built-in fonts
|
||||
# must cover the *output* of MiniBidi's do_shape() — contextual presentation
|
||||
# forms — not base letters, or shaped UI text silently drops glyphs.
|
||||
# Curated for firmware-size budget: core Arabic (Presentation Forms-B,
|
||||
# incl. the Lam-Alef ligature forms) plus the Farsi/Urdu extra letters'
|
||||
# Presentation Forms-A blocks, the few characters shaping leaves at their
|
||||
# base codepoint, Arabic punctuation, and both digit sets. No harakat and
|
||||
# no Sindhi/Pashto/Kurdish forms — book text gets those from SD-card fonts.
|
||||
ARABIC_INTERVALS=(
|
||||
--additional-intervals 0x060C,0x060C # Arabic comma
|
||||
--additional-intervals 0x061B,0x061B # Arabic semicolon
|
||||
--additional-intervals 0x061F,0x061F # Arabic question mark
|
||||
--additional-intervals 0x0621,0x0621 # hamza (non-joining, never shaped)
|
||||
--additional-intervals 0x0640,0x0640 # tatweel
|
||||
--additional-intervals 0x0660,0x0669 # Arabic-Indic digits
|
||||
--additional-intervals 0x06BA,0x06BA # noon ghunna base (initial/medial keep base cp)
|
||||
--additional-intervals 0x06D4,0x06D4 # Urdu full stop
|
||||
--additional-intervals 0x06F0,0x06F9 # extended Arabic-Indic digits (Farsi/Urdu)
|
||||
--additional-intervals 0xFB56,0xFB59 # peh (Farsi)
|
||||
--additional-intervals 0xFB66,0xFB69 # tteh (Urdu)
|
||||
--additional-intervals 0xFB7A,0xFB7D # tcheh (Farsi)
|
||||
--additional-intervals 0xFB88,0xFB95 # ddal, jeh, rreh (Urdu), keheh, gaf (Farsi/Urdu)
|
||||
--additional-intervals 0xFB9E,0xFB9F # noon ghunna isolated/final (Urdu)
|
||||
--additional-intervals 0xFBA6,0xFBB1 # heh goal, heh doachashmee, yeh barree(+hamza) (Urdu)
|
||||
--additional-intervals 0xFBFC,0xFBFF # farsi yeh (Farsi/Urdu)
|
||||
--additional-intervals 0xFE80,0xFEFC # Presentation Forms-B: core Arabic + Lam-Alef
|
||||
)
|
||||
|
||||
for size in ${UI_FONT_SIZES[@]}; do
|
||||
for style in ${UI_FONT_STYLES[@]}; do
|
||||
font_name="ubuntu_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
|
||||
font_path="../builtinFonts/source/Ubuntu/Ubuntu-${style}.ttf"
|
||||
hebrew_path="../builtinFonts/source/NotoSansHebrew/NotoSansHebrew-${style}.ttf"
|
||||
arabic_path="../builtinFonts/source/NotoSansArabic/NotoSansArabic-${style}.ttf"
|
||||
# Ubuntu lacks the Latin Extended Additional block (U+1EA0-U+1EF9) used for
|
||||
# Vietnamese tone marks. Append a Vietnamese-only Ubuntu cut so those glyphs
|
||||
# are filled from it while every glyph Ubuntu already has stays unchanged
|
||||
# (fontstack is ordered by descending priority).
|
||||
viet_path="../builtinFonts/source/Ubuntu/Ubuntu-Vietnamese-${style}.ttf"
|
||||
output_path="../builtinFonts/${font_name}.h"
|
||||
python fontconvert.py $font_name $size $font_path $hebrew_path $viet_path \
|
||||
--additional-intervals 0x05D0,0x05EA > $output_path
|
||||
python fontconvert.py $font_name $size $font_path $hebrew_path $arabic_path $viet_path \
|
||||
--additional-intervals 0x05D0,0x05EA "${ARABIC_INTERVALS[@]}" > $output_path
|
||||
echo "Generated $output_path"
|
||||
done
|
||||
done
|
||||
@@ -51,7 +80,8 @@ done
|
||||
python fontconvert.py notosans_8_regular 8 \
|
||||
../builtinFonts/source/NotoSans/NotoSans-Regular.ttf \
|
||||
../builtinFonts/source/NotoSansHebrew/NotoSansHebrew-Regular.ttf \
|
||||
--additional-intervals 0x05D0,0x05EA > ../builtinFonts/notosans_8_regular.h
|
||||
../builtinFonts/source/NotoSansArabic/NotoSansArabic-Regular.ttf \
|
||||
--additional-intervals 0x05D0,0x05EA "${ARABIC_INTERVALS[@]}" > ../builtinFonts/notosans_8_regular.h
|
||||
|
||||
echo ""
|
||||
echo "Running compression verification..."
|
||||
|
||||
@@ -11,9 +11,13 @@
|
||||
#include "parsers/ChapterHtmlSlimParser.h"
|
||||
|
||||
namespace {
|
||||
// v28: text decoration bits now include line-through in serialized wordStyles.
|
||||
// v29: TextBlock word data stored as one flat arena (offset table + NUL-terminated
|
||||
// text blob) instead of length-prefixed strings and per-field arrays.
|
||||
constexpr uint8_t SECTION_FILE_VERSION = 29;
|
||||
// v30: Arabic shaping changed both drawing and measurement (getTextAdvanceX now
|
||||
// measures the shaped visual text); cached word positions from v29 no longer
|
||||
// match what drawText renders.
|
||||
constexpr uint8_t SECTION_FILE_VERSION = 30;
|
||||
// Written into the version field while a build is in progress; patched to
|
||||
// SECTION_FILE_VERSION only when the build is finalized. An abandoned /
|
||||
// crash-interrupted .bin therefore carries version 0, which loadSectionFile rejects
|
||||
|
||||
@@ -431,6 +431,11 @@ CssStyle CssParser::parseDeclarations(std::string_view declBlock) {
|
||||
// Rule processing
|
||||
|
||||
void CssParser::processRuleBlockWithStyle(std::string_view selectorGroup, const CssStyle& style) {
|
||||
// Skip rules that don't define any supported properties to save RAM.
|
||||
if (!style.defined.anySet()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if we've reached the rule limit before processing
|
||||
if (rulesBySelector_.size() >= MAX_RULES) {
|
||||
LOG_DBG("CSS", "Reached max rules limit (%zu), stopping CSS parsing", MAX_RULES);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
class CssParser {
|
||||
public:
|
||||
// Bump when CSS cache format or rules change; section caches are invalidated when this changes
|
||||
static constexpr uint8_t CSS_CACHE_VERSION = 7;
|
||||
static constexpr uint8_t CSS_CACHE_VERSION = 8;
|
||||
|
||||
explicit CssParser(std::string cachePath) : cachePath(std::move(cachePath)) {}
|
||||
~CssParser() = default;
|
||||
|
||||
@@ -225,6 +225,7 @@ void ChapterHtmlSlimParser::flushPartWordBuffer() {
|
||||
currentTextBlock->addWord(partWordBuffer, fontStyle, false, nextWordContinues);
|
||||
partWordBufferIndex = 0;
|
||||
nextWordContinues = false;
|
||||
listItemBulletOnly = false;
|
||||
}
|
||||
|
||||
// start a new text block if needed
|
||||
@@ -254,6 +255,17 @@ void ChapterHtmlSlimParser::startNewTextBlock(const BlockStyle& blockStyle) {
|
||||
return;
|
||||
}
|
||||
|
||||
// <li> added a bullet as the first word, making the block non-empty. When a nested
|
||||
// block-level child (<p>, <div>, etc.) opens, reuse the block instead of flushing
|
||||
// the bullet to its own line. The bullet stays inline with the child's text.
|
||||
if (listItemBulletOnly) {
|
||||
const auto style = currentTextBlock->getBlockStyle();
|
||||
currentTextBlock->setBlockStyle(style.getCombinedBlockStyle(blockStyle, BlockStyle::CombineAxis::Vertical));
|
||||
listItemBulletOnly = false;
|
||||
flushPendingAnchor();
|
||||
return;
|
||||
}
|
||||
|
||||
makePages();
|
||||
}
|
||||
// If the pending anchor is a TOC chapter boundary, force a page break after the previous
|
||||
@@ -261,6 +273,7 @@ void ChapterHtmlSlimParser::startNewTextBlock(const BlockStyle& blockStyle) {
|
||||
flushPendingAnchor();
|
||||
currentTextBlock.reset(new ParsedText(extraParagraphSpacing, hyphenationEnabled, focusReadingEnabled, blockStyle));
|
||||
wordsExtractedInBlock = 0;
|
||||
listItemBulletOnly = false;
|
||||
}
|
||||
|
||||
void ChapterHtmlSlimParser::emitHorizontalRule(const BlockStyle& blockStyle) {
|
||||
@@ -880,6 +893,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
|
||||
|
||||
if (strcmp(name, "li") == 0) {
|
||||
self->currentTextBlock->addWord("\xe2\x80\xa2", EpdFontFamily::REGULAR);
|
||||
self->listItemBulletOnly = true;
|
||||
}
|
||||
}
|
||||
} else if (matches(name, UNDERLINE_TAGS, std::size(UNDERLINE_TAGS))) {
|
||||
@@ -1286,6 +1300,13 @@ void XMLCALL ChapterHtmlSlimParser::endElement(void* userData, const XML_Char* n
|
||||
}
|
||||
self->blockStyleStack.pop_back();
|
||||
}
|
||||
|
||||
// </li> closes: if the bullet never got inline text (empty <li> or <li> with only
|
||||
// block children that were flushed), clear the flag so the next sibling doesn't
|
||||
// merge into this block.
|
||||
if (strcmp(name, "li") == 0) {
|
||||
self->listItemBulletOnly = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,7 @@ class ChapterHtmlSlimParser {
|
||||
int tableDepth = 0;
|
||||
int tableRowIndex = 0;
|
||||
int tableColIndex = 0;
|
||||
bool listItemBulletOnly = false; // true when currentTextBlock has only the <li> bullet
|
||||
|
||||
// Anchor-to-page mapping: tracks which page each HTML id attribute lands on
|
||||
int completedPageCount = 0;
|
||||
|
||||
@@ -25,6 +25,36 @@ uint8_t resolveSdCardStyle(const SdCardFont& font, const EpdFontFamily::Style st
|
||||
|
||||
namespace {
|
||||
const char* resolveVisualText(const char* text, std::string& visualBuffer, BidiUtils::BidiBaseDir baseDir);
|
||||
|
||||
// Appends the shaped visual form of every RTL token in `text` to `shapedOut`.
|
||||
// getTextAdvanceX() measures the bidi-reordered, Arabic-shaped codepoint stream,
|
||||
// so the SD advance table must be warmed with the presentation forms as well as
|
||||
// the logical codepoints — otherwise every RTL word measurement misses the fast
|
||||
// path and falls through to onGlyphMiss(), which opens the .cpfont and reads
|
||||
// glyph metadata + bitmap into the 8-slot overflow ring, once per glyph.
|
||||
// Tokens without RTL lead bytes (0xD6-0xDB) are skipped with a byte scan, so
|
||||
// pure-LTR text pays almost nothing.
|
||||
void appendShapedRtlTokens(const char* text, std::string& shapedOut) {
|
||||
const auto isBreak = [](const char c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t'; };
|
||||
std::string token;
|
||||
std::string visual;
|
||||
const char* p = text;
|
||||
while (*p) {
|
||||
while (*p && isBreak(*p)) ++p;
|
||||
const char* start = p;
|
||||
bool hasRtlBytes = false;
|
||||
while (*p && !isBreak(*p)) {
|
||||
const auto b = static_cast<unsigned char>(*p);
|
||||
hasRtlBytes = hasRtlBytes || (b >= 0xD6 && b <= 0xDB);
|
||||
++p;
|
||||
}
|
||||
if (!hasRtlBytes) continue;
|
||||
token.assign(start, p - start);
|
||||
if (BidiUtils::applyBidiVisual(token.c_str(), visual, static_cast<int>(BidiUtils::BidiBaseDir::AUTO))) {
|
||||
shapedOut += visual;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
const uint8_t* GfxRenderer::getGlyphBitmap(const EpdFontData* fontData, const EpdGlyph* glyph) const {
|
||||
@@ -58,7 +88,9 @@ const uint8_t* GfxRenderer::getGlyphBitmap(const EpdFontData* fontData, const Ep
|
||||
void GfxRenderer::ensureSdCardFontReady(int fontId, const char* utf8Text, uint8_t styleMask) const {
|
||||
auto it = sdCardFonts_.find(fontId);
|
||||
if (it != sdCardFonts_.end()) {
|
||||
int missed = it->second->buildAdvanceTable(utf8Text, styleMask);
|
||||
std::string shaped;
|
||||
appendShapedRtlTokens(utf8Text, shaped);
|
||||
int missed = it->second->buildAdvanceTable(utf8Text, styleMask, shaped.empty() ? nullptr : shaped.c_str());
|
||||
if (missed > 0) {
|
||||
LOG_DBG("GFX", "ensureSdCardFontReady: %d glyph(s) not found", missed);
|
||||
}
|
||||
@@ -72,7 +104,12 @@ void GfxRenderer::ensureSdCardFontReady(int fontId, const std::vector<std::strin
|
||||
// Augment the persistent advance-only table for layout measurement.
|
||||
// The table survives across paragraphs/sections (capped per font), so
|
||||
// repeated indexing of the same SD font amortizes glyph-metric SD reads.
|
||||
int missed = it->second->buildAdvanceTable(words, includeHyphen, styleMask);
|
||||
std::string shaped;
|
||||
for (const auto& w : words) {
|
||||
appendShapedRtlTokens(w.c_str(), shaped);
|
||||
}
|
||||
int missed =
|
||||
it->second->buildAdvanceTable(words, includeHyphen, styleMask, shaped.empty() ? nullptr : shaped.c_str());
|
||||
if (missed > 0) {
|
||||
LOG_DBG("GFX", "ensureSdCardFontReady: %d glyph(s) not found", missed);
|
||||
}
|
||||
@@ -460,18 +497,21 @@ void GfxRenderer::drawText(const int fontId, const int x, const int y, const cha
|
||||
uint32_t cp;
|
||||
uint32_t prevCp = 0;
|
||||
while ((cp = utf8NextCodepoint(reinterpret_cast<const uint8_t**>(&textCursor)))) {
|
||||
// Skip Hebrew Niqqud (vowel marks)
|
||||
// Temporary: avoid adding Niqqud to built-in fonts. Remove when custom fonts are supported.
|
||||
if (cp >= 0x0591 && cp <= 0x05C7) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (utf8IsCombiningMark(cp)) {
|
||||
// RTL vowel marks (Hebrew niqqud, Arabic harakat) ride the combining-mark
|
||||
// path: zero-advance overlays on the preceding base glyph (applyBidiVisual
|
||||
// emits base-then-marks per UAX#9 L3). anchorFor pins position-sensitive
|
||||
// niqqud (dagesh, shin/sin dots, holam) to their spot on the base; other
|
||||
// marks stay centered, raised above the base or (kasra) at their
|
||||
// font-native position. Fonts without their glyphs — the built-ins — miss
|
||||
// the getGlyph lookup and skip them, as before.
|
||||
if (utf8IsCombiningMark(cp) || BidiUtils::isTransparentMark(cp)) {
|
||||
const EpdGlyph* combiningGlyph = font.getGlyph(cp, style);
|
||||
if (!combiningGlyph) continue;
|
||||
const int raiseBy = combiningMark::raiseAboveBase(combiningGlyph->top, combiningGlyph->height, lastBaseTop);
|
||||
const int combiningX = combiningMark::centerOver(lastBaseX, lastBaseLeft, lastBaseWidth, combiningGlyph->left,
|
||||
combiningGlyph->width);
|
||||
const auto anchor = combiningMark::anchorFor(cp);
|
||||
const int raiseBy =
|
||||
combiningMark::raiseAboveBase(anchor, combiningGlyph->top, combiningGlyph->height, lastBaseTop);
|
||||
const int combiningX = combiningMark::anchorOver(anchor, lastBaseX, lastBaseLeft, lastBaseWidth,
|
||||
combiningGlyph->left, combiningGlyph->width);
|
||||
renderCharImpl<TextRotation::None>(*this, renderMode, font, cp, combiningX, yPos - raiseBy, black, style);
|
||||
continue;
|
||||
}
|
||||
@@ -1671,6 +1711,15 @@ int GfxRenderer::getKerning(const int fontId, const uint32_t leftCp, const uint3
|
||||
}
|
||||
|
||||
int GfxRenderer::getTextAdvanceX(const int fontId, const char* text, EpdFontFamily::Style style) const {
|
||||
// Measure the exact codepoint stream drawText renders: bidi-reordered and
|
||||
// Arabic-shaped (contextual presentation forms, Lam-Alef collapse).
|
||||
// Measuring the raw logical text counts the Alef a ligature absorbs and
|
||||
// uses base-letter advances instead of presentation-form advances, so RTL
|
||||
// lines come out wider than they draw — uneven word gaps and a ragged
|
||||
// right margin.
|
||||
std::string visual;
|
||||
text = resolveVisualText(text, visual, BidiUtils::BidiBaseDir::AUTO);
|
||||
|
||||
// Advance table fast-path for SD card fonts during layout.
|
||||
// No kerning/ligature lookup — consistent with previous metadataOnly behavior
|
||||
// where kern/lig data was not loaded.
|
||||
@@ -1686,6 +1735,10 @@ int GfxRenderer::getTextAdvanceX(const int fontId, const char* text, EpdFontFami
|
||||
}
|
||||
const auto& font = fontIt->second;
|
||||
while (uint32_t cp = utf8NextCodepoint(reinterpret_cast<const uint8_t**>(&text))) {
|
||||
// RTL vowel marks (niqqud/harakat) are zero-advance overlays in drawText — no width.
|
||||
if (BidiUtils::isTransparentMark(cp)) {
|
||||
continue;
|
||||
}
|
||||
int32_t advFP = sdIt->second->getAdvance(cp, styleIdx);
|
||||
if (advFP == 0 && !utf8IsCombiningMark(cp)) {
|
||||
const EpdGlyph* glyph = font.getGlyph(cp, style);
|
||||
@@ -1708,6 +1761,10 @@ int GfxRenderer::getTextAdvanceX(const int fontId, const char* text, EpdFontFami
|
||||
int32_t prevAdvanceFP = 0; // 12.4 fixed-point: prev glyph's advance + next kern for snap
|
||||
const auto& font = fontIt->second;
|
||||
while ((cp = utf8NextCodepoint(reinterpret_cast<const uint8_t**>(&text)))) {
|
||||
// RTL vowel marks (niqqud/harakat) are zero-advance overlays in drawText — no width.
|
||||
if (BidiUtils::isTransparentMark(cp)) {
|
||||
continue;
|
||||
}
|
||||
if (utf8IsCombiningMark(cp)) {
|
||||
continue;
|
||||
}
|
||||
@@ -1784,18 +1841,21 @@ void GfxRenderer::drawTextRotated90CW(const int fontId, const int x, const int y
|
||||
uint32_t cp;
|
||||
uint32_t prevCp = 0;
|
||||
while ((cp = utf8NextCodepoint(reinterpret_cast<const uint8_t**>(&text)))) {
|
||||
// Skip Hebrew Niqqud (vowel marks)
|
||||
// Temporary: avoid adding Niqqud to built-in fonts. Remove when custom fonts are supported.
|
||||
if (cp >= 0x0591 && cp <= 0x05C7) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (utf8IsCombiningMark(cp)) {
|
||||
// RTL vowel marks (Hebrew niqqud, Arabic harakat) ride the combining-mark
|
||||
// path: zero-advance overlays on the preceding base glyph (applyBidiVisual
|
||||
// emits base-then-marks per UAX#9 L3). anchorFor pins position-sensitive
|
||||
// niqqud (dagesh, shin/sin dots, holam) to their spot on the base; other
|
||||
// marks stay centered, raised above the base or (kasra) at their
|
||||
// font-native position. Fonts without their glyphs — the built-ins — miss
|
||||
// the getGlyph lookup and skip them, as before.
|
||||
if (utf8IsCombiningMark(cp) || BidiUtils::isTransparentMark(cp)) {
|
||||
const EpdGlyph* combiningGlyph = font.getGlyph(cp, style);
|
||||
if (!combiningGlyph) continue;
|
||||
const int raiseBy = combiningMark::raiseAboveBase(combiningGlyph->top, combiningGlyph->height, lastBaseTop);
|
||||
const auto anchor = combiningMark::anchorFor(cp);
|
||||
const int raiseBy =
|
||||
combiningMark::raiseAboveBase(anchor, combiningGlyph->top, combiningGlyph->height, lastBaseTop);
|
||||
const int combiningX = x - raiseBy;
|
||||
const int combiningY = combiningMark::centerOverRotated90CW(lastBaseY, lastBaseLeft, lastBaseWidth,
|
||||
const int combiningY = combiningMark::anchorOverRotated90CW(anchor, lastBaseY, lastBaseLeft, lastBaseWidth,
|
||||
combiningGlyph->left, combiningGlyph->width);
|
||||
renderCharImpl<TextRotation::Rotated90CW>(*this, renderMode, font, cp, combiningX, combiningY, black, style);
|
||||
continue;
|
||||
|
||||
@@ -0,0 +1,394 @@
|
||||
_language_name: "العربية"
|
||||
_language_code: "AR"
|
||||
_order: "28"
|
||||
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "جاري بدء التشغيل"
|
||||
STR_SLEEPING: "وضع السكون"
|
||||
STR_ENTERING_SLEEP: "جاري الدخول في وضع السكون"
|
||||
STR_BROWSE_FILES: "تصفح الملفات"
|
||||
STR_FILE_TRANSFER: "نقل الملفات"
|
||||
STR_SETTINGS_TITLE: "الإعدادات"
|
||||
STR_CONTINUE_READING: "متابعة القراءة"
|
||||
STR_NO_OPEN_BOOK: "لا يوجد كتاب مفتوح"
|
||||
STR_START_READING: "ابدأ القراءة أدناه"
|
||||
STR_NO_FILES_FOUND: "لم يتم العثور على ملفات"
|
||||
STR_SELECT_CHAPTER: "اختر الفصل"
|
||||
STR_NO_CHAPTERS: "لا توجد فصول"
|
||||
STR_END_OF_BOOK: "نهاية الكتاب"
|
||||
STR_EMPTY_CHAPTER: "فصل فارغ"
|
||||
STR_INDEXING: "جاري الفهرسة"
|
||||
STR_INDEX_FAILED: "فشلت الفهرسة - كتاب غير صالح"
|
||||
STR_MEMORY_ERROR: "خطأ في الذاكرة"
|
||||
STR_PAGE_LOAD_ERROR: "خطأ في تحميل الصفحة"
|
||||
STR_EMPTY_FILE: "ملف فارغ"
|
||||
STR_OUT_OF_BOUNDS: "خارج النطاق"
|
||||
STR_LOADING: "جاري التحميل..."
|
||||
STR_LOADING_POPUP: "جاري التحميل"
|
||||
STR_WIFI_NETWORKS: "شبكات Wi-Fi"
|
||||
STR_NO_NETWORKS: "لم يتم العثور على شبكات"
|
||||
STR_NETWORKS_FOUND: "تم العثور على %zu شبكة"
|
||||
STR_SCANNING: "جاري البحث..."
|
||||
STR_FINDING_SAVED_WIFI: "جاري البحث عن شبكة Wi-Fi محفوظة..."
|
||||
STR_CONNECTING: "جاري الاتصال..."
|
||||
STR_CONNECTING_SAVED_WIFI: "جاري الاتصال بشبكة Wi-Fi محفوظة..."
|
||||
STR_SHOW_NETWORKS: "عرض"
|
||||
STR_CONNECTED: "تم الاتصال!"
|
||||
STR_CONNECTION_FAILED: "فشل الاتصال"
|
||||
STR_FORGET_NETWORK: "نسيان هذه الشبكة؟"
|
||||
STR_SAVE_PASSWORD: "حفظ كلمة المرور للمرة القادمة؟"
|
||||
STR_PRESS_OK_SCAN: "اضغط موافق لإعادة البحث"
|
||||
STR_JOIN_NETWORK: "الانضمام إلى شبكة"
|
||||
STR_CREATE_HOTSPOT: "إنشاء نقطة اتصال"
|
||||
STR_JOIN_DESC: "الاتصال بشبكة Wi-Fi موجودة"
|
||||
STR_HOTSPOT_DESC: "إنشاء شبكة Wi-Fi يمكن للآخرين الانضمام إليها"
|
||||
STR_STARTING_HOTSPOT: "جاري تشغيل نقطة الاتصال..."
|
||||
STR_HOTSPOT_MODE: "وضع نقطة الاتصال"
|
||||
STR_CONNECT_WIFI_HINT: "قم بتوصيل جهازك بشبكة Wi-Fi هذه"
|
||||
STR_OPEN_URL_HINT: "افتح هذا العنوان في المتصفح"
|
||||
STR_OR_HTTP_PREFIX: "أو http://"
|
||||
STR_SCAN_QR_HINT: "أو امسح رمز QR بهاتفك:"
|
||||
STR_CALIBRE_WIRELESS: "اتصال Calibre اللاسلكي"
|
||||
STR_NETWORK_LEGEND: "* = مشفرة | + = محفوظة"
|
||||
STR_MAC_ADDRESS: "عنوان MAC:"
|
||||
STR_CHECKING_WIFI: "جاري فحص Wi-Fi..."
|
||||
STR_ENTER_WIFI_PASSWORD: "أدخل كلمة مرور الشبكة"
|
||||
STR_ADD_HIDDEN_NETWORK: "إضافة شبكة مخفية..."
|
||||
STR_ENTER_WIFI_SSID: "أدخل اسم الشبكة (SSID)"
|
||||
STR_TO_PREFIX: "إلى "
|
||||
STR_CALIBRE_RECEIVING: "جاري الاستلام: "
|
||||
STR_CALIBRE_RECEIVED: "تم الاستلام: "
|
||||
STR_CALIBRE_INSTRUCTION_1: "1) قم بتثبيت إضافة CrossPoint Reader"
|
||||
STR_CALIBRE_INSTRUCTION_2: "2) اتصل بنفس شبكة Wi-Fi"
|
||||
STR_CALIBRE_INSTRUCTION_3: "3) في Calibre: اختر \"إرسال إلى الجهاز\""
|
||||
STR_CALIBRE_INSTRUCTION_4: "اترك هذه الشاشة مفتوحة أثناء الإرسال"
|
||||
STR_CAT_DISPLAY: "الشاشة"
|
||||
STR_CAT_READER: "القراءة"
|
||||
STR_CAT_CONTROLS: "الأزرار"
|
||||
STR_CAT_SYSTEM: "النظام"
|
||||
STR_SLEEP_SCREEN: "شاشة السكون"
|
||||
STR_QUICK_RESUME_TIMEOUT: "استئناف سريع بعد المهلة"
|
||||
STR_SLEEP_COVER_MODE: "عرض الغلاف في وضع السكون"
|
||||
STR_HIDE_BATTERY: "إخفاء نسبة البطارية"
|
||||
STR_EXTRA_SPACING: "تباعد إضافي بين الفقرات"
|
||||
STR_TEXT_AA: "تنعيم حواف النص"
|
||||
STR_IMAGES: "الصور"
|
||||
STR_IMAGES_DISPLAY: "عرض"
|
||||
STR_IMAGES_PLACEHOLDER: "عنصر نائب"
|
||||
STR_IMAGES_SUPPRESS: "إخفاء"
|
||||
STR_EOB_HOME: "الرئيسية"
|
||||
STR_EOB_CONTINUE_WITH: "المتابعة إلى"
|
||||
STR_SHORT_PWR_BTN: "ضغطة قصيرة على زر التشغيل"
|
||||
STR_ORIENTATION: "اتجاه القراءة"
|
||||
STR_SIDE_BTN_LAYOUT: "تخطيط الأزرار الجانبية (أثناء القراءة)"
|
||||
STR_FRONT_BTN_FOLLOW_ORIENTATION: "تدوير الأزرار الأمامية مع الشاشة"
|
||||
STR_LONG_PRESS_BEHAVIOR: "سلوك الضغطة الطويلة"
|
||||
STR_LONG_PRESS_BEHAVIOR_OFF: "إيقاف"
|
||||
STR_LONG_PRESS_BEHAVIOR_SKIP: "تخطي الفصل"
|
||||
STR_LONG_PRESS_BEHAVIOR_ORIENTATION: "تغيير الاتجاه"
|
||||
STR_LONG_PRESS_MENU: "قائمة الضغطة الطويلة"
|
||||
STR_FONT_PREVIEW_TEXT: "نص حكيم له سر قاطع وذو شأن عظيم مكتوب على ثوب أخضر ومغلف بجلد أزرق"
|
||||
STR_FONT_FAMILY: "خط القراءة"
|
||||
STR_FONT_SIZE: "حجم الخط"
|
||||
STR_LINE_SPACING: "تباعد الأسطر"
|
||||
STR_SCREEN_MARGIN: "هوامش شاشة القراءة"
|
||||
STR_PARA_ALIGNMENT: "محاذاة الفقرات"
|
||||
STR_HYPHENATION: "تقسيم الكلمات"
|
||||
STR_TIME_TO_SLEEP: "مهلة الدخول في السكون"
|
||||
STR_SHOW_HIDDEN_FILES: "عرض الملفات المخفية"
|
||||
STR_REMOVE_READ_FROM_RECENTS: "إزالة الكتب المقروءة من قائمة الكتب الأخيرة"
|
||||
STR_MOVE_FINISHED_TO_READ: "نقل الكتب المنتهية إلى مجلد المقروءة"
|
||||
STR_REFRESH_FREQ: "معدل تحديث الشاشة"
|
||||
STR_KOREADER_SYNC: "مزامنة KOReader"
|
||||
STR_CHECK_UPDATES: "التحقق من التحديثات"
|
||||
STR_LANGUAGE: "اللغة"
|
||||
STR_CLEAR_READING_CACHE: "مسح ذاكرة القراءة المؤقتة"
|
||||
STR_USERNAME: "اسم المستخدم"
|
||||
STR_PASSWORD: "كلمة المرور"
|
||||
STR_SYNC_SERVER_URL: "عنوان خادم المزامنة"
|
||||
STR_DOCUMENT_MATCHING: "مطابقة المستندات"
|
||||
STR_SEND_METADATA: "إرسال البيانات الوصفية للمستند"
|
||||
STR_AUTHENTICATE: "تسجيل الدخول"
|
||||
STR_KOREADER_USERNAME: "اسم مستخدم KOReader"
|
||||
STR_KOREADER_PASSWORD: "كلمة مرور KOReader"
|
||||
STR_FILENAME: "اسم الملف"
|
||||
STR_BINARY: "ثنائي"
|
||||
STR_SET_CREDENTIALS_FIRST: "أدخل بيانات الاعتماد أولا"
|
||||
STR_WIFI_CONN_FAILED: "فشل الاتصال بالشبكة"
|
||||
STR_AUTHENTICATING: "جاري التحقق..."
|
||||
STR_AUTH_SUCCESS: "تم تسجيل الدخول بنجاح!"
|
||||
STR_KOREADER_AUTH: "تسجيل الدخول إلى KOReader"
|
||||
STR_SYNC_READY: "مزامنة KOReader جاهزة للاستخدام"
|
||||
STR_AUTH_FAILED: "فشل تسجيل الدخول"
|
||||
STR_DONE: "تم"
|
||||
STR_CLEAR_CACHE_WARNING_1: "سيؤدي هذا إلى مسح جميع بيانات الكتب المخزنة."
|
||||
STR_CLEAR_CACHE_WARNING_2: "سيتم فقدان كل تقدم القراءة!"
|
||||
STR_CLEAR_CACHE_WARNING_3: "ستحتاج الكتب إلى إعادة فهرسة"
|
||||
STR_CLEAR_CACHE_WARNING_4: "عند فتحها مرة أخرى."
|
||||
STR_CLEARING_CACHE: "جاري مسح الذاكرة المؤقتة..."
|
||||
STR_CACHE_CLEARED: "تم مسح الذاكرة المؤقتة"
|
||||
STR_ITEMS_REMOVED: "عناصر تمت إزالتها"
|
||||
STR_FAILED_LOWER: "فشل"
|
||||
STR_CLEAR_CACHE_FAILED: "فشل مسح الذاكرة المؤقتة"
|
||||
STR_CHECK_SERIAL_OUTPUT: "راجع مخرجات المنفذ التسلسلي للتفاصيل"
|
||||
STR_DARK: "داكن"
|
||||
STR_LIGHT: "فاتح"
|
||||
STR_CUSTOM: "مخصص"
|
||||
STR_COVER: "الغلاف"
|
||||
STR_NONE_OPT: "بدون"
|
||||
STR_FIT: "ملاءمة"
|
||||
STR_CROP: "قص"
|
||||
STR_NEVER: "أبدا"
|
||||
STR_IN_READER: "أثناء القراءة"
|
||||
STR_ALWAYS: "دائما"
|
||||
STR_IGNORE: "تجاهل"
|
||||
STR_SLEEP: "سكون"
|
||||
STR_PAGE_TURN: "تقليب الصفحة"
|
||||
STR_FORCE_REFRESH: "تحديث الشاشة"
|
||||
STR_PORTRAIT: "عمودي"
|
||||
STR_LANDSCAPE_CW: "أفقي (يمين)"
|
||||
STR_INVERTED: "عكس الألوان"
|
||||
STR_ORIENTATION_INVERTED: "عمودي 180°"
|
||||
STR_LANDSCAPE_CCW: "أفقي (يسار)"
|
||||
STR_PREV_NEXT: "السابق/التالي"
|
||||
STR_NEXT_PREV: "التالي/السابق"
|
||||
STR_KOSYNC: "KOSync"
|
||||
STR_BOOKMARK_OPTION: "إشارة مرجعية"
|
||||
STR_DISABLED: "معطل"
|
||||
STR_NOTO_SERIF: "Noto Serif"
|
||||
STR_NOTO_SANS: "Noto Sans"
|
||||
STR_SMALL: "صغير"
|
||||
STR_MEDIUM: "متوسط"
|
||||
STR_LARGE: "كبير"
|
||||
STR_X_LARGE: "كبير جدا"
|
||||
STR_TIGHT: "ضيق"
|
||||
STR_NORMAL: "عادي"
|
||||
STR_WIDE: "واسع"
|
||||
STR_JUSTIFY: "ضبط الطرفين"
|
||||
STR_ALIGN_LEFT: "يسار"
|
||||
STR_CENTER: "وسط"
|
||||
STR_ALIGN_RIGHT: "يمين"
|
||||
STR_PAGES_1: "صفحة واحدة"
|
||||
STR_PAGES_5: "5 صفحات"
|
||||
STR_PAGES_10: "10 صفحات"
|
||||
STR_PAGES_15: "15 صفحة"
|
||||
STR_PAGES_30: "30 صفحة"
|
||||
STR_UPDATE: "تحديث"
|
||||
STR_CHECKING_UPDATE: "جاري التحقق من التحديثات..."
|
||||
STR_NEW_UPDATE: "يتوفر تحديث جديد!"
|
||||
STR_CURRENT_VERSION: "الإصدار الحالي: "
|
||||
STR_NEW_VERSION: "الإصدار الجديد: "
|
||||
STR_UPDATING: "جاري التحديث..."
|
||||
STR_NO_UPDATE: "لا يتوفر تحديث"
|
||||
STR_UPDATE_FAILED: "فشل التحديث"
|
||||
STR_UPDATE_COMPLETE: "اكتمل التحديث"
|
||||
STR_POWER_ON_HINT: "اضغط مطولا على زر التشغيل لتشغيل الجهاز من جديد"
|
||||
STR_RESTARTING_HINT: "جاري إعادة التشغيل... إذا لم يعمل الجهاز، اضغط مطولا على زر التشغيل لعدة ثوان."
|
||||
STR_NO_ENTRIES: "لم يتم العثور على عناصر"
|
||||
STR_DOWNLOADING: "جاري التنزيل..."
|
||||
STR_DOWNLOAD_FAILED: "فشل التنزيل"
|
||||
STR_ERROR_MSG: "خطأ:"
|
||||
STR_UNNAMED: "بدون اسم"
|
||||
STR_HOLD_OPEN_TO_DELETE: "اضغط مطولا على فتح للحذف"
|
||||
STR_NO_SERVER_URL: "لم يتم تحديد عنوان الخادم"
|
||||
STR_FETCH_FEED_FAILED: "فشل جلب القائمة"
|
||||
STR_PARSE_FEED_FAILED: "فشل تحليل القائمة"
|
||||
STR_NEXT_PAGE: "الصفحة التالية"
|
||||
STR_PREV_PAGE: "الصفحة السابقة"
|
||||
STR_NETWORK_PREFIX: "الشبكة: "
|
||||
STR_IP_ADDRESS_PREFIX: "عنوان IP: "
|
||||
STR_ERROR_GENERAL_FAILURE: "خطأ: فشل عام"
|
||||
STR_ERROR_NETWORK_NOT_FOUND: "خطأ: الشبكة غير موجودة"
|
||||
STR_ERROR_CONNECTION_TIMEOUT: "خطأ: انتهت مهلة الاتصال"
|
||||
STR_SD_CARD: "بطاقة SD"
|
||||
STR_BACK: "رجوع »"
|
||||
STR_EXIT: "خروج »"
|
||||
STR_HOME: "الرئيسية »"
|
||||
STR_SELECT: "اختيار"
|
||||
STR_SELECTED: "محدد"
|
||||
STR_TOGGLE: "تبديل"
|
||||
STR_TOGGLE_BOOKMARK: "إضافة/إزالة إشارة مرجعية"
|
||||
STR_CONFIRM: "تأكيد"
|
||||
STR_CANCEL: "إلغاء"
|
||||
STR_CONNECT: "اتصال"
|
||||
STR_OPEN: "فتح"
|
||||
STR_DOWNLOAD: "تنزيل"
|
||||
STR_RETRY: "إعادة المحاولة"
|
||||
STR_YES: "نعم"
|
||||
STR_NO: "لا"
|
||||
STR_SHOW: "عرض"
|
||||
STR_HIDE: "إخفاء"
|
||||
STR_STATE_ON: "تشغيل"
|
||||
STR_STATE_OFF: "إيقاف"
|
||||
STR_NOT_SET: "غير محدد"
|
||||
STR_DIR_LEFT: "يسار"
|
||||
STR_DIR_RIGHT: "يمين"
|
||||
STR_DIR_UP: "أعلى"
|
||||
STR_DIR_DOWN: "أسفل"
|
||||
STR_OK_BUTTON: "موافق"
|
||||
STR_SLEEP_COVER_FILTER: "مرشح غلاف شاشة السكون"
|
||||
STR_FILTER_CONTRAST: "التباين"
|
||||
STR_CUSTOMISE_STATUS_BAR: "تخصيص شريط الحالة"
|
||||
STR_CHAPTER_PAGE_COUNT: "عدد صفحات الفصل"
|
||||
STR_BOOK_PROGRESS_PERCENTAGE: "نسبة التقدم في الكتاب"
|
||||
STR_PROGRESS_BAR: "شريط التقدم"
|
||||
STR_PROGRESS_BAR_THICKNESS: "سمك شريط التقدم"
|
||||
STR_PROGRESS_BAR_THIN: "رفيع"
|
||||
STR_PROGRESS_BAR_MEDIUM: "متوسط"
|
||||
STR_PROGRESS_BAR_THICK: "سميك"
|
||||
STR_BOOK: "الكتاب"
|
||||
STR_CHAPTER: "الفصل"
|
||||
STR_EXAMPLE_CHAPTER: "الفصل 21"
|
||||
STR_EXAMPLE_BOOK: "عنوان الكتاب"
|
||||
STR_PREVIEW: "معاينة"
|
||||
STR_TITLE: "العنوان"
|
||||
STR_BATTERY: "البطارية"
|
||||
STR_XTC_STATUS_BAR: "شريط حالة XTC"
|
||||
STR_BOTTOM: "أسفل"
|
||||
STR_TOP: "أعلى"
|
||||
STR_CLOCK: "الساعة"
|
||||
STR_CLOCK_UTC_OFFSET: "فرق التوقيت عن UTC"
|
||||
STR_CLOCK_FORMAT: "تنسيق الساعة"
|
||||
STR_CLOCK_FORMAT_24H: "24 ساعة"
|
||||
STR_CLOCK_FORMAT_12H: "12 ساعة"
|
||||
STR_CURRENT_TIME: "الوقت الحالي:"
|
||||
STR_NEXT_FIELD: "التالي"
|
||||
STR_CLOCK_SYNC: "مزامنة الساعة"
|
||||
STR_CLOCK_SYNC_NOW: "مزامنة الساعة الآن"
|
||||
STR_CLOCK_SYNCING: "جاري المزامنة عبر NTP..."
|
||||
STR_CLOCK_SYNC_OK: "تمت مزامنة الساعة"
|
||||
STR_CLOCK_SYNC_FAIL: "فشلت المزامنة"
|
||||
STR_CLOCK_SYNC_NO_WIFI: "لا يوجد اتصال Wi-Fi"
|
||||
STR_CLOCK_SYNC_NO_WIFI_HINT: "اتصل بشبكة Wi-Fi أولا، ثم حاول مرة أخرى."
|
||||
STR_CLOCK_SYNCED: "تمت مزامنة الساعة"
|
||||
STR_UI_THEME: "مظهر الواجهة"
|
||||
STR_THEME_CLASSIC: "كلاسيكي"
|
||||
STR_THEME_LYRA: "Lyra"
|
||||
STR_THEME_ROUNDEDRAFF: "RoundedRaff"
|
||||
STR_THEME_LYRA_EXTENDED: "Lyra موسع"
|
||||
STR_SUNLIGHT_FADING_FIX: "إصلاح بهتان الشاشة في الشمس"
|
||||
STR_REMAP_FRONT_BUTTONS: "تغيير وظائف الأزرار الأمامية"
|
||||
STR_BOOKMARKS: "الإشارات المرجعية"
|
||||
STR_BOOKMARK_ADDED: "تمت إضافة الإشارة المرجعية."
|
||||
STR_BOOKMARK_REMOVED: "تمت إزالة الإشارة المرجعية."
|
||||
STR_OPDS_BROWSER: "متصفح OPDS"
|
||||
STR_SEARCH: "بحث"
|
||||
STR_COVER_CUSTOM: "الغلاف + مخصص"
|
||||
STR_QUICK_RESUME: "استئناف سريع"
|
||||
STR_MENU_RECENT_BOOKS: "الكتب الأخيرة"
|
||||
STR_REMOVE_FROM_RECENTS: "إزالة من الكتب الأخيرة؟"
|
||||
STR_NO_RECENT_BOOKS: "لا توجد كتب أخيرة"
|
||||
STR_CALIBRE_DESC: "استخدم النقل اللاسلكي من Calibre"
|
||||
STR_FORGET_AND_REMOVE: "نسيان الشبكة وحذف كلمة المرور المحفوظة؟"
|
||||
STR_FORGET_BUTTON: "نسيان"
|
||||
STR_CALIBRE_STARTING: "جاري تشغيل Calibre..."
|
||||
STR_CALIBRE_SETUP: "الإعداد"
|
||||
STR_CALIBRE_STATUS: "الحالة"
|
||||
STR_CLEAR_BUTTON: "مسح"
|
||||
STR_DEFAULT_VALUE: "افتراضي"
|
||||
STR_REMAP_PROMPT: "اضغط زرا أماميا لكل وظيفة"
|
||||
STR_UNASSIGNED: "غير معين"
|
||||
STR_ALREADY_ASSIGNED: "معين مسبقا"
|
||||
STR_REMAP_RESET_HINT: "الزر الجانبي العلوي: استعادة التخطيط الافتراضي"
|
||||
STR_REMAP_CANCEL_HINT: "الزر الجانبي السفلي: إلغاء التغيير"
|
||||
STR_HW_BACK_LABEL: "رجوع (الزر 1)"
|
||||
STR_HW_CONFIRM_LABEL: "تأكيد (الزر 2)"
|
||||
STR_HW_LEFT_LABEL: "يسار (الزر 3)"
|
||||
STR_HW_RIGHT_LABEL: "يمين (الزر 4)"
|
||||
STR_GO_TO_PERCENT: "الانتقال إلى نسبة %"
|
||||
STR_GO_HOME_BUTTON: "العودة إلى الرئيسية"
|
||||
STR_SYNC_PROGRESS: "مزامنة التقدم"
|
||||
STR_DELETE_CACHE: "حذف ذاكرة الكتاب المؤقتة"
|
||||
STR_DELETE: "حذف"
|
||||
STR_CONFIRM_DELETE_BOOKMARK: "حذف هذه الإشارة المرجعية؟"
|
||||
STR_DISPLAY_QR: "عرض الصفحة كرمز QR"
|
||||
STR_CHAPTER_PREFIX: "الفصل: "
|
||||
STR_PAGES_SEPARATOR: " صفحات | "
|
||||
STR_BOOK_PREFIX: "الكتاب: "
|
||||
STR_CALIBRE_URL_HINT: "في Calibre، أضف /opds إلى العنوان"
|
||||
STR_SYNCING_TIME: "جاري مزامنة الوقت..."
|
||||
STR_CALC_HASH: "جاري حساب بصمة المستند..."
|
||||
STR_HASH_FAILED: "فشل حساب بصمة المستند"
|
||||
STR_FETCH_PROGRESS: "جاري جلب التقدم من الخادم..."
|
||||
STR_UPLOAD_PROGRESS: "جاري رفع التقدم..."
|
||||
STR_NO_CREDENTIALS_MSG: "لم يتم إعداد بيانات الاعتماد"
|
||||
STR_KOREADER_SETUP_HINT: "قم بإعداد حساب KOReader في الإعدادات"
|
||||
STR_PROGRESS_FOUND: "تم العثور على تقدم سابق!"
|
||||
STR_REMOTE_LABEL: "الخادم:"
|
||||
STR_LOCAL_LABEL: "الجهاز:"
|
||||
STR_PAGE_OVERALL_FORMAT: "صفحة %d، %.2f%% إجمالا"
|
||||
STR_PAGE_TOTAL_OVERALL_FORMAT: "صفحة %d من %d، %.2f%% إجمالا"
|
||||
STR_DEVICE_FROM_FORMAT: " من: %s"
|
||||
STR_APPLY_REMOTE: "استخدام تقدم الخادم"
|
||||
STR_UPLOAD_LOCAL: "رفع التقدم المحلي"
|
||||
STR_NO_REMOTE_MSG: "لا يوجد تقدم على الخادم"
|
||||
STR_UPLOAD_PROMPT: "رفع الموضع الحالي؟"
|
||||
STR_UPLOAD_SUCCESS: "تم رفع التقدم!"
|
||||
STR_SYNC_FAILED_MSG: "فشلت المزامنة"
|
||||
STR_SAVE_PROGRESS_FAILED: "تعذر حفظ التقدم"
|
||||
STR_SECTION_PREFIX: "القسم "
|
||||
STR_UPLOAD: "رفع"
|
||||
STR_BOOK_S_STYLE: "تنسيق الكتاب الأصلي"
|
||||
STR_EMBEDDED_STYLE: "التنسيق المضمن"
|
||||
STR_FOCUS_READING: "قراءة مركزة"
|
||||
STR_OPDS_SERVER_URL: "عنوان خادم OPDS"
|
||||
STR_PWR_BTN_FOOTNOTE_BACK: "عودة سريعة من الحواشي"
|
||||
STR_SET_SLEEP_COVER: "تعيين الغلاف"
|
||||
STR_FOOTNOTES: "الحواشي"
|
||||
STR_NO_FOOTNOTES: "لا توجد حواش في هذه الصفحة"
|
||||
STR_LINK: "[رابط]"
|
||||
STR_SCREENSHOT_BUTTON: "التقاط لقطة شاشة"
|
||||
STR_SLEEP_TIMER_VALUE_FORMAT: "%u دقيقة"
|
||||
STR_SLEEP_NEVER: "أبدا"
|
||||
STR_STEP_HINT_FRONT: "الأزرار الأمامية:"
|
||||
STR_STEP_HINT_SIDE: "الأزرار الجانبية:"
|
||||
STR_ADD_SERVER: "إضافة خادم"
|
||||
STR_SERVER_NAME: "اسم الخادم"
|
||||
STR_NO_SERVERS: "لم يتم إعداد خوادم OPDS"
|
||||
STR_DELETE_SERVER: "حذف الخادم"
|
||||
STR_OPDS_SERVERS: "خوادم OPDS"
|
||||
STR_AUTO_TURN_ENABLED: "التقليب التلقائي مفعل: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "التقليب التلقائي (صفحات في الدقيقة)"
|
||||
STR_MANAGE_FONTS: "إدارة الخطوط"
|
||||
STR_FONT_BROWSER: "متصفح الخطوط"
|
||||
STR_LOADING_FONT_LIST: "جاري تحميل قائمة الخطوط..."
|
||||
STR_NO_FONTS_AVAILABLE: "لا تتوفر خطوط"
|
||||
STR_FONT_INSTALLED: "تم تثبيت الخط!"
|
||||
STR_FONT_INSTALL_FAILED: "فشل تثبيت الخط"
|
||||
STR_INSTALLED: "مثبت"
|
||||
STR_DOWNLOAD_ALL: "تنزيل الكل"
|
||||
STR_UPDATE_ALL: "تحديث الكل"
|
||||
STR_UPDATE_AVAILABLE: "تحديث"
|
||||
STR_CRASH_TITLE: "تعطل النظام"
|
||||
STR_CRASH_DESCRIPTION: "تم حفظ تقرير مفصل في الملف crash_report.txt. يرجى إرفاق هذا الملف عند الإبلاغ عن المشكلة."
|
||||
STR_CRASH_REASON: "سبب التعطل:"
|
||||
STR_CRASH_NO_REASON: "(لم يتم تسجيل سبب)"
|
||||
STR_TILT_PAGE_TURN: "تقليب الصفحة بالإمالة"
|
||||
STR_KB_HINT_MOVE_CURSOR: "اضغط زر اليمين أو اليسار لتحريك المؤشر"
|
||||
STR_KB_HINT_RETURN_CURSOR: "اضغط زر اليسار للعودة إلى موضع المؤشر"
|
||||
STR_KB_HINT_HIDE_PASSWORD: "اضغط مطولا على زر اليمين ثم اضغط [***] لإخفاء كلمة المرور"
|
||||
STR_KB_HINT_SHOW_PASSWORD: "اضغط مطولا على زر اليمين ثم اضغط [abc] لإظهار كلمة المرور"
|
||||
STR_KB_HINT_TOGGLE_HIDE_PASSWORD: "اضغط [***] لإخفاء كلمة المرور"
|
||||
STR_KB_HINT_TOGGLE_SHOW_PASSWORD: "اضغط [abc] لإظهار كلمة المرور"
|
||||
STR_KB_HINT_EDIT_ENTRY: "اضغط مطولا على زر الأعلى للتعديل"
|
||||
STR_KB_TIPS: "نصائح:"
|
||||
STR_KB_HINT_RETURN_KEYBOARD: "اضغط زر الأسفل للعودة إلى لوحة المفاتيح"
|
||||
STR_KB_HINT_EXIT_URL_MODE: "اضغط ABC للخروج من وضع URL"
|
||||
STR_KB_HINT_CLEAR_TEXT: "اضغط مطولا على DEL لمسح كل النص"
|
||||
STR_KB_HINT_SECONDARY_CHAR: "اضغط مطولا على زر الاختيار للحرف الثانوي"
|
||||
STR_KB_HINT_UPPER_SECONDARY: "اضغط مطولا على زر الاختيار للحرف الكبير أو الثانوي"
|
||||
STR_KB_HINT_LOWER_SECONDARY: "اضغط مطولا على زر الاختيار للحرف الصغير أو الثانوي"
|
||||
STR_KB_HINT_URL_SNIPPETS: "اضغط URL للاختصارات"
|
||||
STR_SD_FIRMWARE_UPDATE: "تحديث البرنامج الثابت من بطاقة SD"
|
||||
STR_SELECT_FIRMWARE_FILE: "اختر ملف البرنامج الثابت (.bin)"
|
||||
STR_NO_BIN_FILES: "لم يتم العثور على ملفات .bin"
|
||||
STR_VALIDATING_FIRMWARE: "جاري التحقق من البرنامج الثابت..."
|
||||
STR_INVALID_FIRMWARE: "ملف برنامج ثابت غير صالح"
|
||||
STR_FIRMWARE_TOO_LARGE: "البرنامج الثابت أكبر من القسم المخصص له"
|
||||
STR_FIRMWARE_TOO_SMALL: "ملف البرنامج الثابت صغير جدا"
|
||||
STR_FIRMWARE_UPDATE_PROMPT: "تحديث البرنامج الثابت؟"
|
||||
STR_FIRMWARE_FILE_OPEN_FAILED: "تعذر فتح الملف"
|
||||
STR_FIRMWARE_WRITE_FAILED: "فشلت كتابة البرنامج الثابت"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "لا تطفئ الجهاز!"
|
||||
STR_RECOVERY_MODE: "وضع الاستعادة"
|
||||
STR_RECOVERY_MODE_HINT: "ضع الملف firmware.bin في المجلد الرئيسي لبطاقة SD ثم اختره"
|
||||
@@ -301,3 +301,5 @@ STR_STEP_HINT_SIDE: "Бакавыя кнопкі:"
|
||||
STR_AUTO_TURN_ENABLED: "Аўтаперагортванне: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Аўтаперагортванне (старонак за хвіліну)"
|
||||
STR_TILT_PAGE_TURN: "Перагортванне нахілам"
|
||||
STR_ADD_HIDDEN_NETWORK: "Дадаць схаваную сетку..."
|
||||
STR_ENTER_WIFI_SSID: "Увядзіце назву сеткі (SSID)"
|
||||
|
||||
@@ -390,3 +390,5 @@ STR_FIRMWARE_WRITE_FAILED: "Ha fallat l'escriptura del firmware"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "No apaguis el dispositiu!"
|
||||
STR_RECOVERY_MODE: "Mode de recuperació"
|
||||
STR_RECOVERY_MODE_HINT: "Posa firmware.bin a l'arrel de la targeta SD i selecciona'l"
|
||||
STR_ADD_HIDDEN_NETWORK: "Afegeix una xarxa oculta..."
|
||||
STR_ENTER_WIFI_SSID: "Introdueix el nom de la xarxa (SSID)"
|
||||
|
||||
@@ -276,3 +276,5 @@ STR_SLEEP_NEVER: "Nikdy"
|
||||
STR_STEP_HINT_FRONT: "Přední tlačítka:"
|
||||
STR_STEP_HINT_SIDE: "Boční tlačítka:"
|
||||
STR_TILT_PAGE_TURN: "Otáčení stránek nakloněním"
|
||||
STR_ADD_HIDDEN_NETWORK: "Přidat skrytou síť..."
|
||||
STR_ENTER_WIFI_SSID: "Zadejte název sítě (SSID)"
|
||||
|
||||
@@ -304,3 +304,5 @@ STR_SCREENSHOT_BUTTON: "Tag skærmbillede"
|
||||
STR_AUTO_TURN_ENABLED: "Automatisk sidevendning aktiveret: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Automatisk vending (sider per minut)"
|
||||
STR_TILT_PAGE_TURN: "Vip for at vende side"
|
||||
STR_ADD_HIDDEN_NETWORK: "Tilføj skjult netværk..."
|
||||
STR_ENTER_WIFI_SSID: "Indtast netværksnavn (SSID)"
|
||||
|
||||
@@ -304,3 +304,5 @@ STR_SCREENSHOT_BUTTON: "Screenshot maken"
|
||||
STR_AUTO_TURN_ENABLED: "Automatisch omslaan ingeschakeld: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Autom. omslaan (pagina's per minuut)"
|
||||
STR_TILT_PAGE_TURN: "Kantel om te bladeren"
|
||||
STR_ADD_HIDDEN_NETWORK: "Verborgen netwerk toevoegen..."
|
||||
STR_ENTER_WIFI_SSID: "Voer netwerknaam in (SSID)"
|
||||
|
||||
@@ -53,6 +53,8 @@ STR_NETWORK_LEGEND: "* = Encrypted | + = Saved"
|
||||
STR_MAC_ADDRESS: "MAC address:"
|
||||
STR_CHECKING_WIFI: "Checking Wi-Fi..."
|
||||
STR_ENTER_WIFI_PASSWORD: "Enter Wi-Fi password"
|
||||
STR_ADD_HIDDEN_NETWORK: "Add hidden network..."
|
||||
STR_ENTER_WIFI_SSID: "Enter network name (SSID)"
|
||||
STR_TO_PREFIX: "to "
|
||||
STR_CALIBRE_RECEIVING: "Receiving: "
|
||||
STR_CALIBRE_RECEIVED: "Received: "
|
||||
|
||||
@@ -274,3 +274,5 @@ STR_SLEEP_NEVER: "Ei koskaan"
|
||||
STR_STEP_HINT_FRONT: "Etupainikkeet:"
|
||||
STR_STEP_HINT_SIDE: "Sivupainikkeet:"
|
||||
STR_TILT_PAGE_TURN: "Sivunkääntö kallistamalla"
|
||||
STR_ADD_HIDDEN_NETWORK: "Lisää piilotettu verkko..."
|
||||
STR_ENTER_WIFI_SSID: "Anna verkon nimi (SSID)"
|
||||
|
||||
@@ -305,3 +305,5 @@ STR_SCREENSHOT_BUTTON: "Capture d'écran"
|
||||
STR_AUTO_TURN_ENABLED: "Tourne-page auto : "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Tourne-page auto (pages par minute)"
|
||||
STR_TILT_PAGE_TURN: "Tourner par inclinaison"
|
||||
STR_ADD_HIDDEN_NETWORK: "Ajouter un réseau masqué..."
|
||||
STR_ENTER_WIFI_SSID: "Saisir le nom du réseau (SSID)"
|
||||
|
||||
@@ -381,3 +381,5 @@ STR_FIRMWARE_WRITE_FAILED: "Schreiben der Firmware-Datei ist fehlgeschlagen"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Nicht ausschalten!"
|
||||
STR_RECOVERY_MODE: "Wiederherstellungsmodus"
|
||||
STR_RECOVERY_MODE_HINT: "Lege firmware.bin im SD-Kartenwurzelverzeichnis ab und wähle es aus"
|
||||
STR_ADD_HIDDEN_NETWORK: "Verstecktes Netzwerk hinzufügen..."
|
||||
STR_ENTER_WIFI_SSID: "Netzwerknamen eingeben (SSID)"
|
||||
|
||||
@@ -392,3 +392,5 @@ STR_SLEEP_TIMER_VALUE_FORMAT: "%u דקות"
|
||||
STR_SLEEP_NEVER: "אף פעם"
|
||||
STR_STEP_HINT_FRONT: "לחצנים קדמיים:"
|
||||
STR_STEP_HINT_SIDE: "לחצני צד:"
|
||||
STR_ADD_HIDDEN_NETWORK: "הוסף רשת מוסתרת..."
|
||||
STR_ENTER_WIFI_SSID: "הזן שם רשת (SSID)"
|
||||
|
||||
@@ -49,6 +49,8 @@ STR_NETWORK_LEGEND: "* = Titkosított | + = Mentett"
|
||||
STR_MAC_ADDRESS: "MAC-cím:"
|
||||
STR_CHECKING_WIFI: "Wi-Fi ellenőrzése..."
|
||||
STR_ENTER_WIFI_PASSWORD: "Add meg a Wi-Fi jelszót"
|
||||
STR_ADD_HIDDEN_NETWORK: "Rejtett hálózat hozzáadása..."
|
||||
STR_ENTER_WIFI_SSID: "Add meg a hálózat nevét (SSID)"
|
||||
STR_TO_PREFIX: "- "
|
||||
STR_CALIBRE_RECEIVING: "Fogadás: "
|
||||
STR_CALIBRE_RECEIVED: "Fogadva: "
|
||||
@@ -301,3 +303,93 @@ STR_SCREENSHOT_BUTTON: "Képernyőkép készítése"
|
||||
STR_AUTO_TURN_ENABLED: "Automatikus lapozás bekapcsolva: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Automatikus lapozás (oldal/perc)"
|
||||
STR_TILT_PAGE_TURN: "Döntéses lapozás"
|
||||
STR_ADD_SERVER: "Szerver hozzáadása"
|
||||
STR_BOOKMARKS: "Könyvjelzők"
|
||||
STR_BOOKMARK_ADDED: "Könyvjelző hozzáadva."
|
||||
STR_BOOKMARK_OPTION: "Könyvjelző"
|
||||
STR_BOTTOM: "Alul"
|
||||
STR_CLOCK: "Óra"
|
||||
STR_CLOCK_FORMAT: "Óraformátum"
|
||||
STR_CLOCK_FORMAT_12H: "12 órás"
|
||||
STR_CLOCK_FORMAT_24H: "24 órás"
|
||||
STR_CLOCK_SYNC: "Óra szinkronizálása"
|
||||
STR_CLOCK_SYNCED: "Óra szinkronizálva"
|
||||
STR_CLOCK_SYNCING: "Szinkronizálás NTP-ről..."
|
||||
STR_CLOCK_SYNC_FAIL: "Szinkronizálás sikertelen"
|
||||
STR_CLOCK_SYNC_NOW: "Óra szinkronizálása most"
|
||||
STR_CLOCK_SYNC_NO_WIFI: "Wi-Fi nincs csatlakoztatva"
|
||||
STR_CLOCK_SYNC_NO_WIFI_HINT: "Először csatlakozz Wi-Fi-hez, majd próbáld újra."
|
||||
STR_CLOCK_SYNC_OK: "Óra szinkronizálva"
|
||||
STR_CLOCK_UTC_OFFSET: "Óra UTC eltolás"
|
||||
STR_CONFIRM_DELETE_BOOKMARK: "Törlöd ezt a könyvjelzőt?"
|
||||
STR_CONNECTING_SAVED_WIFI: "Csatlakozás mentett Wi-Fi-hez..."
|
||||
STR_CRASH_DESCRIPTION: "A részletes jelentés a crash_report.txt fájlba lett mentve. Kérjük, csatold ezt a fájlt a hibajelentéshez."
|
||||
STR_CRASH_NO_REASON: "(Nem került rögzítésre ok)"
|
||||
STR_CRASH_REASON: "Összeomlás oka:"
|
||||
STR_CRASH_TITLE: "Rendszerösszeomlás"
|
||||
STR_CURRENT_TIME: "Aktuális idő:"
|
||||
STR_DELETE_SERVER: "Szerver törlése"
|
||||
STR_DISABLED: "Letiltva"
|
||||
STR_DOWNLOAD_ALL: "Összes letöltése"
|
||||
STR_EOB_CONTINUE_WITH: "Folytatás ezzel"
|
||||
STR_EOB_HOME: "Kezdőképernyő"
|
||||
STR_FINDING_SAVED_WIFI: "Mentett Wi-Fi keresése..."
|
||||
STR_FIRMWARE_FILE_OPEN_FAILED: "A fájl nem nyitható meg"
|
||||
STR_FIRMWARE_TOO_LARGE: "A firmware túl nagy a partícióhoz"
|
||||
STR_FIRMWARE_TOO_SMALL: "A firmware fájl túl kicsi"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Ne kapcsold ki!"
|
||||
STR_FIRMWARE_UPDATE_PROMPT: "Frissíted a firmware-t?"
|
||||
STR_FIRMWARE_WRITE_FAILED: "A firmware írása sikertelen"
|
||||
STR_FONT_BROWSER: "Betűtípus-böngésző"
|
||||
STR_FONT_INSTALLED: "Betűtípus telepítve!"
|
||||
STR_FONT_INSTALL_FAILED: "A betűtípus telepítése sikertelen"
|
||||
STR_FORCE_REFRESH: "Képernyő frissítése"
|
||||
STR_INDEX_FAILED: "Indexelés sikertelen – érvénytelen könyv"
|
||||
STR_INSTALLED: "Telepítve"
|
||||
STR_INVALID_FIRMWARE: "Érvénytelen firmware fájl"
|
||||
STR_KB_HINT_CLEAR_TEXT: "Tartsd nyomva a DEL-t az összes szöveg törléséhez"
|
||||
STR_KB_HINT_EDIT_ENTRY: "Tartsd nyomva a FEL-t a bejegyzés szerkesztéséhez"
|
||||
STR_KB_HINT_EXIT_URL_MODE: "Nyomd meg az ABC-t az URL mód elhagyásához"
|
||||
STR_KB_HINT_HIDE_PASSWORD: "Tartsd nyomva a JOBBRA-t, majd nyomd meg a [***]-ot a jelszó elrejtéséhez"
|
||||
STR_KB_HINT_LOWER_SECONDARY: "Tartsd nyomva a SELECT-et kisbetűért vagy másodlagos karakterért"
|
||||
STR_KB_HINT_MOVE_CURSOR: "Nyomd meg a BALRA vagy JOBBRA gombot a kurzor mozgatásához"
|
||||
STR_KB_HINT_RETURN_CURSOR: "Nyomd meg a BALRA-t a kurzorpozícióhoz való visszatéréshez"
|
||||
STR_KB_HINT_RETURN_KEYBOARD: "Nyomd meg a LE-t a billentyűzethez való visszatéréshez"
|
||||
STR_KB_HINT_SECONDARY_CHAR: "Tartsd nyomva a SELECT-et másodlagos karakterért"
|
||||
STR_KB_HINT_SHOW_PASSWORD: "Tartsd nyomva a JOBBRA-t, majd nyomd meg az [abc]-t a jelszó megjelenítéséhez"
|
||||
STR_KB_HINT_TOGGLE_HIDE_PASSWORD: "Nyomd meg a [***]-ot a jelszó elrejtéséhez"
|
||||
STR_KB_HINT_TOGGLE_SHOW_PASSWORD: "Nyomd meg az [abc]-t a jelszó megjelenítéséhez"
|
||||
STR_KB_HINT_UPPER_SECONDARY: "Tartsd nyomva a SELECT-et NAGYBETŰÉRT vagy másodlagos karakterért"
|
||||
STR_KB_HINT_URL_SNIPPETS: "Nyomd meg az URL-t az URL-részletekért"
|
||||
STR_KB_TIPS: "Tippek:"
|
||||
STR_KOSYNC: "KOSync"
|
||||
STR_LOADING_FONT_LIST: "Betűtípuslista betöltése..."
|
||||
STR_LONG_PRESS_BEHAVIOR: "Hosszú gombnyomás viselkedése"
|
||||
STR_LONG_PRESS_BEHAVIOR_OFF: "KI"
|
||||
STR_LONG_PRESS_BEHAVIOR_ORIENTATION: "Tájolásváltás"
|
||||
STR_LONG_PRESS_BEHAVIOR_SKIP: "Fejezetugrás"
|
||||
STR_LONG_PRESS_MENU: "Hosszú nyomás – Menü"
|
||||
STR_MANAGE_FONTS: "Betűtípusok kezelése"
|
||||
STR_NEXT_FIELD: "Következő"
|
||||
STR_NEXT_PAGE: "Következő oldal »"
|
||||
STR_NO_BIN_FILES: "Nincs .bin fájl"
|
||||
STR_NO_FONTS_AVAILABLE: "Nincs elérhető betűtípus"
|
||||
STR_NO_SERVERS: "Nincs beállított OPDS szerver"
|
||||
STR_OPDS_SERVERS: "OPDS szerverek"
|
||||
STR_PREV_PAGE: "« Előző oldal"
|
||||
STR_PWR_BTN_FOOTNOTE_BACK: "Gyors visszatérés lábjegyzetből"
|
||||
STR_RECOVERY_MODE: "Helyreállítási mód"
|
||||
STR_RECOVERY_MODE_HINT: "Helyezd a firmware.bin fájlt az SD-kártya gyökerébe, majd válaszd ki"
|
||||
STR_RESTARTING_HINT: "Újraindítás... Ha az eszköz nem indul újra, tartsd nyomva a bekapcsológombot néhány másodpercig."
|
||||
STR_SD_FIRMWARE_UPDATE: "Firmware frissítés SD-kártyáról"
|
||||
STR_SEARCH: "Keresés"
|
||||
STR_SELECT_FIRMWARE_FILE: "Válassz firmware fájlt (.bin)"
|
||||
STR_SERVER_NAME: "Szerver neve"
|
||||
STR_SET_SLEEP_COVER: "Borító beállítása"
|
||||
STR_SHOW_NETWORKS: "Megjelenítés"
|
||||
STR_THEME_ROUNDEDRAFF: "RoundedRaff"
|
||||
STR_TOP: "Felül"
|
||||
STR_UPDATE_ALL: "Összes frissítése"
|
||||
STR_UPDATE_AVAILABLE: "Frissítés"
|
||||
STR_VALIDATING_FIRMWARE: "Firmware ellenőrzése..."
|
||||
STR_XTC_STATUS_BAR: "XTC állapotsáv"
|
||||
|
||||
@@ -387,3 +387,5 @@ STR_PWR_BTN_FOOTNOTE_BACK: "Rientro rapido dalle note"
|
||||
STR_EOB_CONTINUE_WITH: "Continua con"
|
||||
STR_EOB_HOME: "Home"
|
||||
STR_INDEX_FAILED: "Indicizzazione fallita - libro non valido"
|
||||
STR_ADD_HIDDEN_NETWORK: "Aggiungi rete nascosta..."
|
||||
STR_ENTER_WIFI_SSID: "Inserisci il nome della rete (SSID)"
|
||||
|
||||
@@ -300,3 +300,5 @@ STR_SCREENSHOT_BUTTON: "Скриншот түсіру"
|
||||
STR_AUTO_TURN_ENABLED: "Автоматты бет аудару қосулы: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Автоматты бет аудару (минутына бет саны)"
|
||||
STR_TILT_PAGE_TURN: "Еңкейту арқылы бет аудару"
|
||||
STR_ADD_HIDDEN_NETWORK: "Жасырын желіні қосу..."
|
||||
STR_ENTER_WIFI_SSID: "Желі атауын енгізіңіз (SSID)"
|
||||
|
||||
@@ -301,3 +301,5 @@ STR_SCREENSHOT_BUTTON: "Ekrano nuotrauka"
|
||||
STR_AUTO_TURN_ENABLED: "Auto-vertimas: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Auto-vertimas (psl/min)"
|
||||
STR_TILT_PAGE_TURN: "Puslapio vertimas pakreipiant"
|
||||
STR_ADD_HIDDEN_NETWORK: "Pridėti paslėptą tinklą..."
|
||||
STR_ENTER_WIFI_SSID: "Įveskite tinklo pavadinimą (SSID)"
|
||||
|
||||
@@ -0,0 +1,385 @@
|
||||
_language_name: "Norsk bokmål"
|
||||
_language_code: "NB"
|
||||
_order: "26"
|
||||
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "STARTER"
|
||||
STR_SLEEPING: "HVILER"
|
||||
STR_ENTERING_SLEEP: "Går i hvilemodus"
|
||||
STR_BROWSE_FILES: "Bla i filer"
|
||||
STR_FILE_TRANSFER: "Filoverføring"
|
||||
STR_SETTINGS_TITLE: "Innstillinger"
|
||||
STR_CONTINUE_READING: "Fortsett å lese"
|
||||
STR_NO_OPEN_BOOK: "Ingen åpen bok"
|
||||
STR_START_READING: "Start å lese nedenfor"
|
||||
STR_NO_FILES_FOUND: "Ingen filer funnet"
|
||||
STR_SELECT_CHAPTER: "Velg kapittel"
|
||||
STR_NO_CHAPTERS: "Ingen kapitler"
|
||||
STR_END_OF_BOOK: "Slutten av boken"
|
||||
STR_EMPTY_CHAPTER: "Tomt kapittel"
|
||||
STR_INDEXING: "Indekserer"
|
||||
STR_MEMORY_ERROR: "Minnefeil"
|
||||
STR_PAGE_LOAD_ERROR: "Feil ved sidelasting"
|
||||
STR_EMPTY_FILE: "Tom fil"
|
||||
STR_OUT_OF_BOUNDS: "Utenfor område"
|
||||
STR_LOADING: "Laster..."
|
||||
STR_LOADING_POPUP: "Laster"
|
||||
STR_WIFI_NETWORKS: "WiFi-nettverk"
|
||||
STR_NO_NETWORKS: "Ingen nettverk funnet"
|
||||
STR_NETWORKS_FOUND: "%zu nettverk funnet"
|
||||
STR_SCANNING: "Skanner..."
|
||||
STR_CONNECTING: "Kobler til..."
|
||||
STR_CONNECTED: "Tilkoblet!"
|
||||
STR_CONNECTION_FAILED: "Tilkobling mislyktes"
|
||||
STR_FORGET_NETWORK: "Glem nettverk?"
|
||||
STR_SAVE_PASSWORD: "Lagre passord til neste gang?"
|
||||
STR_PRESS_OK_SCAN: "Trykk OK for å skanne på nytt"
|
||||
STR_JOIN_NETWORK: "Koble til et nettverk"
|
||||
STR_CREATE_HOTSPOT: "Opprett hotspot"
|
||||
STR_JOIN_DESC: "Koble til et eksisterende WiFi-nettverk"
|
||||
STR_HOTSPOT_DESC: "Opprett et WiFi-nettverk andre kan koble seg til"
|
||||
STR_STARTING_HOTSPOT: "Starter hotspot..."
|
||||
STR_HOTSPOT_MODE: "Hotspot-modus"
|
||||
STR_CONNECT_WIFI_HINT: "Koble enheten din til dette WiFi-nettverket"
|
||||
STR_OPEN_URL_HINT: "Åpne denne URL-en i nettleseren din"
|
||||
STR_OR_HTTP_PREFIX: "eller http://"
|
||||
STR_SCAN_QR_HINT: "eller skann QR-kode med telefonen din:"
|
||||
STR_CALIBRE_WIRELESS: "Calibre Wireless"
|
||||
STR_NETWORK_LEGEND: "* = Kryptert | + = Lagret"
|
||||
STR_MAC_ADDRESS: "MAC-adresse:"
|
||||
STR_CHECKING_WIFI: "Sjekker WiFi..."
|
||||
STR_ENTER_WIFI_PASSWORD: "Skriv inn WiFi-passord"
|
||||
STR_TO_PREFIX: "til "
|
||||
STR_CALIBRE_RECEIVING: "Mottar: "
|
||||
STR_CALIBRE_RECEIVED: "Mottatt: "
|
||||
STR_CALIBRE_INSTRUCTION_1: "1) Installer CrossPoint Reader-plugin"
|
||||
STR_CALIBRE_INSTRUCTION_2: "2) Vær på samme WiFi-nettverk"
|
||||
STR_CALIBRE_INSTRUCTION_3: "3) I Calibre: \"Send til enhet\""
|
||||
STR_CALIBRE_INSTRUCTION_4: "\"Hold denne skjermen åpen mens du sender\""
|
||||
STR_CAT_DISPLAY: "Skjerm"
|
||||
STR_CAT_READER: "Leser"
|
||||
STR_CAT_CONTROLS: "Betjening"
|
||||
STR_CAT_SYSTEM: "System"
|
||||
STR_SLEEP_SCREEN: "Hvileskjerm"
|
||||
STR_QUICK_RESUME_TIMEOUT: "Hurtig gjenopptak ved tidsavbrudd"
|
||||
STR_SLEEP_COVER_MODE: "Omslagsmodus for hvileskjerm"
|
||||
STR_HIDE_BATTERY: "Skjul batteri %"
|
||||
STR_EXTRA_SPACING: "Ekstra avsnittsavstand"
|
||||
STR_TEXT_AA: "Tekstutjevning"
|
||||
STR_IMAGES: "Bilder"
|
||||
STR_IMAGES_DISPLAY: "Vis"
|
||||
STR_IMAGES_PLACEHOLDER: "Plassholder"
|
||||
STR_IMAGES_SUPPRESS: "Skjul"
|
||||
STR_SHORT_PWR_BTN: "Kort trykk på av/på-knapp"
|
||||
STR_ORIENTATION: "Leseretning"
|
||||
STR_SIDE_BTN_LAYOUT: "Sideknapp-oppsett (leser)"
|
||||
STR_FRONT_BTN_FOLLOW_ORIENTATION: "Orienter frontknapper"
|
||||
STR_LONG_PRESS_BEHAVIOR: "Atferd ved langt trykk"
|
||||
STR_LONG_PRESS_BEHAVIOR_OFF: "AV"
|
||||
STR_LONG_PRESS_BEHAVIOR_SKIP: "Kapittelhopp"
|
||||
STR_LONG_PRESS_BEHAVIOR_ORIENTATION: "Endre orientering"
|
||||
STR_LONG_PRESS_MENU: "Langt trykk på Meny"
|
||||
STR_FONT_PREVIEW_TEXT: "Høvdingens kjære squaw får litt pizza i Mexico by"
|
||||
STR_FONT_FAMILY: "Skrifttype i leser"
|
||||
STR_FONT_SIZE: "Skriftstørrelse i leser"
|
||||
STR_LINE_SPACING: "Linjeavstand i leser"
|
||||
STR_SCREEN_MARGIN: "Skjermmarg i leser"
|
||||
STR_PARA_ALIGNMENT: "Avsnittsjustering i leser"
|
||||
STR_HYPHENATION: "Orddeling"
|
||||
STR_TIME_TO_SLEEP: "Tid før hvile"
|
||||
STR_SHOW_HIDDEN_FILES: "Vis skjulte filer"
|
||||
STR_REMOVE_READ_FROM_RECENTS: "Fjern leste bøker fra Nylig-listen"
|
||||
STR_MOVE_FINISHED_TO_READ: "Flytt fullførte bøker til Read-mappen"
|
||||
STR_REFRESH_FREQ: "Oppdateringsfrekvens"
|
||||
STR_KOREADER_SYNC: "KOReader Sync"
|
||||
STR_CHECK_UPDATES: "Se etter oppdateringer"
|
||||
STR_LANGUAGE: "Språk"
|
||||
STR_CLEAR_READING_CACHE: "Tøm lesebuffer"
|
||||
STR_USERNAME: "Brukernavn"
|
||||
STR_PASSWORD: "Passord"
|
||||
STR_SYNC_SERVER_URL: "URL til synk-server"
|
||||
STR_DOCUMENT_MATCHING: "Dokumentgjenkjenning"
|
||||
STR_AUTHENTICATE: "Godkjenn"
|
||||
STR_KOREADER_USERNAME: "KOReader-brukernavn"
|
||||
STR_KOREADER_PASSWORD: "KOReader-passord"
|
||||
STR_FILENAME: "Filnavn"
|
||||
STR_BINARY: "Binær"
|
||||
STR_SET_CREDENTIALS_FIRST: "Angi påloggingsinfo først"
|
||||
STR_WIFI_CONN_FAILED: "WiFi-tilkobling mislyktes"
|
||||
STR_AUTHENTICATING: "Godkjenner..."
|
||||
STR_AUTH_SUCCESS: "Godkjenning vellykket!"
|
||||
STR_KOREADER_AUTH: "KOReader-godkjenning"
|
||||
STR_SYNC_READY: "KOReader-synk er klar til bruk"
|
||||
STR_AUTH_FAILED: "Godkjenning mislyktes"
|
||||
STR_DONE: "Ferdig"
|
||||
STR_CLEAR_CACHE_WARNING_1: "Dette tømmer alle bufrede bokdata."
|
||||
STR_CLEAR_CACHE_WARNING_2: "All lesefremdrift går tapt!"
|
||||
STR_CLEAR_CACHE_WARNING_3: "Bøker må indekseres på nytt"
|
||||
STR_CLEAR_CACHE_WARNING_4: "når de åpnes igjen."
|
||||
STR_CLEARING_CACHE: "Tømmer buffer..."
|
||||
STR_CACHE_CLEARED: "Buffer tømt"
|
||||
STR_ITEMS_REMOVED: "elementer fjernet"
|
||||
STR_FAILED_LOWER: "mislyktes"
|
||||
STR_CLEAR_CACHE_FAILED: "Kunne ikke tømme buffer"
|
||||
STR_CHECK_SERIAL_OUTPUT: "Sjekk seriell utdata for detaljer"
|
||||
STR_DARK: "Mørk"
|
||||
STR_LIGHT: "Lys"
|
||||
STR_CUSTOM: "Egendefinert"
|
||||
STR_COVER: "Omslag"
|
||||
STR_NONE_OPT: "Ingen"
|
||||
STR_FIT: "Tilpass"
|
||||
STR_CROP: "Beskjær"
|
||||
STR_NEVER: "Aldri"
|
||||
STR_IN_READER: "I leseren"
|
||||
STR_ALWAYS: "Alltid"
|
||||
STR_IGNORE: "Ignorer"
|
||||
STR_SLEEP: "Hvile"
|
||||
STR_PAGE_TURN: "Bla om"
|
||||
STR_FORCE_REFRESH: "Oppdater skjerm"
|
||||
STR_PORTRAIT: "Stående"
|
||||
STR_LANDSCAPE_CW: "Liggende med klokken"
|
||||
STR_INVERTED: "Opp ned"
|
||||
STR_ORIENTATION_INVERTED: "Portrett 180°"
|
||||
STR_LANDSCAPE_CCW: "Liggende mot klokken"
|
||||
STR_PREV_NEXT: "Forrige/Neste"
|
||||
STR_NEXT_PREV: "Neste/Forrige"
|
||||
STR_KOSYNC: "KOSync"
|
||||
STR_BOOKMARK_OPTION: "Bokmerke"
|
||||
STR_DISABLED: "Deaktivert"
|
||||
STR_NOTO_SERIF: "Noto Serif"
|
||||
STR_NOTO_SANS: "Noto Sans"
|
||||
STR_SMALL: "Liten"
|
||||
STR_MEDIUM: "Middels"
|
||||
STR_LARGE: "Stor"
|
||||
STR_X_LARGE: "Ekstra stor"
|
||||
STR_TIGHT: "Tett"
|
||||
STR_NORMAL: "Normal"
|
||||
STR_WIDE: "Bred"
|
||||
STR_JUSTIFY: "Blokkjustert"
|
||||
STR_ALIGN_LEFT: "Venstre"
|
||||
STR_CENTER: "Midtstilt"
|
||||
STR_ALIGN_RIGHT: "Høyre"
|
||||
STR_PAGES_1: "1 side"
|
||||
STR_PAGES_5: "5 sider"
|
||||
STR_PAGES_10: "10 sider"
|
||||
STR_PAGES_15: "15 sider"
|
||||
STR_PAGES_30: "30 sider"
|
||||
STR_UPDATE: "Oppdater"
|
||||
STR_CHECKING_UPDATE: "Ser etter oppdatering..."
|
||||
STR_NEW_UPDATE: "Ny oppdatering tilgjengelig!"
|
||||
STR_CURRENT_VERSION: "Nåværende versjon: "
|
||||
STR_NEW_VERSION: "Ny versjon: "
|
||||
STR_UPDATING: "Oppdaterer..."
|
||||
STR_NO_UPDATE: "Ingen oppdatering tilgjengelig"
|
||||
STR_UPDATE_FAILED: "Oppdatering mislyktes"
|
||||
STR_UPDATE_COMPLETE: "Oppdatering fullført"
|
||||
STR_POWER_ON_HINT: "Trykk og hold av/på-knappen for å slå på igjen"
|
||||
STR_RESTARTING_HINT: "Starter på nytt... Hvis enheten ikke starter, hold av/på-knappen i noen sekunder."
|
||||
STR_NO_ENTRIES: "Ingen oppføringer funnet"
|
||||
STR_DOWNLOADING: "Laster ned..."
|
||||
STR_DOWNLOAD_FAILED: "Nedlasting mislyktes"
|
||||
STR_ERROR_MSG: "Feil:"
|
||||
STR_UNNAMED: "Uten navn"
|
||||
STR_HOLD_OPEN_TO_DELETE: "Hold Åpne for å slette"
|
||||
STR_NO_SERVER_URL: "Ingen server-URL konfigurert"
|
||||
STR_FETCH_FEED_FAILED: "Kunne ikke hente feed"
|
||||
STR_PARSE_FEED_FAILED: "Kunne ikke tolke feed"
|
||||
STR_NEXT_PAGE: "Neste side »"
|
||||
STR_PREV_PAGE: "« Forrige side"
|
||||
STR_NETWORK_PREFIX: "Nettverk: "
|
||||
STR_IP_ADDRESS_PREFIX: "IP-adresse: "
|
||||
STR_ERROR_GENERAL_FAILURE: "Feil: Generell feil"
|
||||
STR_ERROR_NETWORK_NOT_FOUND: "Feil: Nettverk ikke funnet"
|
||||
STR_ERROR_CONNECTION_TIMEOUT: "Feil: Tidsavbrudd for tilkobling"
|
||||
STR_SD_CARD: "SD-kort"
|
||||
STR_BACK: "« Tilbake"
|
||||
STR_EXIT: "« Avslutt"
|
||||
STR_HOME: "« Hjem"
|
||||
STR_SELECT: "Velg"
|
||||
STR_SELECTED: "Valgt"
|
||||
STR_TOGGLE: "Veksle"
|
||||
STR_TOGGLE_BOOKMARK: "Veksle bokmerke"
|
||||
STR_CONFIRM: "Bekreft"
|
||||
STR_CANCEL: "Avbryt"
|
||||
STR_CONNECT: "Koble til"
|
||||
STR_OPEN: "Åpne"
|
||||
STR_DOWNLOAD: "Last ned"
|
||||
STR_RETRY: "Prøv igjen"
|
||||
STR_YES: "Ja"
|
||||
STR_NO: "Nei"
|
||||
STR_SHOW: "Vis"
|
||||
STR_HIDE: "Skjul"
|
||||
STR_STATE_ON: "PÅ"
|
||||
STR_STATE_OFF: "AV"
|
||||
STR_NOT_SET: "Ikke angitt"
|
||||
STR_DIR_LEFT: "Venstre"
|
||||
STR_DIR_RIGHT: "Høyre"
|
||||
STR_DIR_UP: "Opp"
|
||||
STR_DIR_DOWN: "Ned"
|
||||
STR_OK_BUTTON: "OK"
|
||||
STR_SLEEP_COVER_FILTER: "Omslagsfilter for hvileskjerm"
|
||||
STR_FILTER_CONTRAST: "Kontrast"
|
||||
STR_CUSTOMISE_STATUS_BAR: "Tilpass statuslinje"
|
||||
STR_CHAPTER_PAGE_COUNT: "Sideantall i kapittel"
|
||||
STR_BOOK_PROGRESS_PERCENTAGE: "Bokfremdrift i prosent"
|
||||
STR_PROGRESS_BAR: "Fremdriftslinje"
|
||||
STR_PROGRESS_BAR_THICKNESS: "Tykkelse på fremdriftslinje"
|
||||
STR_PROGRESS_BAR_THIN: "Tynn"
|
||||
STR_PROGRESS_BAR_MEDIUM: "Middels"
|
||||
STR_PROGRESS_BAR_THICK: "Tykk"
|
||||
STR_BOOK: "Bok"
|
||||
STR_CHAPTER: "Kapittel"
|
||||
STR_EXAMPLE_CHAPTER: "Kapittel 21"
|
||||
STR_EXAMPLE_BOOK: "Boktittel"
|
||||
STR_PREVIEW: "Forhåndsvisning"
|
||||
STR_TITLE: "Tittel"
|
||||
STR_BATTERY: "Batteri"
|
||||
STR_XTC_STATUS_BAR: "XTC-statuslinje"
|
||||
STR_BOTTOM: "Nederst"
|
||||
STR_TOP: "Øverst"
|
||||
STR_CLOCK: "Klokke"
|
||||
STR_CLOCK_UTC_OFFSET: "UTC-forskyvning for klokke"
|
||||
STR_CLOCK_FORMAT: "Klokkeformat"
|
||||
STR_CLOCK_FORMAT_24H: "24-timers"
|
||||
STR_CLOCK_FORMAT_12H: "12-timers"
|
||||
STR_CURRENT_TIME: "Nåværende tid:"
|
||||
STR_NEXT_FIELD: "Neste"
|
||||
STR_CLOCK_SYNC: "Synkroniser klokke"
|
||||
STR_CLOCK_SYNC_NOW: "Synkroniser klokke nå"
|
||||
STR_CLOCK_SYNCING: "Synkroniserer fra NTP..."
|
||||
STR_CLOCK_SYNC_OK: "Klokke synkronisert"
|
||||
STR_CLOCK_SYNC_FAIL: "Synkronisering mislyktes"
|
||||
STR_CLOCK_SYNC_NO_WIFI: "WiFi ikke tilkoblet"
|
||||
STR_CLOCK_SYNC_NO_WIFI_HINT: "Koble til WiFi først, og prøv igjen."
|
||||
STR_CLOCK_SYNCED: "Klokke synkronisert"
|
||||
STR_UI_THEME: "Grensesnittstema"
|
||||
STR_THEME_CLASSIC: "Klassisk"
|
||||
STR_THEME_LYRA: "Lyra"
|
||||
STR_THEME_ROUNDEDRAFF: "RoundedRaff"
|
||||
STR_THEME_LYRA_EXTENDED: "Lyra Extended"
|
||||
STR_SUNLIGHT_FADING_FIX: "Retting for soluttoning"
|
||||
STR_REMAP_FRONT_BUTTONS: "Tilordne frontknapper på nytt"
|
||||
STR_BOOKMARKS: "Bokmerker"
|
||||
STR_BOOKMARK_ADDED: "Bokmerke lagt til."
|
||||
STR_BOOKMARK_REMOVED: "Bokmerke fjernet."
|
||||
STR_OPDS_BROWSER: "OPDS-leser"
|
||||
STR_SEARCH: "Søk"
|
||||
STR_COVER_CUSTOM: "Omslag + Egendefinert"
|
||||
STR_QUICK_RESUME: "Hurtig gjenopptak"
|
||||
STR_MENU_RECENT_BOOKS: "Nylige bøker"
|
||||
STR_REMOVE_FROM_RECENTS: "Fjern fra Nylige bøker?"
|
||||
STR_NO_RECENT_BOOKS: "Ingen nylige bøker"
|
||||
STR_CALIBRE_DESC: "Bruk trådløs enhetsoverføring med Calibre"
|
||||
STR_FORGET_AND_REMOVE: "Glem nettverk og fjern lagret passord?"
|
||||
STR_FORGET_BUTTON: "Glem"
|
||||
STR_CALIBRE_STARTING: "Starter Calibre..."
|
||||
STR_CALIBRE_SETUP: "Oppsett"
|
||||
STR_CALIBRE_STATUS: "Status"
|
||||
STR_CLEAR_BUTTON: "Tøm"
|
||||
STR_DEFAULT_VALUE: "Standard"
|
||||
STR_REMAP_PROMPT: "Trykk en frontknapp for hver rolle"
|
||||
STR_UNASSIGNED: "Ikke tilordnet"
|
||||
STR_ALREADY_ASSIGNED: "Allerede tilordnet"
|
||||
STR_REMAP_RESET_HINT: "Sideknapp opp: Nullstill til standardoppsett"
|
||||
STR_REMAP_CANCEL_HINT: "Sideknapp ned: Avbryt omtilordning"
|
||||
STR_HW_BACK_LABEL: "Tilbake (1. knapp)"
|
||||
STR_HW_CONFIRM_LABEL: "Bekreft (2. knapp)"
|
||||
STR_HW_LEFT_LABEL: "Venstre (3. knapp)"
|
||||
STR_HW_RIGHT_LABEL: "Høyre (4. knapp)"
|
||||
STR_GO_TO_PERCENT: "Gå til %"
|
||||
STR_GO_HOME_BUTTON: "Hjem"
|
||||
STR_SYNC_PROGRESS: "Synkroniser fremdrift"
|
||||
STR_DELETE_CACHE: "Slett bokbuffer"
|
||||
STR_DELETE: "Slett"
|
||||
STR_CONFIRM_DELETE_BOOKMARK: "Slette dette bokmerket?"
|
||||
STR_DISPLAY_QR: "Vis side som QR"
|
||||
STR_CHAPTER_PREFIX: "Kapittel: "
|
||||
STR_PAGES_SEPARATOR: " sider | "
|
||||
STR_BOOK_PREFIX: "Bok: "
|
||||
STR_CALIBRE_URL_HINT: "For Calibre, legg til /opds i URL-en din"
|
||||
STR_PERCENT_STEP_HINT: "Venstre/Høyre: 1% Opp/Ned: 10%"
|
||||
STR_SYNCING_TIME: "Synkroniserer tid..."
|
||||
STR_CALC_HASH: "Beregner dokument-hash..."
|
||||
STR_HASH_FAILED: "Kunne ikke beregne dokument-hash"
|
||||
STR_FETCH_PROGRESS: "Henter ekstern fremdrift..."
|
||||
STR_UPLOAD_PROGRESS: "Laster opp fremdrift..."
|
||||
STR_NO_CREDENTIALS_MSG: "Ingen påloggingsinfo angitt"
|
||||
STR_KOREADER_SETUP_HINT: "Sett opp KOReader-konto i Innstillinger"
|
||||
STR_PROGRESS_FOUND: "Fremdrift funnet!"
|
||||
STR_REMOTE_LABEL: "Ekstern:"
|
||||
STR_LOCAL_LABEL: "Lokal:"
|
||||
STR_PAGE_OVERALL_FORMAT: "Side %d, %.2f%% totalt"
|
||||
STR_PAGE_TOTAL_OVERALL_FORMAT: "Side %d/%d, %.2f%% totalt"
|
||||
STR_DEVICE_FROM_FORMAT: " Fra: %s"
|
||||
STR_APPLY_REMOTE: "Bruk ekstern fremdrift"
|
||||
STR_UPLOAD_LOCAL: "Last opp lokal fremdrift"
|
||||
STR_NO_REMOTE_MSG: "Ingen ekstern fremdrift funnet"
|
||||
STR_UPLOAD_PROMPT: "Last opp nåværende posisjon?"
|
||||
STR_UPLOAD_SUCCESS: "Fremdrift lastet opp!"
|
||||
STR_SYNC_FAILED_MSG: "Synkronisering mislyktes"
|
||||
STR_SAVE_PROGRESS_FAILED: "Kunne ikke lagre fremdrift"
|
||||
STR_SECTION_PREFIX: "Del "
|
||||
STR_UPLOAD: "Last opp"
|
||||
STR_BOOK_S_STYLE: "Bokens stil"
|
||||
STR_EMBEDDED_STYLE: "Innebygd stil"
|
||||
STR_FOCUS_READING: "Fokuslesing"
|
||||
STR_OPDS_SERVER_URL: "OPDS-server-URL"
|
||||
STR_PWR_BTN_FOOTNOTE_BACK: "Hurtig retur fra fotnoter"
|
||||
STR_SET_SLEEP_COVER: "Velg omslag"
|
||||
STR_FOOTNOTES: "Fotnoter"
|
||||
STR_NO_FOOTNOTES: "Ingen fotnoter på denne siden"
|
||||
STR_LINK: "[lenke]"
|
||||
STR_SCREENSHOT_BUTTON: "Ta skjermbilde"
|
||||
STR_SLEEP_TIMER_VALUE_FORMAT: "%u min"
|
||||
STR_SLEEP_NEVER: "Aldri"
|
||||
STR_SLEEP_TIMER_STEP_HINT: "Venstre/Høyre: 1 min Opp/Ned: 5 min"
|
||||
STR_ADD_SERVER: "Legg til server"
|
||||
STR_SERVER_NAME: "Servernavn"
|
||||
STR_NO_SERVERS: "Ingen OPDS-servere konfigurert"
|
||||
STR_DELETE_SERVER: "Slett server"
|
||||
STR_OPDS_SERVERS: "OPDS-servere"
|
||||
STR_AUTO_TURN_ENABLED: "Automatisk bla aktivert: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Automatisk bla (sider per minutt)"
|
||||
STR_MANAGE_FONTS: "Administrer skrifttyper"
|
||||
STR_FONT_BROWSER: "Bla i skrifttyper"
|
||||
STR_LOADING_FONT_LIST: "Laster skrifttypeliste..."
|
||||
STR_NO_FONTS_AVAILABLE: "Ingen skrifttyper tilgjengelig"
|
||||
STR_FONT_INSTALLED: "Skrifttype installert!"
|
||||
STR_FONT_INSTALL_FAILED: "Installasjon av skrifttype mislyktes"
|
||||
STR_INSTALLED: "Installert"
|
||||
STR_DOWNLOAD_ALL: "Last ned alle"
|
||||
STR_UPDATE_ALL: "Oppdater alle"
|
||||
STR_UPDATE_AVAILABLE: "Oppdater"
|
||||
STR_CRASH_TITLE: "Systemkrasj"
|
||||
STR_CRASH_DESCRIPTION: "En detaljert rapport ble lagret i crash_report.txt. Legg ved denne filen i feilrapporten din."
|
||||
STR_CRASH_REASON: "Krasjårsak:"
|
||||
STR_CRASH_NO_REASON: "(Ingen årsak ble registrert)"
|
||||
STR_TILT_PAGE_TURN: "Vipp for å bla"
|
||||
STR_KB_HINT_MOVE_CURSOR: "Trykk VENSTRE eller HØYRE for å flytte markøren"
|
||||
STR_KB_HINT_RETURN_CURSOR: "Trykk VENSTRE for å gå tilbake til markørposisjonen"
|
||||
STR_KB_HINT_HIDE_PASSWORD: "Hold HØYRE og trykk [***] for å skjule passord"
|
||||
STR_KB_HINT_SHOW_PASSWORD: "Hold HØYRE og trykk [abc] for å vise passord"
|
||||
STR_KB_HINT_TOGGLE_HIDE_PASSWORD: "Trykk [***] for å skjule passord"
|
||||
STR_KB_HINT_TOGGLE_SHOW_PASSWORD: "Trykk [abc] for å vise passord"
|
||||
STR_KB_HINT_EDIT_ENTRY: "Hold OPP for å redigere oppføring"
|
||||
STR_KB_TIPS: "Tips:"
|
||||
STR_KB_HINT_RETURN_KEYBOARD: "Trykk NED for å gå tilbake til tastaturet"
|
||||
STR_KB_HINT_EXIT_URL_MODE: "Trykk ABC for å avslutte URL-modus"
|
||||
STR_KB_HINT_CLEAR_TEXT: "Hold DEL for å slette all tekst"
|
||||
STR_KB_HINT_SECONDARY_CHAR: "Hold VELG for sekundærtegn"
|
||||
STR_KB_HINT_UPPER_SECONDARY: "Hold VELG for STORE BOKSTAVER eller sekundærtegn"
|
||||
STR_KB_HINT_LOWER_SECONDARY: "Hold VELG for små bokstaver eller sekundærtegn"
|
||||
STR_KB_HINT_URL_SNIPPETS: "Trykk URL for tekstbiter"
|
||||
STR_SD_FIRMWARE_UPDATE: "Fastvareoppdatering fra SD-kort"
|
||||
STR_SELECT_FIRMWARE_FILE: "Velg fastvarefil (.bin)"
|
||||
STR_NO_BIN_FILES: "Ingen .bin-filer funnet"
|
||||
STR_VALIDATING_FIRMWARE: "Validerer fastvare..."
|
||||
STR_INVALID_FIRMWARE: "Ugyldig fastvarefil"
|
||||
STR_FIRMWARE_TOO_LARGE: "Fastvaren er for stor for partisjonen"
|
||||
STR_FIRMWARE_TOO_SMALL: "Fastvarefilen er for liten"
|
||||
STR_FIRMWARE_UPDATE_PROMPT: "Oppdatere fastvare?"
|
||||
STR_FIRMWARE_FILE_OPEN_FAILED: "Kan ikke åpne filen"
|
||||
STR_FIRMWARE_WRITE_FAILED: "Skriving av fastvare mislyktes"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Ikke slå av!"
|
||||
STR_RECOVERY_MODE: "Gjenopprettingsmodus"
|
||||
STR_RECOVERY_MODE_HINT: "Legg firmware.bin i roten av SD-kortet og velg den"
|
||||
@@ -361,3 +361,5 @@ STR_FIRMWARE_WRITE_FAILED: "Zapis oprogramowania nieudany"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Nie wyłączać!"
|
||||
STR_RECOVERY_MODE: "Tryb przywracania"
|
||||
STR_RECOVERY_MODE_HINT: "Umieść firmware.bin w głównym katalogu karty SD i wybierz go"
|
||||
STR_ADD_HIDDEN_NETWORK: "Dodaj ukrytą sieć..."
|
||||
STR_ENTER_WIFI_SSID: "Wprowadź nazwę sieci (SSID)"
|
||||
|
||||
@@ -384,3 +384,5 @@ STR_FIRMWARE_WRITE_FAILED: "Falha na gravação do firmware"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Não desligue o dispositivo!"
|
||||
STR_RECOVERY_MODE: "Modo de Recuperação"
|
||||
STR_RECOVERY_MODE_HINT: "Coloque o arquivo firmware.bin na raiz do cartão SD e selecione-o"
|
||||
STR_ADD_HIDDEN_NETWORK: "Adicionar rede oculta..."
|
||||
STR_ENTER_WIFI_SSID: "Insira o nome da rede (SSID)"
|
||||
@@ -0,0 +1,394 @@
|
||||
_language_name: "Português (Portugal)"
|
||||
_language_code: "P2"
|
||||
_order: "27"
|
||||
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "A INICIAR"
|
||||
STR_SLEEPING: "EM REPOUSO"
|
||||
STR_ENTERING_SLEEP: "A entrar em repouso"
|
||||
STR_BROWSE_FILES: "Explorar ficheiros"
|
||||
STR_FILE_TRANSFER: "Transferência de ficheiros"
|
||||
STR_SETTINGS_TITLE: "Definições"
|
||||
STR_CONTINUE_READING: "Continuar a ler"
|
||||
STR_NO_OPEN_BOOK: "Nenhum livro aberto"
|
||||
STR_START_READING: "Comece a ler abaixo"
|
||||
STR_NO_FILES_FOUND: "Nenhum ficheiro encontrado"
|
||||
STR_SELECT_CHAPTER: "Selecionar capítulo"
|
||||
STR_NO_CHAPTERS: "Sem capítulos"
|
||||
STR_END_OF_BOOK: "Fim do livro"
|
||||
STR_EMPTY_CHAPTER: "Capítulo vazio"
|
||||
STR_INDEXING: "A indexar"
|
||||
STR_INDEX_FAILED: "Falha ao indexar - livro inválido"
|
||||
STR_MEMORY_ERROR: "Erro de memória"
|
||||
STR_PAGE_LOAD_ERROR: "Erro ao carregar a página"
|
||||
STR_EMPTY_FILE: "Ficheiro vazio"
|
||||
STR_OUT_OF_BOUNDS: "Fora dos limites"
|
||||
STR_LOADING: "A carregar..."
|
||||
STR_LOADING_POPUP: "A carregar"
|
||||
STR_WIFI_NETWORKS: "Redes Wi-Fi"
|
||||
STR_NO_NETWORKS: "Nenhuma rede encontrada"
|
||||
STR_NETWORKS_FOUND: "%zu redes encontradas"
|
||||
STR_SCANNING: "A procurar..."
|
||||
STR_FINDING_SAVED_WIFI: "A procurar Wi-Fi guardado..."
|
||||
STR_CONNECTING: "A ligar..."
|
||||
STR_CONNECTING_SAVED_WIFI: "A ligar ao Wi-Fi guardado..."
|
||||
STR_SHOW_NETWORKS: "Mostrar"
|
||||
STR_CONNECTED: "Ligado!"
|
||||
STR_CONNECTION_FAILED: "Falha na ligação"
|
||||
STR_FORGET_NETWORK: "Esquecer rede?"
|
||||
STR_SAVE_PASSWORD: "Guardar palavra-passe para a próxima vez?"
|
||||
STR_PRESS_OK_SCAN: "Prima OK para procurar novamente"
|
||||
STR_JOIN_NETWORK: "Aderir a uma rede"
|
||||
STR_CREATE_HOTSPOT: "Criar ponto de acesso"
|
||||
STR_JOIN_DESC: "Ligue-se a uma rede Wi-Fi existente"
|
||||
STR_HOTSPOT_DESC: "Crie uma rede Wi-Fi para outras pessoas se ligarem"
|
||||
STR_STARTING_HOTSPOT: "A iniciar ponto de acesso..."
|
||||
STR_HOTSPOT_MODE: "Modo de ponto de acesso"
|
||||
STR_CONNECT_WIFI_HINT: "Ligue o seu dispositivo a esta rede Wi-Fi"
|
||||
STR_OPEN_URL_HINT: "Abra este URL no seu navegador"
|
||||
STR_OR_HTTP_PREFIX: "ou http://"
|
||||
STR_SCAN_QR_HINT: "ou leia o código QR com o seu telemóvel:"
|
||||
STR_CALIBRE_WIRELESS: "Calibre sem fios"
|
||||
STR_NETWORK_LEGEND: "* = Encriptada | + = Guardada"
|
||||
STR_MAC_ADDRESS: "Endereço MAC:"
|
||||
STR_CHECKING_WIFI: "A verificar o Wi-Fi..."
|
||||
STR_ENTER_WIFI_PASSWORD: "Introduza a palavra-passe do Wi-Fi"
|
||||
STR_ADD_HIDDEN_NETWORK: "Adicionar rede oculta..."
|
||||
STR_ENTER_WIFI_SSID: "Introduza o nome da rede (SSID)"
|
||||
STR_TO_PREFIX: "para "
|
||||
STR_CALIBRE_RECEIVING: "A receber: "
|
||||
STR_CALIBRE_RECEIVED: "Recebido: "
|
||||
STR_CALIBRE_INSTRUCTION_1: "1) Instale o plugin CrossPoint Reader"
|
||||
STR_CALIBRE_INSTRUCTION_2: "2) Esteja na mesma rede Wi-Fi"
|
||||
STR_CALIBRE_INSTRUCTION_3: "3) No Calibre: \"Enviar para o dispositivo\""
|
||||
STR_CALIBRE_INSTRUCTION_4: "\"Mantenha este ecrã aberto durante o envio\""
|
||||
STR_CAT_DISPLAY: "Ecrã"
|
||||
STR_CAT_READER: "Leitor"
|
||||
STR_CAT_CONTROLS: "Controlos"
|
||||
STR_CAT_SYSTEM: "Sistema"
|
||||
STR_SLEEP_SCREEN: "Ecrã de repouso"
|
||||
STR_QUICK_RESUME_TIMEOUT: "Retoma rápida após tempo limite"
|
||||
STR_SLEEP_COVER_MODE: "Modo de capa no ecrã de repouso"
|
||||
STR_HIDE_BATTERY: "Ocultar % da bateria"
|
||||
STR_EXTRA_SPACING: "Espaçamento extra entre parágrafos"
|
||||
STR_TEXT_AA: "Suavização do texto"
|
||||
STR_IMAGES: "Imagens"
|
||||
STR_IMAGES_DISPLAY: "Exibição"
|
||||
STR_IMAGES_PLACEHOLDER: "Espaço reservado"
|
||||
STR_IMAGES_SUPPRESS: "Suprimir"
|
||||
STR_EOB_HOME: "Início"
|
||||
STR_EOB_CONTINUE_WITH: "Continuar com"
|
||||
STR_SHORT_PWR_BTN: "Clique curto no botão de energia"
|
||||
STR_ORIENTATION: "Orientação de leitura"
|
||||
STR_SIDE_BTN_LAYOUT: "Disposição dos botões laterais (leitor)"
|
||||
STR_FRONT_BTN_FOLLOW_ORIENTATION: "Orientar botões frontais"
|
||||
STR_LONG_PRESS_BEHAVIOR: "Comportamento de pressão longa"
|
||||
STR_LONG_PRESS_BEHAVIOR_OFF: "DESL."
|
||||
STR_LONG_PRESS_BEHAVIOR_SKIP: "Saltar capítulo"
|
||||
STR_LONG_PRESS_BEHAVIOR_ORIENTATION: "Alterar orientação"
|
||||
STR_LONG_PRESS_MENU: "Pressão longa no Menu"
|
||||
STR_FONT_PREVIEW_TEXT: "A rápida raposa castanha salta por cima do cão preguiçoso"
|
||||
STR_FONT_FAMILY: "Tipo de letra do leitor"
|
||||
STR_FONT_SIZE: "Tamanho do tipo de letra"
|
||||
STR_LINE_SPACING: "Espaçamento entre linhas"
|
||||
STR_SCREEN_MARGIN: "Margens do ecrã"
|
||||
STR_PARA_ALIGNMENT: "Alinhamento dos parágrafos"
|
||||
STR_HYPHENATION: "Hifenização"
|
||||
STR_TIME_TO_SLEEP: "Tempo até repousar"
|
||||
STR_SHOW_HIDDEN_FILES: "Mostrar ficheiros ocultos"
|
||||
STR_REMOVE_READ_FROM_RECENTS: "Limpar livros lidos da lista de recentes"
|
||||
STR_MOVE_FINISHED_TO_READ: "Mover livros concluídos para a pasta Read"
|
||||
STR_REFRESH_FREQ: "Frequência de atualização"
|
||||
STR_KOREADER_SYNC: "Sincronização KOReader"
|
||||
STR_CHECK_UPDATES: "Procurar atualizações"
|
||||
STR_LANGUAGE: "Idioma"
|
||||
STR_CLEAR_READING_CACHE: "Limpar cache de leitura"
|
||||
STR_USERNAME: "Nome de utilizador"
|
||||
STR_PASSWORD: "Palavra-passe"
|
||||
STR_SYNC_SERVER_URL: "URL do servidor de sincronização"
|
||||
STR_DOCUMENT_MATCHING: "Correspondência de documentos"
|
||||
STR_SEND_METADATA: "Enviar metadados do documento"
|
||||
STR_AUTHENTICATE: "Autenticar"
|
||||
STR_KOREADER_USERNAME: "Utilizador do KOReader"
|
||||
STR_KOREADER_PASSWORD: "Palavra-passe do KOReader"
|
||||
STR_FILENAME: "Nome do ficheiro"
|
||||
STR_BINARY: "Binário"
|
||||
STR_SET_CREDENTIALS_FIRST: "Defina as credenciais primeiro"
|
||||
STR_WIFI_CONN_FAILED: "Falha na ligação Wi-Fi"
|
||||
STR_AUTHENTICATING: "A autenticar..."
|
||||
STR_AUTH_SUCCESS: "Autenticado com sucesso!"
|
||||
STR_KOREADER_AUTH: "Autenticação KOReader"
|
||||
STR_SYNC_READY: "A sincronização KOReader está pronta a usar"
|
||||
STR_AUTH_FAILED: "Falha na autenticação"
|
||||
STR_DONE: "Concluído"
|
||||
STR_CLEAR_CACHE_WARNING_1: "Isto irá limpar todos os dados de livros em cache."
|
||||
STR_CLEAR_CACHE_WARNING_2: "Todo o progresso de leitura será perdido!"
|
||||
STR_CLEAR_CACHE_WARNING_3: "Os livros terão de ser reindexados"
|
||||
STR_CLEAR_CACHE_WARNING_4: "quando forem abertos novamente."
|
||||
STR_CLEARING_CACHE: "A limpar a cache..."
|
||||
STR_CACHE_CLEARED: "Cache limpa"
|
||||
STR_ITEMS_REMOVED: "itens removidos"
|
||||
STR_FAILED_LOWER: "falhou"
|
||||
STR_CLEAR_CACHE_FAILED: "Falha ao limpar a cache"
|
||||
STR_CHECK_SERIAL_OUTPUT: "Verifique a saída de série para obter detalhes"
|
||||
STR_DARK: "Escuro"
|
||||
STR_LIGHT: "Claro"
|
||||
STR_CUSTOM: "Personalizado"
|
||||
STR_COVER: "Capa"
|
||||
STR_NONE_OPT: "Nenhum"
|
||||
STR_FIT: "Ajustar"
|
||||
STR_CROP: "Recortar"
|
||||
STR_NEVER: "Nunca"
|
||||
STR_IN_READER: "No leitor"
|
||||
STR_ALWAYS: "Sempre"
|
||||
STR_IGNORE: "Ignorar"
|
||||
STR_SLEEP: "Repouso"
|
||||
STR_PAGE_TURN: "Virar página"
|
||||
STR_FORCE_REFRESH: "Atualizar ecrã"
|
||||
STR_PORTRAIT: "Retrato"
|
||||
STR_LANDSCAPE_CW: "Paisagem (Dir.)"
|
||||
STR_INVERTED: "Invertido"
|
||||
STR_ORIENTATION_INVERTED: "Retrato 180°"
|
||||
STR_LANDSCAPE_CCW: "Paisagem (Esq.)"
|
||||
STR_PREV_NEXT: "Ant/Seg"
|
||||
STR_NEXT_PREV: "Seg/Ant"
|
||||
STR_KOSYNC: "KOSync"
|
||||
STR_BOOKMARK_OPTION: "Marcador"
|
||||
STR_DISABLED: "Desativado"
|
||||
STR_NOTO_SERIF: "Noto Serif"
|
||||
STR_NOTO_SANS: "Noto Sans"
|
||||
STR_SMALL: "Pequeno"
|
||||
STR_MEDIUM: "Médio"
|
||||
STR_LARGE: "Grande"
|
||||
STR_X_LARGE: "Extra grande"
|
||||
STR_TIGHT: "Apertado"
|
||||
STR_NORMAL: "Normal"
|
||||
STR_WIDE: "Largo"
|
||||
STR_JUSTIFY: "Justificar"
|
||||
STR_ALIGN_LEFT: "Esquerda"
|
||||
STR_CENTER: "Centrar"
|
||||
STR_ALIGN_RIGHT: "Direita"
|
||||
STR_PAGES_1: "1 página"
|
||||
STR_PAGES_5: "5 páginas"
|
||||
STR_PAGES_10: "10 páginas"
|
||||
STR_PAGES_15: "15 páginas"
|
||||
STR_PAGES_30: "30 páginas"
|
||||
STR_UPDATE: "Atualizar"
|
||||
STR_CHECKING_UPDATE: "A procurar atualização..."
|
||||
STR_NEW_UPDATE: "Nova atualização disponível!"
|
||||
STR_CURRENT_VERSION: "Versão atual: "
|
||||
STR_NEW_VERSION: "Nova versão: "
|
||||
STR_UPDATING: "A atualizar..."
|
||||
STR_NO_UPDATE: "Nenhuma atualização disponível"
|
||||
STR_UPDATE_FAILED: "Falha na atualização"
|
||||
STR_UPDATE_COMPLETE: "Atualização concluída"
|
||||
STR_POWER_ON_HINT: "Prima sem soltar o botão de energia para voltar a ligar"
|
||||
STR_RESTARTING_HINT: "A reiniciar... Se o dispositivo não reiniciar, mantenha premido o botão de energia durante alguns segundos."
|
||||
STR_NO_ENTRIES: "Nenhum registo encontrado"
|
||||
STR_DOWNLOADING: "A transferir..."
|
||||
STR_DOWNLOAD_FAILED: "Falha na transferência"
|
||||
STR_ERROR_MSG: "Erro:"
|
||||
STR_UNNAMED: "Sem nome"
|
||||
STR_HOLD_OPEN_TO_DELETE: "Mantenha premido Abrir para eliminar"
|
||||
STR_NO_SERVER_URL: "Nenhum URL de servidor configurado"
|
||||
STR_FETCH_FEED_FAILED: "Falha ao obter o feed"
|
||||
STR_PARSE_FEED_FAILED: "Falha ao analisar o feed"
|
||||
STR_NEXT_PAGE: "Página seguinte »"
|
||||
STR_PREV_PAGE: "« Página anterior"
|
||||
STR_NETWORK_PREFIX: "Rede: "
|
||||
STR_IP_ADDRESS_PREFIX: "Endereço IP: "
|
||||
STR_ERROR_GENERAL_FAILURE: "Erro: falha geral"
|
||||
STR_ERROR_NETWORK_NOT_FOUND: "Erro: rede não encontrada"
|
||||
STR_ERROR_CONNECTION_TIMEOUT: "Erro: tempo limite de ligação esgotado"
|
||||
STR_SD_CARD: "Cartão SD"
|
||||
STR_BACK: "« Voltar"
|
||||
STR_EXIT: "« Sair"
|
||||
STR_HOME: "« Início"
|
||||
STR_SELECT: "Selecionar"
|
||||
STR_SELECTED: "Selecionado"
|
||||
STR_TOGGLE: "Alternar"
|
||||
STR_TOGGLE_BOOKMARK: "Alternar marcador"
|
||||
STR_CONFIRM: "Confirmar"
|
||||
STR_CANCEL: "Cancelar"
|
||||
STR_CONNECT: "Ligar"
|
||||
STR_OPEN: "Abrir"
|
||||
STR_DOWNLOAD: "Transferir"
|
||||
STR_RETRY: "Tentar novamente"
|
||||
STR_YES: "Sim"
|
||||
STR_NO: "Não"
|
||||
STR_SHOW: "Mostrar"
|
||||
STR_HIDE: "Ocultar"
|
||||
STR_STATE_ON: "LIG."
|
||||
STR_STATE_OFF: "DESL."
|
||||
STR_NOT_SET: "Não definido"
|
||||
STR_DIR_LEFT: "Esquerda"
|
||||
STR_DIR_RIGHT: "Direita"
|
||||
STR_DIR_UP: "Cima"
|
||||
STR_DIR_DOWN: "Baixo"
|
||||
STR_OK_BUTTON: "OK"
|
||||
STR_SLEEP_COVER_FILTER: "Filtro da capa de ecrã de repouso"
|
||||
STR_FILTER_CONTRAST: "Contraste"
|
||||
STR_CUSTOMISE_STATUS_BAR: "Personalizar barra de estado"
|
||||
STR_CHAPTER_PAGE_COUNT: "Contagem de páginas do capítulo"
|
||||
STR_BOOK_PROGRESS_PERCENTAGE: "Percentagem de progresso do livro"
|
||||
STR_PROGRESS_BAR: "Barra de progresso"
|
||||
STR_PROGRESS_BAR_THICKNESS: "Espessura da barra de progresso"
|
||||
STR_PROGRESS_BAR_THIN: "Fina"
|
||||
STR_PROGRESS_BAR_MEDIUM: "Média"
|
||||
STR_PROGRESS_BAR_THICK: "Grossa"
|
||||
STR_BOOK: "Livro"
|
||||
STR_CHAPTER: "Capítulo"
|
||||
STR_EXAMPLE_CHAPTER: "Capítulo 21"
|
||||
STR_EXAMPLE_BOOK: "Título do livro"
|
||||
STR_PREVIEW: "Pré-visualização"
|
||||
STR_TITLE: "Título"
|
||||
STR_BATTERY: "Bateria"
|
||||
STR_XTC_STATUS_BAR: "Barra de estado XTC"
|
||||
STR_BOTTOM: "Inferior"
|
||||
STR_TOP: "Superior"
|
||||
STR_CLOCK: "Relógio"
|
||||
STR_CLOCK_UTC_OFFSET: "Deslocamento UTC do relógio"
|
||||
STR_CLOCK_FORMAT: "Formato do relógio"
|
||||
STR_CLOCK_FORMAT_24H: "24 horas"
|
||||
STR_CLOCK_FORMAT_12H: "12 horas"
|
||||
STR_CURRENT_TIME: "Hora atual:"
|
||||
STR_NEXT_FIELD: "Seguinte"
|
||||
STR_CLOCK_SYNC: "Sincronizar relógio"
|
||||
STR_CLOCK_SYNC_NOW: "Sincronizar relógio agora"
|
||||
STR_CLOCK_SYNCING: "A sincronizar via NTP..."
|
||||
STR_CLOCK_SYNC_OK: "Relógio sincronizado"
|
||||
STR_CLOCK_SYNC_FAIL: "Falha na sincronização"
|
||||
STR_CLOCK_SYNC_NO_WIFI: "Wi-Fi não ligado"
|
||||
STR_CLOCK_SYNC_NO_WIFI_HINT: "Ligue-se primeiro ao Wi-Fi e, em seguida, tente novamente."
|
||||
STR_CLOCK_SYNCED: "Relógio sincronizado"
|
||||
STR_UI_THEME: "Tema da interface"
|
||||
STR_THEME_CLASSIC: "Clássico"
|
||||
STR_THEME_LYRA: "Lyra"
|
||||
STR_THEME_ROUNDEDRAFF: "RoundedRaff"
|
||||
STR_THEME_LYRA_EXTENDED: "Lyra Extended"
|
||||
STR_SUNLIGHT_FADING_FIX: "Ajuste de desbotamento ao sol"
|
||||
STR_REMAP_FRONT_BUTTONS: "Remapear botões frontais"
|
||||
STR_BOOKMARKS: "Marcadores"
|
||||
STR_BOOKMARK_ADDED: "Marcador adicionado."
|
||||
STR_BOOKMARK_REMOVED: "Marcador removido."
|
||||
STR_OPDS_BROWSER: "Navegador OPDS"
|
||||
STR_SEARCH: "Pesquisar"
|
||||
STR_COVER_CUSTOM: "Capa + Personalizado"
|
||||
STR_QUICK_RESUME: "Retoma rápida"
|
||||
STR_MENU_RECENT_BOOKS: "Livros recentes"
|
||||
STR_REMOVE_FROM_RECENTS: "Remover dos Livros recentes?"
|
||||
STR_NO_RECENT_BOOKS: "Nenhum livro recente"
|
||||
STR_CALIBRE_DESC: "Usar transferências sem fios de dispositivos do Calibre"
|
||||
STR_FORGET_AND_REMOVE: "Esquecer rede e remover palavra-passe guardada?"
|
||||
STR_FORGET_BUTTON: "Esquecer"
|
||||
STR_CALIBRE_STARTING: "A iniciar o Calibre..."
|
||||
STR_CALIBRE_SETUP: "Configuração"
|
||||
STR_CALIBRE_STATUS: "Estado"
|
||||
STR_CLEAR_BUTTON: "Limpar"
|
||||
STR_DEFAULT_VALUE: "Predefinição"
|
||||
STR_REMAP_PROMPT: "Prima um botão frontal para cada função"
|
||||
STR_UNASSIGNED: "Não atribuído"
|
||||
STR_ALREADY_ASSIGNED: "Já atribuído"
|
||||
STR_REMAP_RESET_HINT: "Botão lateral Cima: Repor disposição predefinida"
|
||||
STR_REMAP_CANCEL_HINT: "Botão lateral Baixo: Cancelar remapeamento"
|
||||
STR_HW_BACK_LABEL: "Voltar (1º botão)"
|
||||
STR_HW_CONFIRM_LABEL: "Confirmar (2º botão)"
|
||||
STR_HW_LEFT_LABEL: "Esquerda (3º botão)"
|
||||
STR_HW_RIGHT_LABEL: "Direita (4º botão)"
|
||||
STR_GO_TO_PERCENT: "Ir para %"
|
||||
STR_GO_HOME_BUTTON: "Ir para o Início"
|
||||
STR_SYNC_PROGRESS: "Sincronizar progresso"
|
||||
STR_DELETE_CACHE: "Eliminar cache do livro"
|
||||
STR_DELETE: "Eliminar"
|
||||
STR_CONFIRM_DELETE_BOOKMARK: "Eliminar este marcador?"
|
||||
STR_DISPLAY_QR: "Mostrar página como QR"
|
||||
STR_CHAPTER_PREFIX: "Capítulo: "
|
||||
STR_PAGES_SEPARATOR: " páginas | "
|
||||
STR_BOOK_PREFIX: "Livro: "
|
||||
STR_CALIBRE_URL_HINT: "Para o Calibre, adicione /opds ao seu URL"
|
||||
STR_SYNCING_TIME: "A sincronizar a hora..."
|
||||
STR_CALC_HASH: "A calcular o hash do documento..."
|
||||
STR_HASH_FAILED: "Falha ao calcular o hash do documento"
|
||||
STR_FETCH_PROGRESS: "A procurar progresso remoto..."
|
||||
STR_UPLOAD_PROGRESS: "A enviar progresso..."
|
||||
STR_NO_CREDENTIALS_MSG: "Nenhuma credencial configurada"
|
||||
STR_KOREADER_SETUP_HINT: "Configure a conta do KOReader nas Definições"
|
||||
STR_PROGRESS_FOUND: "Progresso encontrado!"
|
||||
STR_REMOTE_LABEL: "Remoto:"
|
||||
STR_LOCAL_LABEL: "Local:"
|
||||
STR_PAGE_OVERALL_FORMAT: "Página %d, %.2f%% total"
|
||||
STR_PAGE_TOTAL_OVERALL_FORMAT: "Página %d/%d, %.2f%% total"
|
||||
STR_DEVICE_FROM_FORMAT: " De: %s"
|
||||
STR_APPLY_REMOTE: "Aplicar progresso remoto"
|
||||
STR_UPLOAD_LOCAL: "Enviar progresso local"
|
||||
STR_NO_REMOTE_MSG: "Nenhum progresso remoto encontrado"
|
||||
STR_UPLOAD_PROMPT: "Enviar posição atual?"
|
||||
STR_UPLOAD_SUCCESS: "Progresso enviado!"
|
||||
STR_SYNC_FAILED_MSG: "Falha na sincronização"
|
||||
STR_SAVE_PROGRESS_FAILED: "Não foi possível guardar o progresso"
|
||||
STR_SECTION_PREFIX: "Secção "
|
||||
STR_UPLOAD: "Enviar"
|
||||
STR_BOOK_S_STYLE: "Estilo do livro"
|
||||
STR_EMBEDDED_STYLE: "Estilo embutido"
|
||||
STR_FOCUS_READING: "Leitura focada"
|
||||
STR_OPDS_SERVER_URL: "URL do servidor OPDS"
|
||||
STR_PWR_BTN_FOOTNOTE_BACK: "Retorno rápido das notas de rodapé"
|
||||
STR_SET_SLEEP_COVER: "Definir capa"
|
||||
STR_FOOTNOTES: "Notas de rodapé"
|
||||
STR_NO_FOOTNOTES: "Nenhuma nota de rodapé nesta página"
|
||||
STR_LINK: "[ligação]"
|
||||
STR_SCREENSHOT_BUTTON: "Captura de ecrã"
|
||||
STR_SLEEP_TIMER_VALUE_FORMAT: "%u min"
|
||||
STR_SLEEP_NEVER: "Nunca"
|
||||
STR_STEP_HINT_FRONT: "Botões frontais:"
|
||||
STR_STEP_HINT_SIDE: "Botões laterais:"
|
||||
STR_ADD_SERVER: "Adicionar servidor"
|
||||
STR_SERVER_NAME: "Nome do servidor"
|
||||
STR_NO_SERVERS: "Nenhum servidor OPDS configurado"
|
||||
STR_DELETE_SERVER: "Eliminar servidor"
|
||||
STR_OPDS_SERVERS: "Servidores OPDS"
|
||||
STR_AUTO_TURN_ENABLED: "Virar página automático ativado: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Virar página automático (Páginas por minuto)"
|
||||
STR_MANAGE_FONTS: "Gerir tipos de letra"
|
||||
STR_FONT_BROWSER: "Navegador de tipos de letra"
|
||||
STR_LOADING_FONT_LIST: "A carregar a lista de tipos de letra..."
|
||||
STR_NO_FONTS_AVAILABLE: "Nenhum tipo de letra disponível"
|
||||
STR_FONT_INSTALLED: "Tipo de letra instalado!"
|
||||
STR_FONT_INSTALL_FAILED: "Falha na instalação do tipo de letra"
|
||||
STR_INSTALLED: "Instalado"
|
||||
STR_DOWNLOAD_ALL: "Transferir tudo"
|
||||
STR_UPDATE_ALL: "Atualizar tudo"
|
||||
STR_UPDATE_AVAILABLE: "Atualizar"
|
||||
STR_CRASH_TITLE: "Falha do sistema"
|
||||
STR_CRASH_DESCRIPTION: "Um relatório detalhado foi guardado em crash_report.txt. Por favor, inclua este ficheiro no seu relatório de erro."
|
||||
STR_CRASH_REASON: "Motivo da falha:"
|
||||
STR_CRASH_NO_REASON: "(Nenhum motivo foi registado)"
|
||||
STR_TILT_PAGE_TURN: "Virar página por inclinação"
|
||||
STR_KB_HINT_MOVE_CURSOR: "Prima ESQUERDA ou DIREITA para mover o cursor"
|
||||
STR_KB_HINT_RETURN_CURSOR: "Prima ESQUERDA para regressar à posição do cursor"
|
||||
STR_KB_HINT_HIDE_PASSWORD: "Mantenha premido DIREITA e depois prima [***] para ocultar a palavra-passe"
|
||||
STR_KB_HINT_SHOW_PASSWORD: "Mantenha premido DIREITA e depois prima [abc] para mostrar a palavra-passe"
|
||||
STR_KB_HINT_TOGGLE_HIDE_PASSWORD: "Prima [***] para ocultar a palavra-passe"
|
||||
STR_KB_HINT_TOGGLE_SHOW_PASSWORD: "Prima [abc] para mostrar a palavra-passe"
|
||||
STR_KB_HINT_EDIT_ENTRY: "Mantenha premido CIMA para editar a entrada"
|
||||
STR_KB_TIPS: "Dicas:"
|
||||
STR_KB_HINT_RETURN_KEYBOARD: "Prima BAIXO para regressar ao teclado"
|
||||
STR_KB_HINT_EXIT_URL_MODE: "Prima ABC para sair do modo URL"
|
||||
STR_KB_HINT_CLEAR_TEXT: "Mantenha premido DEL para limpar todo o texto"
|
||||
STR_KB_HINT_SECONDARY_CHAR: "Mantenha premido SELECT para o carácter secundário"
|
||||
STR_KB_HINT_UPPER_SECONDARY: "Mantenha premido SELECT para MAIÚSCULAS ou carácter secundário"
|
||||
STR_KB_HINT_LOWER_SECONDARY: "Mantenha premido SELECT para minúsculas ou carácter secundário"
|
||||
STR_KB_HINT_URL_SNIPPETS: "Prima URL para atalhos"
|
||||
STR_SD_FIRMWARE_UPDATE: "Atualização de firmware via cartão SD"
|
||||
STR_SELECT_FIRMWARE_FILE: "Selecione o ficheiro de firmware (.bin)"
|
||||
STR_NO_BIN_FILES: "Nenhum ficheiro .bin encontrado"
|
||||
STR_VALIDATING_FIRMWARE: "A validar o firmware..."
|
||||
STR_INVALID_FIRMWARE: "Ficheiro de firmware inválido"
|
||||
STR_FIRMWARE_TOO_LARGE: "Firmware demasiado grande para a partição"
|
||||
STR_FIRMWARE_TOO_SMALL: "Ficheiro de firmware demasiado pequeno"
|
||||
STR_FIRMWARE_UPDATE_PROMPT: "Atualizar firmware?"
|
||||
STR_FIRMWARE_FILE_OPEN_FAILED: "Não foi possível abrir o ficheiro"
|
||||
STR_FIRMWARE_WRITE_FAILED: "Falha na gravação do firmware"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Não desligue o dispositivo!"
|
||||
STR_RECOVERY_MODE: "Modo de Recuperação"
|
||||
STR_RECOVERY_MODE_HINT: "Coloque o ficheiro firmware.bin na raiz do cartão SD e selecione-o"
|
||||
@@ -304,3 +304,5 @@ STR_SCREENSHOT_BUTTON: "Captură ecran"
|
||||
STR_AUTO_TURN_ENABLED: "Răsfoire automată: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Pagini pe minut"
|
||||
STR_TILT_PAGE_TURN: "Întoarcere pagină prin înclinare"
|
||||
STR_ADD_HIDDEN_NETWORK: "Adaugă rețea ascunsă..."
|
||||
STR_ENTER_WIFI_SSID: "Introduceți numele rețelei (SSID)"
|
||||
|
||||
@@ -384,3 +384,5 @@ STR_FIRMWARE_WRITE_FAILED: "Ошибка записи прошивки"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Не выключайте питание!"
|
||||
STR_RECOVERY_MODE: "Режим восстановления"
|
||||
STR_RECOVERY_MODE_HINT: "Поместите firmware.bin в корень SD-карты и выберите его"
|
||||
STR_ADD_HIDDEN_NETWORK: "Добавить скрытую сеть..."
|
||||
STR_ENTER_WIFI_SSID: "Введите имя сети (SSID)"
|
||||
|
||||
@@ -380,3 +380,5 @@ STR_FIRMWARE_WRITE_FAILED: "Zápis firmvéru zlyhal"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Nevypínajte zariadenie!"
|
||||
STR_RECOVERY_MODE: "Režim obnovenia"
|
||||
STR_RECOVERY_MODE_HINT: "Umiestnite firmware.bin do koreňového adresára SD karty a vyberte ho"
|
||||
STR_ADD_HIDDEN_NETWORK: "Pridať skrytú sieť..."
|
||||
STR_ENTER_WIFI_SSID: "Zadajte názov siete (SSID)"
|
||||
|
||||
@@ -301,3 +301,5 @@ STR_SCREENSHOT_BUTTON: "Naredi posnetek zaslona"
|
||||
STR_AUTO_TURN_ENABLED: "Samodejno obračanje: "
|
||||
STR_AUTO_TURN_PAGES_PER_MIN: "Samodejno obračanje (strani na minuto)"
|
||||
STR_TILT_PAGE_TURN: "Obračanje s priklonom"
|
||||
STR_ADD_HIDDEN_NETWORK: "Dodaj skrito omrežje..."
|
||||
STR_ENTER_WIFI_SSID: "Vnesite ime omrežja (SSID)"
|
||||
|
||||
@@ -390,3 +390,5 @@ STR_FIRMWARE_WRITE_FAILED: "Falló la escritura del firmware"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "¡No apague el dispositivo!"
|
||||
STR_RECOVERY_MODE: "Modo de recuperación"
|
||||
STR_RECOVERY_MODE_HINT: "Ponga firmware.bin en la raíz de la tarj. SD y selecciónelo"
|
||||
STR_ADD_HIDDEN_NETWORK: "Añadir red oculta..."
|
||||
STR_ENTER_WIFI_SSID: "Introduce el nombre de la red (SSID)"
|
||||
|
||||
@@ -387,3 +387,5 @@ STR_FIRMWARE_WRITE_FAILED: "Skrivning till firmware misslyckades"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Stäng inte av!"
|
||||
STR_RECOVERY_MODE: "Återställningsläge"
|
||||
STR_RECOVERY_MODE_HINT: "Placera firmware.bin i SD-kortroten och välj den"
|
||||
STR_ADD_HIDDEN_NETWORK: "Lägg till dolt nätverk..."
|
||||
STR_ENTER_WIFI_SSID: "Ange nätverksnamn (SSID)"
|
||||
|
||||
@@ -68,10 +68,10 @@ STR_SHORT_PWR_BTN: "Kısa Güç Tuşu Tıklaması"
|
||||
STR_ORIENTATION: "Okuma Yönü"
|
||||
STR_SIDE_BTN_LAYOUT: "Yan Tuş Dizilimi (okuyucu)"
|
||||
STR_FRONT_BTN_FOLLOW_ORIENTATION: "Ön düğmeleri yönlendir"
|
||||
STR_LONG_PRESS_BEHAVIOR: "Long-press button behavior"
|
||||
STR_LONG_PRESS_BEHAVIOR_OFF: "OFF"
|
||||
STR_LONG_PRESS_BEHAVIOR_SKIP: "Chapter skip"
|
||||
STR_LONG_PRESS_BEHAVIOR_ORIENTATION: "Orientation change"
|
||||
STR_LONG_PRESS_BEHAVIOR: "Uzun basma tuş davranışı"
|
||||
STR_LONG_PRESS_BEHAVIOR_OFF: "KAPALI"
|
||||
STR_LONG_PRESS_BEHAVIOR_SKIP: "Bölüm atlama"
|
||||
STR_LONG_PRESS_BEHAVIOR_ORIENTATION: "Yön değiştirme"
|
||||
STR_FONT_PREVIEW_TEXT: "Pijamalı hasta yağız şoföre çabucak güvendi"
|
||||
STR_FONT_FAMILY: "Okuyucu Yazı Tipi Ailesi"
|
||||
STR_FONT_SIZE: "Arayüz Yazı Boyutu"
|
||||
@@ -304,3 +304,91 @@ STR_SELECTED: "Seçili"
|
||||
STR_SHOW: "Göster"
|
||||
STR_TITLE: "Başlık"
|
||||
STR_TILT_PAGE_TURN: "Eğerek sayfa çevirme"
|
||||
STR_ADD_HIDDEN_NETWORK: "Gizli ağ ekle..."
|
||||
STR_ENTER_WIFI_SSID: "Ağ adını girin (SSID)"
|
||||
STR_ADD_SERVER: "Sunucu Ekle"
|
||||
STR_BOOKMARKS: "Yer İmleri"
|
||||
STR_BOOKMARK_ADDED: "Yer imi eklendi."
|
||||
STR_BOOKMARK_OPTION: "Yer İmi"
|
||||
STR_BOTTOM: "Alt"
|
||||
STR_CLOCK: "Saat"
|
||||
STR_CLOCK_FORMAT: "Saat Biçimi"
|
||||
STR_CLOCK_FORMAT_12H: "12 saat"
|
||||
STR_CLOCK_FORMAT_24H: "24 saat"
|
||||
STR_CLOCK_SYNC: "Saati Eşitle"
|
||||
STR_CLOCK_SYNCED: "Saat Eşitlendi"
|
||||
STR_CLOCK_SYNCING: "NTP'den eşitleniyor..."
|
||||
STR_CLOCK_SYNC_FAIL: "Eşitleme başarısız"
|
||||
STR_CLOCK_SYNC_NOW: "Saati şimdi eşitle"
|
||||
STR_CLOCK_SYNC_NO_WIFI: "Wi-Fi bağlı değil"
|
||||
STR_CLOCK_SYNC_NO_WIFI_HINT: "Önce Wi-Fi'ye bağlanın, sonra tekrar deneyin."
|
||||
STR_CLOCK_SYNC_OK: "Saat eşitlendi"
|
||||
STR_CLOCK_UTC_OFFSET: "Saat UTC Farkı"
|
||||
STR_CONFIRM_DELETE_BOOKMARK: "Bu yer imi silinsin mi?"
|
||||
STR_CONNECTING_SAVED_WIFI: "Kayıtlı Wi-Fi'ye bağlanılıyor..."
|
||||
STR_CRASH_DESCRIPTION: "Ayrıntılı rapor crash_report.txt dosyasına kaydedildi. Lütfen hata bildiriminize bu dosyayı ekleyin."
|
||||
STR_CRASH_NO_REASON: "(Neden kaydedilmedi)"
|
||||
STR_CRASH_REASON: "Çökme nedeni:"
|
||||
STR_CRASH_TITLE: "Sistem Çökmesi"
|
||||
STR_CURRENT_TIME: "Şu anki saat:"
|
||||
STR_DELETE_SERVER: "Sunucuyu Sil"
|
||||
STR_DISABLED: "Devre dışı"
|
||||
STR_DOWNLOAD_ALL: "Tümünü İndir"
|
||||
STR_EOB_CONTINUE_WITH: "Şununla devam et"
|
||||
STR_EOB_HOME: "Ana Ekran"
|
||||
STR_FINDING_SAVED_WIFI: "Kayıtlı Wi-Fi aranıyor..."
|
||||
STR_FIRMWARE_FILE_OPEN_FAILED: "Dosya açılamıyor"
|
||||
STR_FIRMWARE_TOO_LARGE: "Firmware, bölümlemeye sığmıyor"
|
||||
STR_FIRMWARE_TOO_SMALL: "Firmware dosyası çok küçük"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Cihazı kapatmayın!"
|
||||
STR_FIRMWARE_UPDATE_PROMPT: "Firmware güncellensin mi?"
|
||||
STR_FIRMWARE_WRITE_FAILED: "Firmware yazılamadı"
|
||||
STR_FONT_BROWSER: "Yazı Tipi Tarayıcısı"
|
||||
STR_FONT_INSTALLED: "Yazı tipi yüklendi!"
|
||||
STR_FONT_INSTALL_FAILED: "Yazı tipi yüklenemedi"
|
||||
STR_FORCE_REFRESH: "Ekranı Yenile"
|
||||
STR_INDEX_FAILED: "Endeksleme başarısız - geçersiz kitap"
|
||||
STR_INSTALLED: "Yüklü"
|
||||
STR_INVALID_FIRMWARE: "Geçersiz firmware dosyası"
|
||||
STR_KB_HINT_CLEAR_TEXT: "Tüm metni silmek için DEL tuşunu basılı tutun"
|
||||
STR_KB_HINT_EDIT_ENTRY: "Girdiyi düzenlemek için UP tuşunu basılı tutun"
|
||||
STR_KB_HINT_EXIT_URL_MODE: "URL modundan çıkmak için ABC'ye basın"
|
||||
STR_KB_HINT_HIDE_PASSWORD: "Şifreyi gizlemek için RIGHT'ı basılı tutup [***] tuşuna basın"
|
||||
STR_KB_HINT_LOWER_SECONDARY: "Küçük harf veya ikincil karakter için SELECT'i basılı tutun"
|
||||
STR_KB_HINT_MOVE_CURSOR: "İmleci taşımak için LEFT veya RIGHT'a basın"
|
||||
STR_KB_HINT_RETURN_CURSOR: "İmleç konumuna dönmek için LEFT'e basın"
|
||||
STR_KB_HINT_RETURN_KEYBOARD: "Klavyeye dönmek için DOWN'a basın"
|
||||
STR_KB_HINT_SECONDARY_CHAR: "İkincil karakter için SELECT'i basılı tutun"
|
||||
STR_KB_HINT_SHOW_PASSWORD: "Şifreyi göstermek için RIGHT'ı basılı tutup [abc] tuşuna basın"
|
||||
STR_KB_HINT_TOGGLE_HIDE_PASSWORD: "Şifreyi gizlemek için [***] tuşuna basın"
|
||||
STR_KB_HINT_TOGGLE_SHOW_PASSWORD: "Şifreyi göstermek için [abc] tuşuna basın"
|
||||
STR_KB_HINT_UPPER_SECONDARY: "BÜYÜK harf veya ikincil karakter için SELECT'i basılı tutun"
|
||||
STR_KB_HINT_URL_SNIPPETS: "Hazır kalıplar için URL'ye basın"
|
||||
STR_KB_TIPS: "İpuçları:"
|
||||
STR_KOSYNC: "KOSync"
|
||||
STR_LOADING_FONT_LIST: "Yazı tipi listesi yükleniyor..."
|
||||
STR_LONG_PRESS_MENU: "Uzun Basma Menüsü"
|
||||
STR_MANAGE_FONTS: "Yazı Tiplerini Yönet"
|
||||
STR_NEXT_FIELD: "Sonraki"
|
||||
STR_NEXT_PAGE: "Sonraki Sayfa »"
|
||||
STR_NO_BIN_FILES: ".bin dosyası bulunamadı"
|
||||
STR_NO_FONTS_AVAILABLE: "Kullanılabilir yazı tipi yok"
|
||||
STR_NO_SERVERS: "Yapılandırılmış OPDS sunucusu yok"
|
||||
STR_OPDS_SERVERS: "OPDS Sunucuları"
|
||||
STR_PREV_PAGE: "« Önceki Sayfa"
|
||||
STR_PWR_BTN_FOOTNOTE_BACK: "Dipnottan hızlı dönüş"
|
||||
STR_RECOVERY_MODE: "Kurtarma Modu"
|
||||
STR_RECOVERY_MODE_HINT: "firmware.bin dosyasını SD kartın köküne koyup seçin"
|
||||
STR_RESTARTING_HINT: "Yeniden başlatılıyor... Cihaz yeniden başlamazsa güç düğmesini birkaç saniye basılı tutun."
|
||||
STR_SD_FIRMWARE_UPDATE: "SD Karttan Firmware Güncelleme"
|
||||
STR_SEARCH: "Ara"
|
||||
STR_SELECT_FIRMWARE_FILE: "Firmware dosyası seçin (.bin)"
|
||||
STR_SERVER_NAME: "Sunucu Adı"
|
||||
STR_SET_SLEEP_COVER: "Kapak Ayarla"
|
||||
STR_SHOW_NETWORKS: "Göster"
|
||||
STR_THEME_ROUNDEDRAFF: "RoundedRaff"
|
||||
STR_TOP: "Üst"
|
||||
STR_UPDATE_ALL: "Tümünü Güncelle"
|
||||
STR_UPDATE_AVAILABLE: "Güncelle"
|
||||
STR_VALIDATING_FIRMWARE: "Firmware doğrulanıyor..."
|
||||
STR_XTC_STATUS_BAR: "XTC Durum Çubuğu"
|
||||
|
||||
@@ -381,3 +381,5 @@ STR_FIRMWARE_WRITE_FAILED: "Помилка запису прошивки"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Не вимикайте пристрій!"
|
||||
STR_RECOVERY_MODE: "Режим відновлення"
|
||||
STR_RECOVERY_MODE_HINT: "Помістіть firmware.bin у корінь SD-карти та виберіть його"
|
||||
STR_ADD_HIDDEN_NETWORK: "Додати приховану мережу..."
|
||||
STR_ENTER_WIFI_SSID: "Введіть назву мережі (SSID)"
|
||||
|
||||
@@ -390,3 +390,5 @@ STR_FIRMWARE_WRITE_FAILED: "Ha fallat l'escriptura del firmware"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "No apagues el dispositiu!"
|
||||
STR_RECOVERY_MODE: "Mode de recuperació"
|
||||
STR_RECOVERY_MODE_HINT: "Posa firmware.bin a l'arrel de la targeta SD i selecciona'l"
|
||||
STR_ADD_HIDDEN_NETWORK: "Afig una xarxa oculta..."
|
||||
STR_ENTER_WIFI_SSID: "Introduïx el nom de la xarxa (SSID)"
|
||||
|
||||
@@ -380,3 +380,5 @@ STR_FIRMWARE_WRITE_FAILED: "Ghi firmware thất bại"
|
||||
STR_FIRMWARE_UPDATE_DO_NOT_POWER_OFF: "Không được tắt nguồn!"
|
||||
STR_RECOVERY_MODE: "Chế độ phục hồi"
|
||||
STR_RECOVERY_MODE_HINT: "Đặt firmware.bin ở thư mục gốc thẻ SD rồi chọn"
|
||||
STR_ADD_HIDDEN_NETWORK: "Thêm mạng ẩn..."
|
||||
STR_ENTER_WIFI_SSID: "Nhập tên mạng (SSID)"
|
||||
|
||||
@@ -11,6 +11,13 @@ extern "C" {
|
||||
#include <Utf8.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <mutex>
|
||||
|
||||
// Guards the static bidi_char buffers in applyBidiVisual() and
|
||||
// computeVisualWordOrder(). The bidi+shaping pipeline is not reentrant;
|
||||
// this mutex serialises access so multi-core callers don't corrupt each
|
||||
// other's intermediate state.
|
||||
static std::mutex bidiMutex;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -68,11 +75,25 @@ int detectParagraphLevel(const char* utf8, const int fallbackLevel, const int ma
|
||||
return fallbackLevel & 1;
|
||||
}
|
||||
|
||||
bool isTransparentMark(const uint32_t cp) {
|
||||
// RTL-script combining marks: Hebrew niqqud/cantillation and Arabic
|
||||
// harakat/Quranic annotation. Transparent for Arabic joining (do_shape
|
||||
// skips them), zero-advance for measurement, and rendered as overlays on
|
||||
// the preceding base glyph when the active font carries their glyphs.
|
||||
// The cp >= 0x0591 guard keeps Latin combining marks (U+0300-U+036F, also
|
||||
// NSM) on their existing utf8IsCombiningMark() rendering path.
|
||||
return cp >= 0x0591 && bidi_class(cp) == NSM;
|
||||
}
|
||||
|
||||
bool applyBidiVisual(const char* utf8, std::string& out, int paragraphLevel) {
|
||||
if (!utf8 || !*utf8) return false;
|
||||
const std::lock_guard<std::mutex> lock(bidiMutex);
|
||||
|
||||
static bidi_char line[BIDI_MAX_LINE];
|
||||
static bidi_char shaped[BIDI_MAX_LINE];
|
||||
int count = 0;
|
||||
int lastBase = -1; // last non-formatter character (mintty's ibase)
|
||||
uint8_t pendingJoiners = 0; // ZWJ/ZWNJ seen since lastBase
|
||||
auto* p = reinterpret_cast<const unsigned char*>(utf8);
|
||||
while (*p) {
|
||||
if (count >= BIDI_MAX_LINE) {
|
||||
@@ -84,18 +105,66 @@ bool applyBidiVisual(const char* utf8, std::string& out, int paragraphLevel) {
|
||||
if (!cp || cp == REPLACEMENT_GLYPH) break;
|
||||
line[count].origwc = line[count].wc = cp;
|
||||
line[count].index = static_cast<uint16_t>(count);
|
||||
line[count].joiners = 0;
|
||||
|
||||
// Flag Arabic joining formatters mintty-style (termline.c): the ZWJ/ZWNJ
|
||||
// goes into the low nibble of the character it follows and the high
|
||||
// nibble of the character it precedes. Flags are assigned in logical
|
||||
// order here; do_shape() reads them after reordering.
|
||||
if (cp == 0x200C || cp == 0x200D) {
|
||||
const uint8_t joiner = (cp == 0x200D) ? ZWJ : ZWNJ;
|
||||
if (lastBase >= 0) line[lastBase].joiners |= joiner;
|
||||
pendingJoiners |= joiner;
|
||||
} else {
|
||||
line[count].joiners = pendingJoiners << 4;
|
||||
pendingJoiners = 0;
|
||||
lastBase = count;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
if (!count) return false;
|
||||
|
||||
const bool autodir = (paragraphLevel < 0);
|
||||
const int level = autodir ? 0 : (paragraphLevel & 1);
|
||||
|
||||
// Order matters (mintty does the same): do_bidi() first to obtain visual
|
||||
// order, then do_shape() — contextual forms are resolved from *visual*
|
||||
// adjacency, and shaping presentation forms must never be reordered.
|
||||
do_bidi(autodir, level, line, count);
|
||||
do_shape(line, shaped, count);
|
||||
|
||||
out.clear();
|
||||
out.reserve(std::strlen(utf8));
|
||||
// Lam-Alef collapse sentinel and zero-width joining formatters have done
|
||||
// their job during shaping and have no glyphs to render.
|
||||
const auto filtered = [](const uint32_t cp) { return cp == LIGATURE_PLACEHOLDER || cp == 0x200C || cp == 0x200D; };
|
||||
for (int i = 0; i < count; i++) {
|
||||
utf8AppendCodepoint(line[i].wc, out);
|
||||
const uint32_t cp = shaped[i].wc;
|
||||
if (filtered(cp)) continue;
|
||||
if (!isTransparentMark(cp)) {
|
||||
utf8AppendCodepoint(cp, out);
|
||||
continue;
|
||||
}
|
||||
// UAX#9 rule L3: reversing an RTL run leaves combining marks *before*
|
||||
// their base character. The renderer overlays a mark on the most
|
||||
// recently drawn glyph, so emit the base first, then its marks in
|
||||
// logical order. `index` is the original logical position: a base
|
||||
// following its marks with a *lower* index means the run was reversed.
|
||||
int j = i; // [i, j) = the run of marks (and filtered entries)
|
||||
while (j < count && (filtered(shaped[j].wc) || isTransparentMark(shaped[j].wc))) j++;
|
||||
if (j < count && shaped[j].index < shaped[i].index) {
|
||||
utf8AppendCodepoint(shaped[j].wc, out);
|
||||
for (int k = j - 1; k >= i; k--) {
|
||||
if (isTransparentMark(shaped[k].wc)) utf8AppendCodepoint(shaped[k].wc, out);
|
||||
}
|
||||
i = j; // base already emitted
|
||||
} else {
|
||||
// Unreversed (or trailing, base-less) marks already follow their base.
|
||||
for (int k = i; k < j; k++) {
|
||||
if (isTransparentMark(shaped[k].wc)) utf8AppendCodepoint(shaped[k].wc, out);
|
||||
}
|
||||
i = j - 1;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -105,6 +174,7 @@ bool computeVisualWordOrder(const std::vector<std::string>& words, bool paragrap
|
||||
visualOrder.clear();
|
||||
const size_t nWords = words.size();
|
||||
if (nWords <= 1 || nWords > BIDI_MAX_LINE) return false;
|
||||
const std::lock_guard<std::mutex> lock(bidiMutex);
|
||||
|
||||
static bidi_char line[BIDI_MAX_LINE];
|
||||
int count = 0;
|
||||
@@ -121,6 +191,7 @@ bool computeVisualWordOrder(const std::vector<std::string>& words, bool paragrap
|
||||
if (!cp || cp == REPLACEMENT_GLYPH) break;
|
||||
line[count].origwc = line[count].wc = cp;
|
||||
line[count].index = static_cast<uint16_t>(w);
|
||||
line[count].joiners = 0;
|
||||
count++;
|
||||
}
|
||||
|
||||
@@ -131,6 +202,7 @@ bool computeVisualWordOrder(const std::vector<std::string>& words, bool paragrap
|
||||
}
|
||||
line[count].origwc = line[count].wc = ' ';
|
||||
line[count].index = static_cast<uint16_t>(nWords);
|
||||
line[count].joiners = 0;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,14 @@ bool startsWithRtl(const char* utf8, int maxStrongChars = RTL_PARAGRAPH_PROBE_DE
|
||||
|
||||
int detectParagraphLevel(const char* utf8, int fallbackLevel = 0, int maxStrongChars = 64);
|
||||
|
||||
// True for RTL-script non-spacing marks (Hebrew niqqud/cantillation, Arabic
|
||||
// harakat and Quranic annotation): zero-width for measurement, transparent for
|
||||
// Arabic joining, and rendered as overlays on the preceding base glyph when
|
||||
// the active font carries their glyphs (SD fonts; built-in fonts don't).
|
||||
// Latin combining marks (U+0300-U+036F) intentionally return false — they are
|
||||
// handled by the utf8IsCombiningMark() rendering path.
|
||||
bool isTransparentMark(uint32_t cp);
|
||||
|
||||
// paragraphLevel: -1 = auto-detect, 0 = LTR, 1 = RTL
|
||||
bool applyBidiVisual(const char* utf8, std::string& out, int paragraphLevel = -1);
|
||||
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
/* bidiclasses.t — bidi class table for CrossPoint Hebrew/English epub.
|
||||
/* bidiclasses.t — bidi class table for CrossPoint RTL (Hebrew/Arabic) epub.
|
||||
*
|
||||
* Coverage rationale:
|
||||
* Hebrew + English is the primary target. However, CrossPoint renders
|
||||
* Latin and Cyrillic scripts for many other languages, so these MUST be
|
||||
* classified as L (not fall through to ON) to avoid regression when they
|
||||
* appear adjacent to Hebrew runs.
|
||||
* Hebrew and Arabic-script languages (Arabic, Farsi, Urdu, Sindhi, Pashto,
|
||||
* Kurdish) are the RTL targets. CrossPoint also renders Latin and Cyrillic
|
||||
* scripts for many other languages, so these MUST be classified as L (not
|
||||
* fall through to ON) to avoid regression when they appear adjacent to
|
||||
* RTL runs.
|
||||
*
|
||||
* Scripts NOT in this table fall through to ON — correct per UAX#9 for
|
||||
* scripts CrossPoint's fonts don't support (CJK, Arabic, Devanagari, etc.)
|
||||
* scripts CrossPoint's fonts don't support (CJK, Devanagari, etc.)
|
||||
* ON is the right class for "unknown" — it behaves neutrally.
|
||||
*
|
||||
* Arabic ranges are sourced from Unicode UCD extracted/DerivedBidiClass.txt
|
||||
* (values verified against Unicode 17.0.0).
|
||||
*
|
||||
* Entries sorted ascending by first (binary search requirement).
|
||||
*/
|
||||
|
||||
@@ -84,6 +88,36 @@
|
||||
{0x05D0, 0x05EA, R}, /* alef … tav */
|
||||
{0x05F0, 0x05F4, R}, /* alternative forms + geresh/gershayim */
|
||||
|
||||
/* ── Arabic / Perso-Arabic (DerivedBidiClass.txt) ───────────────────── */
|
||||
/* Letters are AL (Arabic Letter), harakat/marks are NSM, Arabic-Indic
|
||||
digits are AN, extended (Farsi/Urdu) digits are EN.
|
||||
0x0606-0x0607, 0x060E-0x060F, 0x06DE, 0x06E9 are ON — fall through. */
|
||||
{0x0600, 0x0605, AN}, /* Arabic number signs (Cf) */
|
||||
{0x0608, 0x0608, AL}, /* Arabic ray */
|
||||
{0x0609, 0x060A, ET}, /* per mille / per ten thousand */
|
||||
{0x060B, 0x060B, AL}, /* afghani sign */
|
||||
{0x060C, 0x060C, CS}, /* Arabic comma */
|
||||
{0x060D, 0x060D, AL}, /* Arabic date separator */
|
||||
{0x0610, 0x061A, NSM}, /* honorifics + small marks */
|
||||
{0x061B, 0x061F, AL}, /* semicolon, ALM, end-of-text, hamza mark, question mark */
|
||||
{0x0620, 0x064A, AL}, /* core Arabic letters + tatweel */
|
||||
{0x064B, 0x065F, NSM}, /* harakat (fathatan … wavy hamza below) */
|
||||
{0x0660, 0x0669, AN}, /* Arabic-Indic digits ٠-٩ */
|
||||
{0x066A, 0x066A, ET}, /* Arabic percent sign */
|
||||
{0x066B, 0x066C, AN}, /* decimal / thousands separators */
|
||||
{0x066D, 0x066F, AL}, /* five-pointed star, dotless beh/qaf */
|
||||
{0x0670, 0x0670, NSM}, /* superscript alef */
|
||||
{0x0671, 0x06D5, AL}, /* extended letters: Farsi, Urdu, Sindhi, Pashto, Kurdish */
|
||||
{0x06D6, 0x06DC, NSM}, /* Quranic annotation marks */
|
||||
{0x06DD, 0x06DD, AN}, /* end of ayah */
|
||||
{0x06DF, 0x06E4, NSM},
|
||||
{0x06E5, 0x06E6, AL}, /* small waw / small yeh */
|
||||
{0x06E7, 0x06E8, NSM},
|
||||
{0x06EA, 0x06ED, NSM},
|
||||
{0x06EE, 0x06EF, AL}, /* dal/reh with inverted V */
|
||||
{0x06F0, 0x06F9, EN}, /* extended Arabic-Indic digits ۰-۹ (Farsi/Urdu) — EN per UCD */
|
||||
{0x06FA, 0x06FF, AL},
|
||||
|
||||
/* ── Latin Extended Additional (L) ─────────────────────────────────── */
|
||||
/* Covers accented chars for Vietnamese, Welsh, Romanian, etc.
|
||||
Not currently rendered by CrossPoint fonts, but costs only 2 table rows. */
|
||||
@@ -110,6 +144,14 @@
|
||||
{0x2069, 0x2069, PDI},
|
||||
{0x206A, 0x206F, BN},
|
||||
|
||||
/* ── Arabic presentation forms (output of do_shape()) ───────────────── */
|
||||
/* Contextual/ligature forms emitted by the shaper must classify as AL so
|
||||
a reshaped line still resolves RTL. Ranges per DerivedBidiClass.txt;
|
||||
0xFBC3-0xFBD2 are ON — fall through. */
|
||||
{0xFB50, 0xFBC2, AL}, /* Presentation Forms-A: Perso-Arabic contextual forms */
|
||||
{0xFBD3, 0xFBFF, AL}, /* Presentation Forms-A: NG … Farsi Yeh forms */
|
||||
{0xFE70, 0xFE74, AL}, /* Presentation Forms-B: harakat isolated forms */
|
||||
{0xFE76, 0xFEFC, AL}, /* Presentation Forms-B: contextual forms + Lam-Alef ligatures */
|
||||
|
||||
/* ── Byte Order Mark ────────────────────────────────────────────────── */
|
||||
{0xFEFF, 0xFEFF, BN},
|
||||
|
||||
@@ -127,6 +127,345 @@ ucschar mirror(ucschar c) {
|
||||
return p ? p->to : c;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
* Arabic contextual shaping — do_shape()
|
||||
*
|
||||
* Ported from mintty src/minibidi.c (https://github.com/mintty/mintty),
|
||||
* original author Ahmad Khalifa (www.arabeyes.org), maintained by
|
||||
* Thomas Wolff. MIT licence.
|
||||
*
|
||||
* CrossPoint deviations from the upstream code, each marked inline:
|
||||
* 1. Joining-context lookups skip NSM marks (harakat). mintty stores
|
||||
* combining marks out-of-line in terminal cells, so they never appear
|
||||
* in its bidi_char array; in CrossPoint they are real array entries
|
||||
* and must be transparent for joining (Unicode joining type T).
|
||||
* 2. The Alef absorbed into a Lam-Alef ligature is overwritten with
|
||||
* LIGATURE_PLACEHOLDER instead of a space: a terminal must keep the
|
||||
* cell, a proportional-text renderer must drop the character.
|
||||
* 3. The STYPE/SISOLATED macros became functions backed by a second
|
||||
* lookup table covering Perso-Arabic letters outside mintty's native
|
||||
* U+0621–U+064A range (Farsi پ چ ژ گ, Urdu ٹ ڈ ڑ ں ہ ے, plus Sindhi/
|
||||
* Pashto/Kurdish letters). Joining types are sourced from Unicode
|
||||
* ArabicShaping.txt and presentation forms from UnicodeData.txt
|
||||
* (Arabic Presentation Forms-A), both Unicode 17.0.0. Letters with a
|
||||
* joining type but no presentation-form codepoints keep their base
|
||||
* codepoint (neighbours still shape correctly around them).
|
||||
* U+200C/U+200D also get their ArabicShaping.txt types (U and C) so
|
||||
* that in-stream ZWJ/ZWNJ — which mintty never has in its array —
|
||||
* affect adjacency the same way the joiners flags do.
|
||||
* ═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* Shaping Types (mintty) */
|
||||
enum {
|
||||
SL, /* Left-Joining, doesn't exist in U+0600 - U+06FF */
|
||||
SR, /* Right-Joining, i.e. has Isolated, Final */
|
||||
SD, /* Dual-Joining, i.e. has Isolated, Final, Initial, Medial */
|
||||
SU, /* Non-Joining */
|
||||
SC /* Join-Causing, like U+0640 (TATWEEL) */
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
uchar type;
|
||||
uchar form_b; /* isolated form = 0xFE00 + form_b (Presentation Forms-B) */
|
||||
} shape_node;
|
||||
|
||||
/* Kept near the actual table, for verification. (mintty) */
|
||||
enum { SHAPE_FIRST = 0x621, SHAPE_LAST = 0x64A };
|
||||
|
||||
/* mintty's shapetypes[] — verbatim */
|
||||
static const shape_node shapetypes[] = {
|
||||
/* index, Typ, Iso, Ligature Index */
|
||||
/* 621 */ {SU, 0x80},
|
||||
/* 622 */ {SR, 0x81},
|
||||
/* 623 */ {SR, 0x83},
|
||||
/* 624 */ {SR, 0x85},
|
||||
/* 625 */ {SR, 0x87},
|
||||
/* 626 */ {SD, 0x89},
|
||||
/* 627 */ {SR, 0x8D},
|
||||
/* 628 */ {SD, 0x8F},
|
||||
/* 629 */ {SR, 0x93},
|
||||
/* 62A */ {SD, 0x95},
|
||||
/* 62B */ {SD, 0x99},
|
||||
/* 62C */ {SD, 0x9D},
|
||||
/* 62D */ {SD, 0xA1},
|
||||
/* 62E */ {SD, 0xA5},
|
||||
/* 62F */ {SR, 0xA9},
|
||||
/* 630 */ {SR, 0xAB},
|
||||
/* 631 */ {SR, 0xAD},
|
||||
/* 632 */ {SR, 0xAF},
|
||||
/* 633 */ {SD, 0xB1},
|
||||
/* 634 */ {SD, 0xB5},
|
||||
/* 635 */ {SD, 0xB9},
|
||||
/* 636 */ {SD, 0xBD},
|
||||
/* 637 */ {SD, 0xC1},
|
||||
/* 638 */ {SD, 0xC5},
|
||||
/* 639 */ {SD, 0xC9},
|
||||
/* 63A */ {SD, 0xCD},
|
||||
/* 63B */ {SU, 0x0},
|
||||
/* 63C */ {SU, 0x0},
|
||||
/* 63D */ {SU, 0x0},
|
||||
/* 63E */ {SU, 0x0},
|
||||
/* 63F */ {SU, 0x0},
|
||||
/* 640 */ {SC, 0x0},
|
||||
/* 641 */ {SD, 0xD1},
|
||||
/* 642 */ {SD, 0xD5},
|
||||
/* 643 */ {SD, 0xD9},
|
||||
/* 644 */ {SD, 0xDD},
|
||||
/* 645 */ {SD, 0xE1},
|
||||
/* 646 */ {SD, 0xE5},
|
||||
/* 647 */ {SD, 0xE9},
|
||||
/* 648 */ {SR, 0xED},
|
||||
/* 649 */ {SR, 0xEF},
|
||||
/* 64A */ {SD, 0xF1}};
|
||||
|
||||
/* ── CrossPoint extension: joining types outside U+0621–U+064A ──────────
|
||||
* Source: Unicode ArabicShaping.txt (joining type column). Ranges of
|
||||
* letters sharing one type are collapsed. Sorted ascending (binary
|
||||
* search). Anything not listed here or in shapetypes[] is SU. */
|
||||
static const struct {
|
||||
ucschar first, last;
|
||||
uchar type;
|
||||
} xjointypes[] = {
|
||||
{0x0620, 0x0620, SD}, /* kashmiri yeh */
|
||||
{0x066E, 0x066F, SD}, /* dotless beh/qaf */
|
||||
{0x0671, 0x0673, SR}, /* alef wasla + wavy-hamza alefs */
|
||||
{0x0675, 0x0677, SR}, /* high-hamza alef/waw */
|
||||
{0x0678, 0x0687, SD}, /* high-hamza yeh, beh group (ٹ ٺ ٻ … پ), hah group (چ ڇ) */
|
||||
{0x0688, 0x0699, SR}, /* dal group (ڈ ڊ ڌ …), reh group (ڑ ړ ژ …) */
|
||||
{0x069A, 0x06BF, SD}, /* seen/sad/feh/qaf/kaf/gaf/lam/noon groups (ک گ ں ھ …) */
|
||||
{0x06C0, 0x06C0, SR}, /* heh with yeh above */
|
||||
{0x06C1, 0x06C2, SD}, /* heh goal (ہ) */
|
||||
{0x06C3, 0x06CB, SR}, /* teh marbuta goal, waw group (ۆ ۇ ۋ …) */
|
||||
{0x06CC, 0x06CC, SD}, /* farsi yeh (ی) */
|
||||
{0x06CD, 0x06CD, SR}, /* yeh with tail */
|
||||
{0x06CE, 0x06CE, SD}, /* farsi yeh with V (Kurdish ێ) */
|
||||
{0x06CF, 0x06CF, SR}, /* waw with dot above */
|
||||
{0x06D0, 0x06D1, SD}, /* e (Pashto ې), yeh three dots below */
|
||||
{0x06D2, 0x06D3, SR}, /* yeh barree (ے ۓ) */
|
||||
{0x06D5, 0x06D5, SR}, /* ae (Kurdish ە) */
|
||||
{0x06EE, 0x06EF, SR}, /* dal/reh with inverted V */
|
||||
{0x06FA, 0x06FC, SD}, /* sheen/dad/ghain with dot below */
|
||||
{0x06FF, 0x06FF, SD}, /* heh with inverted V */
|
||||
{0x200C, 0x200C, SU}, /* ZWNJ — joining type U per ArabicShaping.txt */
|
||||
{0x200D, 0x200D, SC}, /* ZWJ — joining type C per ArabicShaping.txt */
|
||||
};
|
||||
|
||||
/* ── CrossPoint extension: presentation forms outside U+0621–U+064A ─────
|
||||
* Source: UnicodeData.txt, Arabic Presentation Forms-A (U+FB50–U+FBFF).
|
||||
* forms = number of consecutive presentation forms allocated for the
|
||||
* letter, always in the order isolated, final, initial, medial (matching
|
||||
* the SHAPE_* offsets below): 2 = isolated+final, 4 = all.
|
||||
* Letters absent here have no presentation forms and keep their base
|
||||
* codepoint. Sorted ascending (binary search). */
|
||||
static const struct {
|
||||
ucschar cp;
|
||||
ucschar isolated;
|
||||
uchar forms;
|
||||
} xshapeforms[] = {
|
||||
{0x0671, 0xFB50, 2}, /* alef wasla */
|
||||
{0x0679, 0xFB66, 4}, /* tteh (Urdu ٹ) */
|
||||
{0x067A, 0xFB5E, 4}, /* tteheh */
|
||||
{0x067B, 0xFB52, 4}, /* beeh (Sindhi ٻ) */
|
||||
{0x067E, 0xFB56, 4}, /* peh (Farsi پ) */
|
||||
{0x067F, 0xFB62, 4}, /* teheh */
|
||||
{0x0680, 0xFB5A, 4}, /* beheh (Sindhi ڀ) */
|
||||
{0x0683, 0xFB76, 4}, /* nyeh (Sindhi ڃ) */
|
||||
{0x0684, 0xFB72, 4}, /* dyeh (Sindhi ڄ) */
|
||||
{0x0686, 0xFB7A, 4}, /* tcheh (Farsi چ) */
|
||||
{0x0687, 0xFB7E, 4}, /* tcheheh (Sindhi ڇ) */
|
||||
{0x0688, 0xFB88, 2}, /* ddal (Urdu ڈ) */
|
||||
{0x068C, 0xFB84, 2}, /* dahal (Sindhi ڌ) */
|
||||
{0x068D, 0xFB82, 2}, /* ddahal (Sindhi ڍ) */
|
||||
{0x068E, 0xFB86, 2}, /* dul (Sindhi ڎ) */
|
||||
{0x0691, 0xFB8C, 2}, /* rreh (Urdu ڑ) */
|
||||
{0x0698, 0xFB8A, 2}, /* jeh (Farsi ژ) */
|
||||
{0x06A4, 0xFB6A, 4}, /* veh (Kurdish ڤ) */
|
||||
{0x06A6, 0xFB6E, 4}, /* peheh (Sindhi ڦ) */
|
||||
{0x06A9, 0xFB8E, 4}, /* keheh (Farsi/Urdu ک) */
|
||||
{0x06AD, 0xFBD3, 4}, /* ng */
|
||||
{0x06AF, 0xFB92, 4}, /* gaf (Farsi/Urdu گ) */
|
||||
{0x06B1, 0xFB9A, 4}, /* ngoeh (Sindhi ڱ) */
|
||||
{0x06B3, 0xFB96, 4}, /* gueh (Sindhi ڳ) */
|
||||
{0x06BA, 0xFB9E, 2}, /* noon ghunna (Urdu ں) — dual-joining but only
|
||||
isolated+final forms exist; initial/medial
|
||||
contexts keep the base codepoint */
|
||||
{0x06BB, 0xFBA0, 4}, /* rnoon (Sindhi ڻ) */
|
||||
{0x06BE, 0xFBAA, 4}, /* heh doachashmee (Urdu ھ) */
|
||||
{0x06C0, 0xFBA4, 2}, /* heh with yeh above */
|
||||
{0x06C1, 0xFBA6, 4}, /* heh goal (Urdu ہ) */
|
||||
{0x06C5, 0xFBE0, 2}, /* kirghiz oe */
|
||||
{0x06C6, 0xFBD9, 2}, /* oe (Kurdish ۆ) */
|
||||
{0x06C7, 0xFBD7, 2}, /* u (ۇ) */
|
||||
{0x06C8, 0xFBDB, 2}, /* yu */
|
||||
{0x06C9, 0xFBE2, 2}, /* kirghiz yu */
|
||||
{0x06CB, 0xFBDE, 2}, /* ve */
|
||||
{0x06CC, 0xFBFC, 4}, /* farsi yeh (Farsi/Urdu ی) */
|
||||
{0x06D0, 0xFBE4, 4}, /* e (Pashto ې) */
|
||||
{0x06D2, 0xFBAE, 2}, /* yeh barree (Urdu ے) */
|
||||
{0x06D3, 0xFBB0, 2}, /* yeh barree with hamza above (ۓ) */
|
||||
};
|
||||
|
||||
/* Contextual form offsets from the isolated form — identical ordering in
|
||||
Presentation Forms-A and -B, matching mintty's SFINAL/SINITIAL/SMEDIAL
|
||||
(+1/+2/+3) macros. */
|
||||
enum { SHAPE_ISOLATED = 0, SHAPE_FINAL = 1, SHAPE_INITIAL = 2, SHAPE_MEDIAL = 3 };
|
||||
|
||||
/* STYPE equivalent (mintty macro → function to add the extended table) */
|
||||
static uchar stype(ucschar c) {
|
||||
if (c >= SHAPE_FIRST && c <= SHAPE_LAST) return shapetypes[c - SHAPE_FIRST].type;
|
||||
|
||||
int i = -1, j = lengthof(xjointypes);
|
||||
while (j - i > 1) {
|
||||
int k = (i + j) / 2;
|
||||
if (c < xjointypes[k].first)
|
||||
j = k;
|
||||
else if (c > xjointypes[k].last)
|
||||
i = k;
|
||||
else
|
||||
return xjointypes[k].type;
|
||||
}
|
||||
return SU;
|
||||
}
|
||||
|
||||
/* SISOLATED/SFINAL/SINITIAL/SMEDIAL equivalent.
|
||||
form is one of the SHAPE_* offsets; returns c unchanged when the letter
|
||||
has no presentation form allocated for that context. */
|
||||
static ucschar shape_form(ucschar c, uchar form) {
|
||||
if (c >= SHAPE_FIRST && c <= SHAPE_LAST) {
|
||||
const uchar form_b = shapetypes[c - SHAPE_FIRST].form_b;
|
||||
return form_b ? 0xFE00 + form_b + form : c;
|
||||
}
|
||||
|
||||
int i = -1, j = lengthof(xshapeforms);
|
||||
while (j - i > 1) {
|
||||
int k = (i + j) / 2;
|
||||
if (c < xshapeforms[k].cp)
|
||||
j = k;
|
||||
else if (c > xshapeforms[k].cp)
|
||||
i = k;
|
||||
else
|
||||
return form < xshapeforms[k].forms ? xshapeforms[k].isolated + form : c;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
/* CrossPoint deviation 1: NSM marks (harakat) sit between letters in our
|
||||
array but are transparent for joining (Unicode joining type T). These
|
||||
helpers find the effective joining neighbour. */
|
||||
static int next_non_nsm(const bidi_char* line, int i, int count) {
|
||||
int j = i + 1;
|
||||
while (j < count && bidi_class(line[j].wc) == NSM) j++;
|
||||
return j;
|
||||
}
|
||||
|
||||
static int prev_non_nsm(const bidi_char* line, int i) {
|
||||
int j = i - 1;
|
||||
while (j >= 0 && bidi_class(line[j].wc) == NSM) j--;
|
||||
return j;
|
||||
}
|
||||
|
||||
/* The Main shaping function (mintty, structure preserved).
|
||||
*
|
||||
* line: visual-order buffer — must have been passed through do_bidi() first
|
||||
* to: output buffer for the shaped data
|
||||
* count: number of characters in line
|
||||
*/
|
||||
int do_shape(bidi_char* line, bidi_char* to, int count) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
to[i] = line[i];
|
||||
int tempShape = stype(line[i].wc);
|
||||
switch (tempShape) {
|
||||
case SR: { /* Right-Joining, i.e. has Isolated, Final */
|
||||
const int nx = next_non_nsm(line, i, count); /* deviation 1: was i + 1 */
|
||||
tempShape = (nx < count) ? stype(line[nx].wc) : SU;
|
||||
if (tempShape == SL || tempShape == SD || tempShape == SC)
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_FINAL);
|
||||
else
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_ISOLATED);
|
||||
break;
|
||||
}
|
||||
case SD: { /* Dual-Joining, i.e. has Isolated, Final, Initial, Medial */
|
||||
const int nx = next_non_nsm(line, i, count); /* deviation 1: was i + 1 */
|
||||
const int pv = prev_non_nsm(line, i); /* deviation 1: was i - 1 */
|
||||
|
||||
/* Make Ligatures */
|
||||
tempShape = (nx < count) ? stype(line[nx].wc) : SU;
|
||||
if (line[i].wc == 0x644) { /* Lam: the Alef variant is at pv (visually left) */
|
||||
int ligFlag = 0;
|
||||
switch (pv >= 0 ? line[pv].wc : 0) {
|
||||
case 0x622: /* Alef with Madda above → لآ */
|
||||
ligFlag = 1;
|
||||
to[i].wc = (tempShape == SL || tempShape == SD || tempShape == SC) ? 0xFEF6 : 0xFEF5;
|
||||
break;
|
||||
case 0x623: /* Alef with Hamza above → لأ */
|
||||
ligFlag = 1;
|
||||
to[i].wc = (tempShape == SL || tempShape == SD || tempShape == SC) ? 0xFEF8 : 0xFEF7;
|
||||
break;
|
||||
case 0x625: /* Alef with Hamza below → لإ */
|
||||
ligFlag = 1;
|
||||
to[i].wc = (tempShape == SL || tempShape == SD || tempShape == SC) ? 0xFEFA : 0xFEF9;
|
||||
break;
|
||||
case 0x627: /* Alef → لا */
|
||||
ligFlag = 1;
|
||||
to[i].wc = (tempShape == SL || tempShape == SD || tempShape == SC) ? 0xFEFC : 0xFEFB;
|
||||
break;
|
||||
}
|
||||
if (ligFlag) {
|
||||
to[pv].wc = LIGATURE_PLACEHOLDER; /* deviation 2: mintty writes 0x20 */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Arabic joining formatters: adapt forms (mintty) */
|
||||
const uchar joiners = line[i].joiners & 0xF;
|
||||
const uchar prevjoiners = line[i].joiners >> 4;
|
||||
if (prevjoiners == ZWNJ) {
|
||||
/* backward join blocked; initial only if the visually-right
|
||||
(logically next) neighbour joins, else isolated */
|
||||
tempShape = (pv >= 0) ? stype(line[pv].wc) : SU;
|
||||
if (tempShape == SR || tempShape == SD || tempShape == SC)
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_INITIAL);
|
||||
else
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_ISOLATED);
|
||||
} else if (prevjoiners == (ZWJ | ZWNJ)) {
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_MEDIAL);
|
||||
} else if (prevjoiners == ZWJ) {
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_FINAL);
|
||||
} else if (joiners & ZWNJ) {
|
||||
/* forward join blocked; final only if the visually-left
|
||||
(logically previous) neighbour joins, else isolated —
|
||||
tempShape still holds stype(nx) from above */
|
||||
if (tempShape == SL || tempShape == SD || tempShape == SC)
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_FINAL);
|
||||
else
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_ISOLATED);
|
||||
} else if (tempShape == SL || tempShape == SD || tempShape == SC) {
|
||||
/* visually-right neighbour joins → final, or medial if the
|
||||
visually-left neighbour joins too */
|
||||
tempShape = (pv >= 0) ? stype(line[pv].wc) : SU;
|
||||
if (tempShape == SR || tempShape == SD || tempShape == SC)
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_MEDIAL);
|
||||
else
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_FINAL);
|
||||
} else {
|
||||
/* visually-right neighbour doesn't join → isolated, or initial
|
||||
if the visually-left neighbour joins */
|
||||
tempShape = (pv >= 0) ? stype(line[pv].wc) : SU;
|
||||
if (tempShape == SR || tempShape == SD || tempShape == SC)
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_INITIAL);
|
||||
else
|
||||
to[i].wc = shape_form(line[i].wc, SHAPE_ISOLATED);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
/* SU, SL, SC and non-Arabic characters pass through unchanged */
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
* Directional Status Stack
|
||||
* (replaces GCC nested functions — ESP32C3 has no executable stack)
|
||||
|
||||
+52
-5
@@ -5,8 +5,10 @@
|
||||
* minibidi.h — standalone header for ESP32C3 BiDi calculations
|
||||
*
|
||||
* Derived from [mintty](https://github.com/mintty/mintty/) (Thomas Wolff, MIT licence).
|
||||
* Stripped of: Arabic shaping, box-drawing mirror, terminal dependencies,
|
||||
* GCC nested functions, VLAs, and non-Hebrew/English Unicode data.
|
||||
* Includes: UAX#9 bidi (do_bidi) and Arabic contextual shaping (do_shape),
|
||||
* both ported from mintty src/minibidi.c (Ahmad Khalifa, Thomas Wolff).
|
||||
* Stripped of: box-drawing mirror, terminal dependencies, GCC nested
|
||||
* functions, VLAs, and Unicode data for scripts CrossPoint doesn't render.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
@@ -34,13 +36,18 @@ typedef uint32_t ucschar; /* Unicode codepoint; BMP-only content fits uint16_t
|
||||
#define BIDI_MAX_LINE 128
|
||||
|
||||
/* ── bidi_char ───────────────────────────────────────────────────────── */
|
||||
/* origwc: the codepoint as it came from the epub text stream
|
||||
wc: working codepoint (may be replaced by mirrored form after do_bidi)
|
||||
index: original logical position, so the caller can reorder glyphs */
|
||||
/* origwc: the codepoint as it came from the epub text stream
|
||||
wc: working codepoint (may be replaced by mirrored form after
|
||||
do_bidi, or by an Arabic contextual form after do_shape)
|
||||
index: original logical position, so the caller can reorder glyphs
|
||||
joiners: ZWJ/ZWNJ context for Arabic shaping, mintty layout:
|
||||
low nibble = joiners that logically FOLLOW this character,
|
||||
high nibble = joiners that logically PRECEDE this character */
|
||||
typedef struct {
|
||||
ucschar origwc;
|
||||
ucschar wc;
|
||||
uint16_t index;
|
||||
uint8_t joiners;
|
||||
} bidi_char;
|
||||
|
||||
/* ── Bidi character classes (UAX #9) ────────────────────────────────── */
|
||||
@@ -71,6 +78,20 @@ enum {
|
||||
PDI, /* Pop Directional Isolate */
|
||||
};
|
||||
|
||||
/* ── Arabic joining formatter flags (bidi_char.joiners nibbles) ─────── */
|
||||
/* Values match mintty's minibidi.h: ZWNJ 0x01, ZWJ 0x02. do_shape()
|
||||
compares nibble values directly, so these must not be changed. */
|
||||
enum {
|
||||
ZWNJ = 0x01, /* U+200C ZERO WIDTH NON-JOINER */
|
||||
ZWJ = 0x02, /* U+200D ZERO WIDTH JOINER */
|
||||
};
|
||||
|
||||
/* Sentinel written by do_shape() over the Alef absorbed into a Lam-Alef
|
||||
ligature. Callers must filter it out when emitting shaped text.
|
||||
(Upstream mintty writes a space instead — a terminal must keep the cell;
|
||||
a proportional-text renderer must drop the character entirely.) */
|
||||
#define LIGATURE_PLACEHOLDER 0xFFFFu
|
||||
|
||||
/* ── Public API ──────────────────────────────────────────────────────── */
|
||||
|
||||
/*
|
||||
@@ -94,6 +115,32 @@ bool is_rtl_class(uchar bc);
|
||||
*/
|
||||
ucschar mirror(ucschar ch);
|
||||
|
||||
/*
|
||||
* do_shape(line, to, count)
|
||||
*
|
||||
* Applies Arabic contextual shaping (and Lam-Alef ligation) to
|
||||
* `line[0..count-1]`, writing the result to `to[0..count-1]`.
|
||||
*
|
||||
* MUST be called AFTER do_bidi(): the algorithm resolves joining from
|
||||
* VISUAL adjacency (line[i-1] is the visually-left neighbour, line[i+1]
|
||||
* the visually-right one), exactly like upstream mintty.
|
||||
*
|
||||
* line: visual-order input; the joiners field must be populated by the
|
||||
* caller (in logical order, before do_bidi) for ZWJ/ZWNJ support
|
||||
* to: output buffer, same size as line; non-Arabic entries are copied
|
||||
* through unchanged. An Alef absorbed by a Lam-Alef ligature is
|
||||
* replaced with LIGATURE_PLACEHOLDER — filter it on emission.
|
||||
* count: number of characters (≤ BIDI_MAX_LINE)
|
||||
*
|
||||
* Returns 1.
|
||||
*
|
||||
* Ported from mintty src/minibidi.c (Ahmad Khalifa, Thomas Wolff,
|
||||
* MIT licence), https://github.com/mintty/mintty — with CrossPoint
|
||||
* extensions for Perso-Arabic letters and in-stream diacritics, see
|
||||
* minibidi.c for details.
|
||||
*/
|
||||
int do_shape(bidi_char* line, bidi_char* to, int count);
|
||||
|
||||
/*
|
||||
* do_bidi(autodir, paragraphLevel, line, count)
|
||||
*
|
||||
|
||||
@@ -6,6 +6,9 @@ Tests that a bare <br> element between paragraphs produces a visible blank-line
|
||||
gap (section separator), while a <br> inside a paragraph only produces a line
|
||||
break with no extra spacing.
|
||||
|
||||
Also tests that <li> containing <p> renders the bullet inline with the paragraph
|
||||
text, not on a separate line (GitHub issue #956).
|
||||
|
||||
Cases covered:
|
||||
1. Standalone <br> between paragraphs (section break — must show gap).
|
||||
2. <br class="..."> with a CSS class (calibre-style section break).
|
||||
@@ -13,6 +16,9 @@ Cases covered:
|
||||
4. Inline <br> inside a <p> (line break only — no extra gap).
|
||||
5. <br> at start of chapter (no gap before first paragraph).
|
||||
6. <br> following a heading.
|
||||
7. <li><p> with bold+italic text (bullet must be inline with text).
|
||||
8. <li><p> with nested <ul> (bullet inline, nested list indented).
|
||||
9. <li> with direct text (no <p> wrapper — baseline, already works).
|
||||
|
||||
Visual verification instructions are embedded as the first paragraph of each
|
||||
chapter so a human tester can confirm the expected result on device.
|
||||
@@ -36,6 +42,12 @@ p { margin-top: 1pt; margin-bottom: 0; text-indent: 1em; text-align: justify;
|
||||
h1 { text-align: center; margin-top: 0.5em; margin-bottom: 0.5em; }
|
||||
h2 { text-align: center; margin-top: 0.5em; margin-bottom: 0.5em; }
|
||||
.section-br { display: block; }
|
||||
.list-simple1 { margin-left: 1em; }
|
||||
.list-item1 { text-indent: 0; }
|
||||
.list-bullet { margin-left: 1em; }
|
||||
.list-bullet2 { margin-left: 2em; }
|
||||
.list { text-indent: 0; }
|
||||
.list-item { text-indent: 0; }
|
||||
"""
|
||||
|
||||
def xhtml(title, body):
|
||||
@@ -130,6 +142,55 @@ area above it despite the <br> being the very first element.</p>
|
||||
<p>{FILLER}</p>
|
||||
""")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Chapter 7 — <li><p> with bold+italic (issue #956 example 1)
|
||||
# ---------------------------------------------------------------------------
|
||||
ch7 = xhtml("Ch7: li>p bold italic", """
|
||||
<h1>Ch 7: <li><p> with Bold+Italic</h1>
|
||||
<p>PASS: Each bullet below must be on the SAME line as its text, not on a
|
||||
separate line above it. The bullet and text are inline.</p>
|
||||
<ul class="list-simple1">
|
||||
<li><p class="list-item1"><b><i>Sketching User Experiences</i> by Bill Buxton</b>. This book examines the notion of sketching (Hint: prototypes are a kind of sketch) across a wide variety of disciplines, with eye-opening results.</p></li>
|
||||
<li><p class="list-item1"><b><i>Have Paper, Will Prototype</i> by Bill Lucas</b>. This lecture is a series of case studies about how to successfully create paper prototypes of computer interfaces.</p></li>
|
||||
<li><p class="list-item1"><b><i>The Kobold Guide to Board Game Design</i> by Mike Selinker</b>. The very best book there is on how to design great board games.</p></li>
|
||||
</ul>
|
||||
<p>PASS: All three bullets above should be inline with their respective text.</p>
|
||||
""")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Chapter 8 — <li><p> with nested <ul> (issue #956 example 2)
|
||||
# ---------------------------------------------------------------------------
|
||||
ch8 = xhtml("Ch8: li>p nested ul", """
|
||||
<h1>Ch 8: <li><p> with Nested List</h1>
|
||||
<p>PASS: Each bullet must be inline with its text. The nested list should be
|
||||
indented further with its own bullets also inline.</p>
|
||||
<ul class="list-bullet">
|
||||
<li><p class="list">Problem statement: Design a flying dino game where dinosaurs race in and above the water.</p></li>
|
||||
<li><p class="list">Detailed problem statements</p>
|
||||
<ul class="list-bullet2">
|
||||
<li><p class="list-item">We need to figure out if we can schedule all the animation time needed for the dinosaurs.</p></li>
|
||||
<li><p class="list-item">We need to develop the right number of levels for this game.</p></li>
|
||||
<li><p class="list-item">We need to figure out all the power-ups that will go into this game.</p></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<p>PASS: All bullets above should be inline with their text, including the nested ones.</p>
|
||||
""")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Chapter 9 — <li> with direct text (no <p> wrapper, baseline)
|
||||
# ---------------------------------------------------------------------------
|
||||
ch9 = xhtml("Ch9: li direct text", """
|
||||
<h1>Ch 9: <li> Direct Text (Baseline)</h1>
|
||||
<p>PASS: Each bullet below must be inline with its text. This is the baseline
|
||||
case that already works — no <p> wrapper inside <li>.</p>
|
||||
<ul>
|
||||
<li>The fundamental difference between changes to the behavior of a system and changes to its structure.</li>
|
||||
<li>The enabling magic of alternating investment in structure and investment in behavior.</li>
|
||||
<li>The basics of the theory of how software design works and the forces that act on it.</li>
|
||||
</ul>
|
||||
<p>PASS: All three bullets above should be inline with their text.</p>
|
||||
""")
|
||||
|
||||
CHAPTERS = [
|
||||
("ch1", "chapter1.xhtml", "Chapter 1: Standalone br", ch1),
|
||||
("ch2", "chapter2.xhtml", "Chapter 2: Classed br", ch2),
|
||||
@@ -137,6 +198,9 @@ CHAPTERS = [
|
||||
("ch4", "chapter4.xhtml", "Chapter 4: Inline br", ch4),
|
||||
("ch5", "chapter5.xhtml", "Chapter 5: br after heading", ch5),
|
||||
("ch6", "chapter6.xhtml", "Chapter 6: br at start", ch6),
|
||||
("ch7", "chapter7.xhtml", "Chapter 7: li>p bold italic", ch7),
|
||||
("ch8", "chapter8.xhtml", "Chapter 8: li>p nested ul", ch8),
|
||||
("ch9", "chapter9.xhtml", "Chapter 9: li direct text", ch9),
|
||||
]
|
||||
|
||||
def build_epub(path):
|
||||
@@ -177,7 +241,7 @@ def build_epub(path):
|
||||
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="uid">
|
||||
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<dc:identifier id="uid">test-epub-br-section-break</dc:identifier>
|
||||
<dc:title>Test: br Section Break</dc:title>
|
||||
<dc:title>Test: br Section Break & li/p</dc:title>
|
||||
<dc:language>en</dc:language>
|
||||
</metadata>
|
||||
<manifest>
|
||||
|
||||
@@ -28,6 +28,7 @@ void WifiSelectionActivity::onEnter() {
|
||||
// Reset state
|
||||
selectedNetworkIndex = 0;
|
||||
networks.clear();
|
||||
realNetworkCount = 0;
|
||||
state = WifiSelectionState::SCANNING;
|
||||
selectedSSID.clear();
|
||||
connectedIP.clear();
|
||||
@@ -114,9 +115,13 @@ void WifiSelectionActivity::processWifiScanResults() {
|
||||
}
|
||||
|
||||
if (scanResult == WIFI_SCAN_FAILED) {
|
||||
networks.clear();
|
||||
realNetworkCount = 0;
|
||||
appendHiddenNetworkEntry();
|
||||
autoConnecting = false;
|
||||
manualNetworkListRequested = false;
|
||||
state = WifiSelectionState::NETWORK_LIST;
|
||||
selectedNetworkIndex = 0;
|
||||
requestUpdate();
|
||||
return;
|
||||
}
|
||||
@@ -158,6 +163,9 @@ void WifiSelectionActivity::processWifiScanResults() {
|
||||
return a.rssi > b.rssi;
|
||||
});
|
||||
|
||||
realNetworkCount = networks.size();
|
||||
appendHiddenNetworkEntry();
|
||||
|
||||
WiFi.scanDelete();
|
||||
|
||||
if (autoConnecting && !manualNetworkListRequested && tryNextSavedNetworkFromScan()) {
|
||||
@@ -171,12 +179,30 @@ void WifiSelectionActivity::processWifiScanResults() {
|
||||
requestUpdate();
|
||||
}
|
||||
|
||||
void WifiSelectionActivity::appendHiddenNetworkEntry() {
|
||||
// Synthetic list entry that lets the user type an SSID that is not broadcast.
|
||||
// ESP32 can join hidden APs as long as the SSID is supplied to WiFi.begin().
|
||||
WifiNetworkInfo placeholder;
|
||||
placeholder.rssi = 0;
|
||||
placeholder.isEncrypted = true; // Treated as encrypted; an empty password still connects open APs
|
||||
placeholder.hasSavedPassword = false;
|
||||
placeholder.isHiddenPlaceholder = true;
|
||||
networks.push_back(std::move(placeholder));
|
||||
}
|
||||
|
||||
void WifiSelectionActivity::selectNetwork(const int index) {
|
||||
if (index < 0 || index >= static_cast<int>(networks.size())) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto& network = networks[index];
|
||||
|
||||
// Synthetic "Add hidden network..." entry: prompt the user to type the SSID first
|
||||
if (network.isHiddenPlaceholder) {
|
||||
promptHiddenSsid();
|
||||
return;
|
||||
}
|
||||
|
||||
selectedSSID = network.ssid;
|
||||
selectedRequiresPassword = network.isEncrypted;
|
||||
usedSavedPassword = false;
|
||||
@@ -195,27 +221,57 @@ void WifiSelectionActivity::selectNetwork(const int index) {
|
||||
}
|
||||
|
||||
if (selectedRequiresPassword) {
|
||||
// Show password entry
|
||||
state = WifiSelectionState::PASSWORD_ENTRY;
|
||||
// Don't allow screen updates while changing activity
|
||||
startActivityForResult(std::make_unique<KeyboardEntryActivity>(renderer, mappedInput, tr(STR_ENTER_WIFI_PASSWORD),
|
||||
"", // No initial text
|
||||
64, // Max password length
|
||||
InputType::Password),
|
||||
[this](const ActivityResult& result) {
|
||||
if (result.isCancelled) {
|
||||
state = WifiSelectionState::NETWORK_LIST;
|
||||
} else {
|
||||
enteredPassword = std::get<KeyboardResult>(result.data).text;
|
||||
// state will be updated in next loop iteration
|
||||
}
|
||||
});
|
||||
promptPasswordEntry();
|
||||
} else {
|
||||
// Connect directly for open networks
|
||||
attemptConnection();
|
||||
}
|
||||
}
|
||||
|
||||
void WifiSelectionActivity::promptPasswordEntry() {
|
||||
// Show password entry
|
||||
state = WifiSelectionState::PASSWORD_ENTRY;
|
||||
// Don't allow screen updates while changing activity
|
||||
startActivityForResult(std::make_unique<KeyboardEntryActivity>(renderer, mappedInput, tr(STR_ENTER_WIFI_PASSWORD),
|
||||
"", // No initial text
|
||||
64, // Max password length
|
||||
InputType::Password),
|
||||
[this](const ActivityResult& result) {
|
||||
if (result.isCancelled) {
|
||||
state = WifiSelectionState::NETWORK_LIST;
|
||||
} else {
|
||||
enteredPassword = std::get<KeyboardResult>(result.data).text;
|
||||
// state will be updated in next loop iteration
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void WifiSelectionActivity::promptHiddenSsid() {
|
||||
selectedSSID.clear();
|
||||
selectedRequiresPassword = true; // Hidden networks are usually encrypted; empty password still joins open APs
|
||||
usedSavedPassword = false;
|
||||
enteredPassword.clear();
|
||||
autoConnecting = false;
|
||||
|
||||
// Suppress rendering during the activity transition (see render()).
|
||||
state = WifiSelectionState::HIDDEN_SSID_ENTRY;
|
||||
startActivityForResult(std::make_unique<KeyboardEntryActivity>(renderer, mappedInput, tr(STR_ENTER_WIFI_SSID),
|
||||
"", // No initial text
|
||||
32, // Max SSID length (IEEE 802.11: 32 bytes)
|
||||
InputType::Text),
|
||||
[this](const ActivityResult& result) {
|
||||
if (result.isCancelled) {
|
||||
state = WifiSelectionState::NETWORK_LIST;
|
||||
return;
|
||||
}
|
||||
selectedSSID = std::get<KeyboardResult>(result.data).text;
|
||||
if (selectedSSID.empty()) {
|
||||
state = WifiSelectionState::NETWORK_LIST;
|
||||
}
|
||||
// Otherwise stay in HIDDEN_SSID_ENTRY; loop() continues the flow.
|
||||
});
|
||||
}
|
||||
|
||||
bool WifiSelectionActivity::hasAttemptedAutoSsid(const std::string& ssid) const {
|
||||
return std::find(autoAttemptedSsids.begin(), autoAttemptedSsids.end(), ssid) != autoAttemptedSsids.end();
|
||||
}
|
||||
@@ -422,6 +478,22 @@ void WifiSelectionActivity::loop() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Reached once the hidden-network SSID has been entered (and was non-empty).
|
||||
if (state == WifiSelectionState::HIDDEN_SSID_ENTRY) {
|
||||
const auto* savedCred = WIFI_STORE.findCredential(selectedSSID);
|
||||
if (savedCred && !savedCred->password.empty()) {
|
||||
// We already know this hidden network - connect with the saved password
|
||||
enteredPassword = savedCred->password;
|
||||
usedSavedPassword = true;
|
||||
LOG_DBG("WiFi", "Using saved password for hidden network %s", selectedSSID.c_str());
|
||||
attemptConnection();
|
||||
} else {
|
||||
// Prompt for the password (empty password connects to open hidden APs)
|
||||
promptPasswordEntry();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (state == WifiSelectionState::PASSWORD_ENTRY) {
|
||||
// Reach here once password entry finished in subactivity
|
||||
attemptConnection();
|
||||
@@ -582,9 +654,9 @@ std::string WifiSelectionActivity::getSignalStrengthIndicator(const int32_t rssi
|
||||
}
|
||||
|
||||
void WifiSelectionActivity::render(RenderLock&&) {
|
||||
// Don't render if we're in PASSWORD_ENTRY state - we're just transitioning
|
||||
// Don't render if we're in a keyboard-entry state - we're just transitioning
|
||||
// from the keyboard subactivity back to the main activity
|
||||
if (state == WifiSelectionState::PASSWORD_ENTRY) {
|
||||
if (state == WifiSelectionState::PASSWORD_ENTRY || state == WifiSelectionState::HIDDEN_SSID_ENTRY) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -596,7 +668,7 @@ void WifiSelectionActivity::render(RenderLock&&) {
|
||||
|
||||
// Draw header
|
||||
char countStr[32];
|
||||
snprintf(countStr, sizeof(countStr), tr(STR_NETWORKS_FOUND), networks.size());
|
||||
snprintf(countStr, sizeof(countStr), tr(STR_NETWORKS_FOUND), realNetworkCount);
|
||||
GUI.drawHeader(renderer, Rect{screen.x, screen.y + metrics.topPadding, screen.width, metrics.headerHeight},
|
||||
tr(STR_WIFI_NETWORKS), countStr);
|
||||
GUI.drawSubHeader(
|
||||
@@ -614,6 +686,9 @@ void WifiSelectionActivity::render(RenderLock&&) {
|
||||
case WifiSelectionState::NETWORK_LIST:
|
||||
renderNetworkList(&screen, &metrics);
|
||||
break;
|
||||
case WifiSelectionState::HIDDEN_SSID_ENTRY:
|
||||
// Transitioning to/from the SSID keyboard subactivity - nothing to draw
|
||||
break;
|
||||
case WifiSelectionState::CONNECTING:
|
||||
renderConnecting(&screen, &metrics);
|
||||
break;
|
||||
@@ -647,9 +722,17 @@ void WifiSelectionActivity::renderNetworkList(const Rect* screen, const ThemeMet
|
||||
int contentHeight = screen->height - contentTop - metrics->verticalSpacing * 2;
|
||||
GUI.drawList(
|
||||
renderer, Rect{screen->x, contentTop, screen->width, contentHeight}, static_cast<int>(networks.size()),
|
||||
selectedNetworkIndex, [this](int index) { return networks[index].ssid; }, nullptr, nullptr,
|
||||
selectedNetworkIndex,
|
||||
[this](int index) {
|
||||
auto network = networks[index];
|
||||
const auto& network = networks[index];
|
||||
return network.isHiddenPlaceholder ? std::string(tr(STR_ADD_HIDDEN_NETWORK)) : network.ssid;
|
||||
},
|
||||
nullptr, nullptr,
|
||||
[this](int index) {
|
||||
const auto& network = networks[index];
|
||||
if (network.isHiddenPlaceholder) {
|
||||
return std::string();
|
||||
}
|
||||
return std::string(network.hasSavedPassword ? "+ " : "") + (network.isEncrypted ? "* " : "") +
|
||||
getSignalStrengthIndicator(network.rssi);
|
||||
});
|
||||
|
||||
@@ -18,7 +18,8 @@ struct WifiNetworkInfo {
|
||||
std::string ssid;
|
||||
int32_t rssi;
|
||||
bool isEncrypted;
|
||||
bool hasSavedPassword; // Whether we have saved credentials for this network
|
||||
bool hasSavedPassword; // Whether we have saved credentials for this network
|
||||
bool isHiddenPlaceholder = false; // Synthetic "Add hidden network..." list entry
|
||||
};
|
||||
|
||||
// WiFi selection states
|
||||
@@ -26,6 +27,7 @@ enum class WifiSelectionState {
|
||||
AUTO_CONNECTING, // Trying to connect to the last known network
|
||||
SCANNING, // Scanning for networks
|
||||
NETWORK_LIST, // Displaying available networks
|
||||
HIDDEN_SSID_ENTRY, // Entering SSID for a hidden network
|
||||
PASSWORD_ENTRY, // Entering password for selected network
|
||||
CONNECTING, // Attempting to connect
|
||||
CONNECTED, // Successfully connected
|
||||
@@ -51,6 +53,8 @@ class WifiSelectionActivity final : public Activity {
|
||||
WifiSelectionState state = WifiSelectionState::SCANNING;
|
||||
size_t selectedNetworkIndex = 0;
|
||||
std::vector<WifiNetworkInfo> networks;
|
||||
// Number of real (scanned) networks, excluding the synthetic hidden-network entry
|
||||
size_t realNetworkCount = 0;
|
||||
|
||||
// Selected network for connection
|
||||
std::string selectedSSID;
|
||||
@@ -100,7 +104,10 @@ class WifiSelectionActivity final : public Activity {
|
||||
|
||||
void startWifiScan(bool autoScan = false);
|
||||
void processWifiScanResults();
|
||||
void appendHiddenNetworkEntry();
|
||||
void selectNetwork(int index);
|
||||
void promptHiddenSsid();
|
||||
void promptPasswordEntry();
|
||||
void attemptConnection();
|
||||
void checkConnectionStatus();
|
||||
bool tryAutoConnectCredential(const WifiCredential& cred);
|
||||
|
||||
+3
-1
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(crosspoint_reader_tests CXX)
|
||||
project(crosspoint_reader_tests C CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
@@ -43,3 +43,5 @@ add_subdirectory(release_json_parser)
|
||||
add_subdirectory(differential_rounding)
|
||||
add_subdirectory(hyphenation_eval)
|
||||
add_subdirectory(utf8_compose)
|
||||
add_subdirectory(minibidi_arabic)
|
||||
add_subdirectory(combining_marks)
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
add_executable(CombiningMarkAnchorTest
|
||||
CombiningMarkAnchorTest.cpp
|
||||
)
|
||||
|
||||
target_include_directories(CombiningMarkAnchorTest PRIVATE
|
||||
${REPO_ROOT}/lib/EpdFont
|
||||
)
|
||||
|
||||
target_link_libraries(CombiningMarkAnchorTest PRIVATE
|
||||
crosspoint_test_common
|
||||
GTest::gtest_main
|
||||
)
|
||||
|
||||
gtest_discover_tests(CombiningMarkAnchorTest)
|
||||
@@ -0,0 +1,73 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "lib/EpdFont/EpdFontData.h"
|
||||
|
||||
// ============================================================================
|
||||
// Anchor selection and placement for combining marks without GPOS tables.
|
||||
//
|
||||
// Hebrew niqqud whose identity depends on position must not use the default
|
||||
// centre-and-raise heuristic: dagesh sits inside the letter body, the
|
||||
// shin/sin dots sit over the letter's right/left arm, and holam hangs over
|
||||
// the left corner (see PR #2541 review feedback).
|
||||
// ============================================================================
|
||||
|
||||
using combiningMark::Anchor;
|
||||
using combiningMark::anchorFor;
|
||||
using combiningMark::anchorOver;
|
||||
using combiningMark::anchorOverRotated90CW;
|
||||
using combiningMark::raiseAboveBase;
|
||||
|
||||
TEST(AnchorFor, PositionSensitiveNiqqud) {
|
||||
EXPECT_EQ(anchorFor(0x05BC), Anchor::CenterNative); // dagesh/mapiq
|
||||
EXPECT_EQ(anchorFor(0x05BA), Anchor::CenterNative); // holam haser for vav
|
||||
EXPECT_EQ(anchorFor(0x05C1), Anchor::RightNative); // shin dot
|
||||
EXPECT_EQ(anchorFor(0x05C2), Anchor::LeftNative); // sin dot
|
||||
EXPECT_EQ(anchorFor(0x05B9), Anchor::LeftNative); // holam
|
||||
}
|
||||
|
||||
TEST(AnchorFor, EverythingElseKeepsCentreRaisedDefault) {
|
||||
EXPECT_EQ(anchorFor(0x05B0), Anchor::CenterRaised); // Hebrew sheva
|
||||
EXPECT_EQ(anchorFor(0x05B7), Anchor::CenterRaised); // Hebrew patach
|
||||
EXPECT_EQ(anchorFor(0x064E), Anchor::CenterRaised); // Arabic fatha
|
||||
EXPECT_EQ(anchorFor(0x0651), Anchor::CenterRaised); // Arabic shadda
|
||||
EXPECT_EQ(anchorFor(0x0301), Anchor::CenterRaised); // combining acute
|
||||
}
|
||||
|
||||
// Base glyph: cursor 100, left 1, width 12. Mark: left 2, width 4.
|
||||
TEST(AnchorOver, HorizontalPlacementPerAnchor) {
|
||||
// Centered: base bitmap spans [101, 113), centre 107; mark starts at 105.
|
||||
EXPECT_EQ(anchorOver(Anchor::CenterRaised, 100, 1, 12, 2, 4), 105 - 2);
|
||||
EXPECT_EQ(anchorOver(Anchor::CenterNative, 100, 1, 12, 2, 4), 105 - 2);
|
||||
// Left-aligned: mark bitmap starts at the base bitmap's left edge (101).
|
||||
EXPECT_EQ(anchorOver(Anchor::LeftNative, 100, 1, 12, 2, 4), 101 - 2);
|
||||
// Right-aligned: mark bitmap ends at the base bitmap's right edge (113).
|
||||
EXPECT_EQ(anchorOver(Anchor::RightNative, 100, 1, 12, 2, 4), 109 - 2);
|
||||
}
|
||||
|
||||
// The rotated coordinate system inverts every left/width term, so the mark's
|
||||
// offset from the base cursor must be the exact mirror of the unrotated one.
|
||||
TEST(AnchorOverRotated90CW, MirrorsUnrotatedOffsets) {
|
||||
for (const Anchor anchor : {Anchor::CenterRaised, Anchor::CenterNative, Anchor::LeftNative, Anchor::RightNative}) {
|
||||
const int offset = anchorOver(anchor, 100, 1, 12, 2, 4) - 100;
|
||||
EXPECT_EQ(anchorOverRotated90CW(anchor, 100, 1, 12, 2, 4), 100 - offset);
|
||||
}
|
||||
}
|
||||
|
||||
TEST(RaiseAboveBase, NativeAnchorsKeepFontDesignedHeight) {
|
||||
// A dagesh-like dot designed inside the letter body (top 8 of a base whose
|
||||
// top is 12) must NOT be hoisted above the letter.
|
||||
EXPECT_EQ(raiseAboveBase(Anchor::CenterNative, 8, 3, 12), 0);
|
||||
// Shin/sin dots overlapping the letter's top must not be pushed clear.
|
||||
EXPECT_EQ(raiseAboveBase(Anchor::RightNative, 13, 3, 12), 0);
|
||||
EXPECT_EQ(raiseAboveBase(Anchor::LeftNative, 13, 3, 12), 0);
|
||||
}
|
||||
|
||||
TEST(RaiseAboveBase, CentreRaisedBehaviourUnchanged) {
|
||||
// Above-baseline mark colliding with the base: raised to restore a 1px gap.
|
||||
// gap = markTop - markHeight - baseTop = 10 - 3 - 12 = -5 -> raise 6.
|
||||
EXPECT_EQ(raiseAboveBase(Anchor::CenterRaised, 10, 3, 12), 6);
|
||||
// Already clear of the base: no raise.
|
||||
EXPECT_EQ(raiseAboveBase(Anchor::CenterRaised, 16, 3, 12), 0);
|
||||
// Below-baseline mark (kasra, cedilla): stays at font-native position.
|
||||
EXPECT_EQ(raiseAboveBase(Anchor::CenterRaised, 2, 4, 12), 0);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
add_executable(MiniBidiArabicTest
|
||||
MiniBidiArabicTest.cpp
|
||||
${REPO_ROOT}/lib/MiniBidi/minibidi.c
|
||||
${REPO_ROOT}/lib/MiniBidi/BidiUtils.cpp
|
||||
${REPO_ROOT}/lib/Utf8/Utf8.cpp
|
||||
)
|
||||
|
||||
target_include_directories(MiniBidiArabicTest PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stubs # no-op Logging.h (real one needs Arduino)
|
||||
${REPO_ROOT}/lib/MiniBidi
|
||||
${REPO_ROOT}/lib/Utf8
|
||||
)
|
||||
|
||||
target_link_libraries(MiniBidiArabicTest PRIVATE
|
||||
crosspoint_test_common
|
||||
GTest::gtest_main
|
||||
)
|
||||
|
||||
gtest_discover_tests(MiniBidiArabicTest)
|
||||
@@ -0,0 +1,254 @@
|
||||
// MiniBidiArabicTest — Arabic/Farsi/Urdu bidi + contextual shaping.
|
||||
//
|
||||
// Exercises the full BidiUtils::applyBidiVisual() pipeline (the single code
|
||||
// path shared by GfxRenderer::getTextWidth() and drawText()): UAX#9
|
||||
// reordering (do_bidi) followed by mintty-ported Arabic shaping (do_shape).
|
||||
//
|
||||
// Inputs are built from codepoint arrays in LOGICAL order; expectations are
|
||||
// codepoint arrays in VISUAL order (left to right, as drawn on screen).
|
||||
// Presentation-form expectations were derived by hand from Unicode
|
||||
// ArabicShaping.txt joining types and the Arabic Presentation Forms-A/B
|
||||
// blocks of UnicodeData.txt.
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "BidiUtils.h"
|
||||
#include "Utf8.h"
|
||||
|
||||
namespace {
|
||||
|
||||
std::string encode(const std::vector<uint32_t>& codepoints) {
|
||||
std::string utf8;
|
||||
for (const uint32_t cp : codepoints) utf8AppendCodepoint(cp, utf8);
|
||||
return utf8;
|
||||
}
|
||||
|
||||
std::vector<uint32_t> decode(const std::string& utf8) {
|
||||
std::vector<uint32_t> codepoints;
|
||||
auto* p = reinterpret_cast<const unsigned char*>(utf8.c_str());
|
||||
while (*p) {
|
||||
const uint32_t cp = utf8NextCodepoint(&p);
|
||||
if (!cp) break;
|
||||
codepoints.push_back(cp);
|
||||
}
|
||||
return codepoints;
|
||||
}
|
||||
|
||||
// Runs the shared bidi+shape pipeline with auto-detected paragraph direction
|
||||
// and returns the visual-order codepoints.
|
||||
std::vector<uint32_t> shapeVisual(const std::vector<uint32_t>& logical) {
|
||||
const std::string in = encode(logical);
|
||||
std::string out;
|
||||
if (!BidiUtils::applyBidiVisual(in.c_str(), out, /*paragraphLevel=*/-1)) {
|
||||
return decode(in); // pipeline declined: unchanged text
|
||||
}
|
||||
return decode(out);
|
||||
}
|
||||
|
||||
using CP = std::vector<uint32_t>;
|
||||
|
||||
} // namespace
|
||||
|
||||
/* ── Core Arabic contextual forms ────────────────────────────────────── */
|
||||
|
||||
// A single letter renders in its isolated presentation form.
|
||||
TEST(ArabicShaping, SingleLetterIsolated) {
|
||||
EXPECT_EQ(shapeVisual({0x0628}), (CP{0xFE8F})); // ب
|
||||
}
|
||||
|
||||
// دار: dal and alef are right-joining, so no letter connects forward —
|
||||
// all three stay isolated. Visual order is reversed.
|
||||
TEST(ArabicShaping, RightJoinersStayIsolated) {
|
||||
EXPECT_EQ(shapeVisual({0x062F, 0x0627, 0x0631}), (CP{0xFEAD, 0xFE8D, 0xFEA9}));
|
||||
}
|
||||
|
||||
// بيت: initial + medial + final chain of dual-joining letters.
|
||||
TEST(ArabicShaping, DualJoiningChain) {
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x064A, 0x062A}), (CP{0xFE96, 0xFEF4, 0xFE91}));
|
||||
}
|
||||
|
||||
// محمد: medial forms across four letters ending in right-joining dal.
|
||||
TEST(ArabicShaping, MedialForms) {
|
||||
EXPECT_EQ(shapeVisual({0x0645, 0x062D, 0x0645, 0x062F}), (CP{0xFEAA, 0xFEE4, 0xFEA4, 0xFEE3}));
|
||||
}
|
||||
|
||||
// Tatweel (U+0640) is join-causing and passes through unchanged.
|
||||
TEST(ArabicShaping, TatweelJoinsBothSides) {
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x0640, 0x062A}), (CP{0xFE96, 0x0640, 0xFE91}));
|
||||
}
|
||||
|
||||
/* ── Lam-Alef ligatures ──────────────────────────────────────────────── */
|
||||
|
||||
// All four Lam-Alef variants, isolated (nothing joins into the Lam).
|
||||
// The absorbed Alef must be collapsed out of the output entirely.
|
||||
TEST(ArabicShaping, LamAlefIsolatedVariants) {
|
||||
EXPECT_EQ(shapeVisual({0x0644, 0x0627}), (CP{0xFEFB})); // لا
|
||||
EXPECT_EQ(shapeVisual({0x0644, 0x0622}), (CP{0xFEF5})); // لآ
|
||||
EXPECT_EQ(shapeVisual({0x0644, 0x0623}), (CP{0xFEF7})); // لأ
|
||||
EXPECT_EQ(shapeVisual({0x0644, 0x0625}), (CP{0xFEF9})); // لإ
|
||||
}
|
||||
|
||||
// All four Lam-Alef variants in final form (a joining letter precedes Lam).
|
||||
TEST(ArabicShaping, LamAlefFinalVariants) {
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x0644, 0x0627}), (CP{0xFEFC, 0xFE91}));
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x0644, 0x0622}), (CP{0xFEF6, 0xFE91}));
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x0644, 0x0623}), (CP{0xFEF8, 0xFE91}));
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x0644, 0x0625}), (CP{0xFEFA, 0xFE91}));
|
||||
}
|
||||
|
||||
// The specific bug flagged in PR #2398 review: a diacritic between Lam and
|
||||
// Alef must not break the ligature. The fatha stays in the stream (a
|
||||
// zero-advance overlay at render time); the Alef is absorbed. Per UAX#9 L3
|
||||
// the mark is emitted after the ligature it decorates.
|
||||
TEST(ArabicShaping, LamAlefWithDiacriticBetween) {
|
||||
EXPECT_EQ(shapeVisual({0x0644, 0x064E, 0x0627}), (CP{0xFEFB, 0x064E}));
|
||||
}
|
||||
|
||||
/* ── Harakat (diacritics) ────────────────────────────────────────────── */
|
||||
|
||||
// كَتَبَ fully vocalized: harakat are transparent for joining — the letter
|
||||
// skeleton shapes exactly as كتب — and remain in the output stream. UAX#9
|
||||
// rule L3: each mark is emitted after its base, so the renderer can overlay
|
||||
// it on the most recently drawn glyph.
|
||||
TEST(ArabicShaping, VocalizedTextJoinsAcrossHarakat) {
|
||||
EXPECT_EQ(shapeVisual({0x0643, 0x064E, 0x062A, 0x064E, 0x0628, 0x064E}),
|
||||
(CP{0xFE90, 0x064E, 0xFE98, 0x064E, 0xFEDB, 0x064E}));
|
||||
}
|
||||
|
||||
// Stacked marks (shadda + fatha on one base) keep their logical order after
|
||||
// the base, so above-base stacking renders bottom-up as authored.
|
||||
TEST(ArabicShaping, StackedMarksFollowBaseInLogicalOrder) {
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x0651, 0x064E}), (CP{0xFE8F, 0x0651, 0x064E}));
|
||||
}
|
||||
|
||||
// Hebrew niqqud rides the same L3 path: mark follows its base after the
|
||||
// RTL run is reversed.
|
||||
TEST(HebrewShaping, NiqqudFollowsBase) {
|
||||
EXPECT_EQ(shapeVisual({0x05E9, 0x05B0, 0x05DC}), (CP{0x05DC, 0x05E9, 0x05B0}));
|
||||
}
|
||||
|
||||
/* ── Farsi extra letters ─────────────────────────────────────────────── */
|
||||
|
||||
// Peh joins like beh, using Presentation Forms-A codepoints.
|
||||
TEST(FarsiShaping, PehContextualForms) { EXPECT_EQ(shapeVisual({0x067E, 0x067E}), (CP{0xFB57, 0xFB58})); }
|
||||
|
||||
// گاز: gaf initial, alef final, jeh-group zain isolated.
|
||||
TEST(FarsiShaping, GafWord) { EXPECT_EQ(shapeVisual({0x06AF, 0x0627, 0x0632}), (CP{0xFEAF, 0xFE8E, 0xFB94})); }
|
||||
|
||||
// سیب: Farsi yeh (U+06CC) takes its medial Presentation Forms-A form.
|
||||
TEST(FarsiShaping, FarsiYehMedial) { EXPECT_EQ(shapeVisual({0x0633, 0x06CC, 0x0628}), (CP{0xFE90, 0xFBFF, 0xFEB3})); }
|
||||
|
||||
/* ── Urdu extra letters ──────────────────────────────────────────────── */
|
||||
|
||||
// ٹ (U+0679) and ڑ (U+0691) were specifically flagged in PR #2398 review as
|
||||
// missing from a literal mintty port; ڈ (U+0688) completes the retroflex set.
|
||||
TEST(UrduShaping, RetroflexLetters) { EXPECT_EQ(shapeVisual({0x0679, 0x0688, 0x0691}), (CP{0xFB8C, 0xFB89, 0xFB68})); }
|
||||
|
||||
// میں: noon ghunna (U+06BA) is dual-joining but only has isolated/final
|
||||
// presentation forms — final position works.
|
||||
TEST(UrduShaping, NoonGhunnaFinal) { EXPECT_EQ(shapeVisual({0x0645, 0x06CC, 0x06BA}), (CP{0xFB9F, 0xFBFF, 0xFEE3})); }
|
||||
|
||||
// ہے: heh goal initial + yeh barree final.
|
||||
TEST(UrduShaping, HehGoalYehBarree) { EXPECT_EQ(shapeVisual({0x06C1, 0x06D2}), (CP{0xFBAF, 0xFBA8})); }
|
||||
|
||||
/* ── Sindhi / Pashto / Kurdish samples ───────────────────────────────── */
|
||||
|
||||
// Sindhi ٻار: beeh (U+067B) initial form from Presentation Forms-A.
|
||||
TEST(SindhiShaping, BeehInitial) { EXPECT_EQ(shapeVisual({0x067B, 0x0627, 0x0631}), (CP{0xFEAD, 0xFE8E, 0xFB54})); }
|
||||
|
||||
// Pashto ښه: seen-with-dots (U+069A) has a joining type but NO presentation
|
||||
// forms — it keeps its base codepoint while its neighbour still takes the
|
||||
// correct joined form.
|
||||
TEST(PashtoShaping, LetterWithoutPresentationFormsFallsBack) {
|
||||
EXPECT_EQ(shapeVisual({0x069A, 0x0647}), (CP{0xFEEA, 0x069A}));
|
||||
}
|
||||
|
||||
// Pashto کور: keheh initial, waw final, reh isolated.
|
||||
TEST(PashtoShaping, KehehWord) { EXPECT_EQ(shapeVisual({0x06A9, 0x0648, 0x0631}), (CP{0xFEAD, 0xFEEE, 0xFB90})); }
|
||||
|
||||
// Kurdish ڕۆژ: all right-joining; ڕ (U+0695) has no presentation forms and
|
||||
// stays as its base codepoint, ۆ and ژ take Presentation Forms-A isolated.
|
||||
TEST(KurdishShaping, RightJoiningLetters) {
|
||||
EXPECT_EQ(shapeVisual({0x0695, 0x06C6, 0x0698}), (CP{0xFB8A, 0xFBD9, 0x0695}));
|
||||
}
|
||||
|
||||
/* ── ZWJ / ZWNJ joining formatters ───────────────────────────────────── */
|
||||
|
||||
// ZWNJ blocks joining across it but leaves the outer sides to normal
|
||||
// contextual rules (Farsi morphology, e.g. میخواهم). The formatter itself
|
||||
// must be filtered from the output. Here meem joins into yeh (initial +
|
||||
// final) while the ZWNJ keeps yeh from connecting to khah.
|
||||
TEST(JoinerShaping, ZwnjBreaksJoin) {
|
||||
// میخ: trailing khah has no forward partner → isolated.
|
||||
EXPECT_EQ(shapeVisual({0x0645, 0x06CC, 0x200C, 0x062E}), (CP{0xFEA5, 0xFBFD, 0xFEE3}));
|
||||
// میخو: waw follows khah → khah initial, waw final.
|
||||
EXPECT_EQ(shapeVisual({0x0645, 0x06CC, 0x200C, 0x062E, 0x0648}), (CP{0xFEEE, 0xFEA7, 0xFBFD, 0xFEE3}));
|
||||
}
|
||||
|
||||
// ZWJ forces a join where none would occur: a lone beh followed by ZWJ takes
|
||||
// initial form; preceded by ZWJ it takes final form.
|
||||
TEST(JoinerShaping, ZwjForcesJoin) {
|
||||
EXPECT_EQ(shapeVisual({0x0628, 0x200D}), (CP{0xFE91}));
|
||||
EXPECT_EQ(shapeVisual({0x200D, 0x0628}), (CP{0xFE90}));
|
||||
}
|
||||
|
||||
/* ── Mixed-direction text ────────────────────────────────────────────── */
|
||||
|
||||
// كتاب abc 123 — RTL paragraph: the Arabic (shaped) ends up rightmost;
|
||||
// "abc 123" resolves to a single LTR run (rule W7 turns the European
|
||||
// numerals L after the strong L of "abc") and is placed as one block to
|
||||
// its left, keeping internal left-to-right order.
|
||||
TEST(MixedDirection, ArabicLatinNumerals) {
|
||||
EXPECT_EQ(shapeVisual({0x0643, 0x062A, 0x0627, 0x0628, ' ', 'a', 'b', 'c', ' ', '1', '2', '3'}),
|
||||
(CP{'a', 'b', 'c', ' ', '1', '2', '3', ' ', 0xFE8F, 0xFE8E, 0xFE98, 0xFEDB}));
|
||||
}
|
||||
|
||||
// كتاب ١٢٣ — Arabic-Indic digits keep logical order (leftmost run reads
|
||||
// ١٢٣, not reversed).
|
||||
TEST(MixedDirection, ArabicIndicNumerals) {
|
||||
EXPECT_EQ(shapeVisual({0x0643, 0x062A, 0x0627, 0x0628, ' ', 0x0661, 0x0662, 0x0663}),
|
||||
(CP{0x0661, 0x0662, 0x0663, ' ', 0xFE8F, 0xFE8E, 0xFE98, 0xFEDB}));
|
||||
}
|
||||
|
||||
// Watch-item regression probe for the "random spaces" report from #2398
|
||||
// testing: spaces must be neither duplicated nor dropped by the pipeline.
|
||||
TEST(MixedDirection, SpaceCountPreserved) {
|
||||
const CP visual = shapeVisual({0x0643, 0x062A, 0x0627, 0x0628, ' ', 0x0642, 0x0644, 0x0645, ' ', 'o', 'k'});
|
||||
int spaces = 0;
|
||||
for (const uint32_t cp : visual) spaces += (cp == ' ');
|
||||
EXPECT_EQ(spaces, 2);
|
||||
EXPECT_EQ(visual.size(), 11u); // 9 letters + 2 spaces, nothing absorbed or invented
|
||||
}
|
||||
|
||||
/* ── Regression: existing behaviour unchanged ────────────────────────── */
|
||||
|
||||
// Hebrew reorders but never shapes.
|
||||
TEST(Regression, HebrewUntouchedByShaper) {
|
||||
EXPECT_EQ(shapeVisual({0x05E9, 0x05DC, 0x05D5, 0x05DD}), (CP{0x05DD, 0x05D5, 0x05DC, 0x05E9}));
|
||||
}
|
||||
|
||||
// Pure Latin text passes through unchanged.
|
||||
TEST(Regression, LatinPassthrough) { EXPECT_EQ(shapeVisual({'h', 'e', 'l', 'l', 'o'}), (CP{'h', 'e', 'l', 'l', 'o'})); }
|
||||
|
||||
/* ── isTransparentMark ───────────────────────────────────────────────── */
|
||||
|
||||
TEST(TransparentMark, RtlMarksAreTransparent) {
|
||||
EXPECT_TRUE(BidiUtils::isTransparentMark(0x05B0)); // Hebrew sheva
|
||||
EXPECT_TRUE(BidiUtils::isTransparentMark(0x0591)); // Hebrew accent etnahta
|
||||
EXPECT_TRUE(BidiUtils::isTransparentMark(0x064E)); // Arabic fatha
|
||||
EXPECT_TRUE(BidiUtils::isTransparentMark(0x0651)); // Arabic shadda
|
||||
EXPECT_TRUE(BidiUtils::isTransparentMark(0x0670)); // superscript alef
|
||||
EXPECT_TRUE(BidiUtils::isTransparentMark(0x06D6)); // Quranic annotation
|
||||
}
|
||||
|
||||
TEST(TransparentMark, LettersAndLatinMarksAreNot) {
|
||||
EXPECT_FALSE(BidiUtils::isTransparentMark(0x0300)); // Latin combining grave — different path
|
||||
EXPECT_FALSE(BidiUtils::isTransparentMark(0x0628)); // Arabic beh
|
||||
EXPECT_FALSE(BidiUtils::isTransparentMark(0x05D0)); // Hebrew alef
|
||||
EXPECT_FALSE(BidiUtils::isTransparentMark(0x0661)); // Arabic-Indic digit
|
||||
EXPECT_FALSE(BidiUtils::isTransparentMark('a'));
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
// Host-test stub for lib/Logging/Logging.h, which depends on Arduino's
|
||||
// HardwareSerial and cannot compile on the host. Logging is a no-op here.
|
||||
|
||||
#define LOG_ERR(origin, format, ...)
|
||||
#define LOG_INF(origin, format, ...)
|
||||
#define LOG_DBG(origin, format, ...)
|
||||
Reference in New Issue
Block a user