Kaydet (Commit) 8dc05739 authored tarafından Caolán McNamara's avatar Caolán McNamara

Exempler->Exemplar

Change-Id: Id7e67d7e7bd4be6600a296a846512e9076c9df23
üst 0c6a5d99
......@@ -446,7 +446,7 @@ sal_Int16 SAL_CALL unicode::getScriptClassFromUScriptCode(UScriptCode eScript)
return nRet;
}
OString SAL_CALL unicode::getExemplerLanguageForUScriptCode(UScriptCode eScript)
OString SAL_CALL unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
{
OString sRet;
switch (eScript)
......
......@@ -53,7 +53,7 @@ public:
static sal_Int16 SAL_CALL getScriptClassFromUScriptCode(UScriptCode eScript);
//Return a language that can be written in a given ISO 15924 script code
static OString SAL_CALL getExemplerLanguageForUScriptCode(UScriptCode eScript);
static OString SAL_CALL getExemplarLanguageForUScriptCode(UScriptCode eScript);
};
#endif
......
......@@ -900,11 +900,11 @@ namespace
return bIsImpossible;
}
LanguageTag getExemplerLangTagForCodePoint(sal_uInt32 currentChar)
LanguageTag getExemplarLangTagForCodePoint(sal_uInt32 currentChar)
{
int32_t script = u_getIntPropertyValue(currentChar, UCHAR_SCRIPT);
UScriptCode eScript = static_cast<UScriptCode>(script);
OStringBuffer aBuf(unicode::getExemplerLanguageForUScriptCode(eScript));
OStringBuffer aBuf(unicode::getExemplarLanguageForUScriptCode(eScript));
const char* pScriptCode = uscript_getShortName(eScript);
if (pScriptCode)
aBuf.append('-').append(pScriptCode);
......@@ -1014,7 +1014,7 @@ bool PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
//#i105784#/rhbz#527719 improve selection of fallback font
if (aLangAttrib.isEmpty())
{
aLangTag = getExemplerLangTagForCodePoint(nCode);
aLangTag = getExemplarLangTagForCodePoint(nCode);
aLangAttrib = mapToFontConfigLangTag(aLangTag);
}
}
......@@ -1144,7 +1144,7 @@ bool PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
//scripts to default to a given language.
for (sal_Int32 i = 0; i < nRemainingLen; ++i)
{
LanguageTag aOurTag = getExemplerLangTagForCodePoint(pRemainingCodes[i]);
LanguageTag aOurTag = getExemplarLangTagForCodePoint(pRemainingCodes[i]);
OString sTag = OUStringToOString(aOurTag.getBcp47(), RTL_TEXTENCODING_UTF8);
if (m_aPreviousLangSupportRequests.find(sTag) != m_aPreviousLangSupportRequests.end())
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment