Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0b9298bf
Kaydet (Commit)
0b9298bf
authored
Kas 06, 2016
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Extend joining groups with new Unicode additions
Change-Id: I14d65d59794fdf9ed4dce05a8f734d9400f85927
üst
979029ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
11 deletions
+45
-11
porlay.cxx
sw/source/core/text/porlay.cxx
+45
-11
No files found.
sw/source/core/text/porlay.cxx
Dosyayı görüntüle @
0b9298bf
...
...
@@ -62,25 +62,59 @@ using namespace i18n::ScriptType;
#define IS_JOINING_GROUP(c, g) ( u_getIntPropertyValue( (c), UCHAR_JOINING_GROUP ) == U_JG_##g )
#define isAinChar(c) IS_JOINING_GROUP((c), AIN)
#define isAlefChar(c) IS_JOINING_GROUP((c), ALEF)
#define isBehChar(c) IS_JOINING_GROUP((c), BEH)
#define isDalChar(c) IS_JOINING_GROUP((c), DAL)
#define isFehChar(c)
IS_JOINING_GROUP((c), FEH
)
#define isFehChar(c)
(IS_JOINING_GROUP((c), FEH) || IS_JOINING_GROUP((c), AFRICAN_FEH)
)
#define isGafChar(c) IS_JOINING_GROUP((c), GAF)
#define isHehChar(c) IS_JOINING_GROUP((c), HEH)
#define isKafChar(c) IS_JOINING_GROUP((c), KAF)
#define isLamChar(c) IS_JOINING_GROUP((c), LAM)
#define isQafChar(c)
IS_JOINING_GROUP((c), QAF
)
#define isQafChar(c)
(IS_JOINING_GROUP((c), QAF) || IS_JOINING_GROUP((c), AFRICAN_QAF)
)
#define isRehChar(c) IS_JOINING_GROUP((c), REH)
#define isTahChar(c) IS_JOINING_GROUP((c), TAH)
#define isTehMarbutaChar(c) IS_JOINING_GROUP((c), TEH_MARBUTA)
#define isWawChar(c) IS_JOINING_GROUP((c), WAW)
#if (U_ICU_VERSION_MAJOR_NUM > 4) || (U_ICU_VERSION_MAJOR_NUM == 4 && U_ICU_VERSION_MINOR_NUM >= 4)
#define isYehChar(c) (IS_JOINING_GROUP((c), YEH) || IS_JOINING_GROUP((c), FARSI_YEH))
#else
#define isYehChar(c) IS_JOINING_GROUP((c), YEH)
#endif
#define isSeenOrSadChar(c) (IS_JOINING_GROUP((c), SAD) || IS_JOINING_GROUP((c), SEEN))
// Beh and charters that behave like Beh in medial form.
bool
isBehChar
(
sal_Unicode
cCh
)
{
bool
bRet
=
false
;
switch
(
u_getIntPropertyValue
(
cCh
,
UCHAR_JOINING_GROUP
))
{
case
U_JG_BEH
:
case
U_JG_NOON
:
case
U_JG_AFRICAN_NOON
:
case
U_JG_NYA
:
case
U_JG_YEH
:
case
U_JG_FARSI_YEH
:
case
U_JG_BURUSHASKI_YEH_BARREE
:
bRet
=
true
;
default:
bRet
=
false
;
}
return
bRet
;
}
// Yeh and charters that behave like Yeh in final form.
bool
isYehChar
(
sal_Unicode
cCh
)
{
bool
bRet
=
false
;
switch
(
u_getIntPropertyValue
(
cCh
,
UCHAR_JOINING_GROUP
))
{
case
U_JG_YEH
:
case
U_JG_FARSI_YEH
:
case
U_JG_YEH_BARREE
:
case
U_JG_BURUSHASKI_YEH_BARREE
:
case
U_JG_YEH_WITH_TAIL
:
bRet
=
true
;
default:
bRet
=
false
;
}
return
bRet
;
}
bool
isTransparentChar
(
sal_Unicode
cCh
)
{
return
u_getIntPropertyValue
(
cCh
,
UCHAR_JOINING_TYPE
)
==
U_JT_TRANSPARENT
;
...
...
@@ -1012,12 +1046,12 @@ void SwScriptInfo::InitScriptInfo( const SwTextNode& rNode, bool bRTL )
}
// 5. Priority:
// before medial Beh
// before medial Beh
-like
if
(
nPriorityLevel
>=
4
&&
nIdx
>
0
&&
nIdx
<
nWordLen
-
1
)
{
if
(
isBehChar
(
cCh
)
)
// Beh
if
(
isBehChar
(
cCh
)
)
{
// check if next character is Reh
, Yeh or Alef Maksura
// check if next character is Reh
or Yeh-like
sal_Unicode
cNextCh
=
rWord
[
nIdx
+
1
];
if
(
isRehChar
(
cNextCh
)
||
isYehChar
(
cNextCh
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment