Scientific Word/Workplace ⇒ Translation of Identifiers to other Language
Translation of Identifiers to other Language
Hi,
is it possible to translate theorem, definition, lemma, ... strings like to Turkish in SW? For example I want to change "Definition" to "Tanım". If it is possible could you help?
is it possible to translate theorem, definition, lemma, ... strings like to Turkish in SW? For example I want to change "Definition" to "Tanım". If it is possible could you help?
NEW: TikZ book now 40% off at Amazon.com for a short time.
Translation of Identifiers to other Language
I used babel package and I did some changes in preamble for example I replaced with
Here is my document code.
I get the output as in the attached image which does not seem properly.
Code: Select all
\newtheorem{definition}[theorem]{Definition}
Code: Select all
\newtheorem{definition}[theorem]{Tanım}
Code: Select all
\documentclass{article}%
\usepackage[turkish]{babel}%
\usepackage{amsmath}%
\setcounter{MaxMatrixCols}{30}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{graphicx}
%BeginMSIPreambleData
\providecommand{\U}[1]{\protect\rule{.1in}{.1in}}
%EndMSIPreambleData
\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Sonuç}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Tanım}
\newtheorem{example}[theorem]{Örnek}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\begin{document}
\begin{theorem}
this is theorem
\begin{definition}
this is definition
\begin{example}
this is ex.
\begin{corollary}
dsfsdf
\end{corollary}
\end{example}
\end{definition}
\end{theorem}
\end{document}
- Attachments
-
- identifiers-turkish.jpg (17.88 KiB) Viewed 31758 times
Last edited by localghost on Sat Nov 24, 2012 1:29 pm, edited 1 time in total.
Translation of Identifiers to other Language
Try adding
Regards
\usepackage[T1]{fontenc}
to your preamble.Regards
site moderator & package author
Re: Translation of Identifiers to other Language
Thanks for your reply cgnieder
But no luck. I get same output.
But no luck. I get same output.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Translation of Identifiers to other Language
In addition to the correct font encoding (by fontenc) you need a corresponding input encoding e.g. by selinput. Add these lines to the document preamble.
Thorsten
Code: Select all
\usepackage{selinput}
\SelectInputMappings{ % Semi-automatic determination
ccedilla={ç}, % of input encoding
odieresis={ö}, % by a list of selected glyphs
scedilla={ş} % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Translation of Identifiers to other Language
Sorry, I suggested the wrong package (although »fontenc« definitely doesn't hurt). You should add
where
Regards
PS: or go with Thorsten's suggestion
Code: Select all
\usepackage[<encoding>]{inputenc}
<encoding>
should be the suiting package option according to the input encoding of your file. For me it is utf8
.Regards
PS: or go with Thorsten's suggestion

site moderator & package author
Translation of Identifiers to other Language
As I know right font encoding is iso-8859-9 (latin5) for Turkish. I tried
but it does not work. Also I tried it with Thorsten's suggestion but I got the following error
Code: Select all
\usepackage[latin5]{inputenc}
Code: Select all
Package babel Warning: No hyphenation patterns were loaded for
(babel) the language `Turkish'
(babel) I will use the patterns loaded for \language=0 instead.
! LaTeX Error: File `selinput.sty' not found.
Translation of Identifiers to other Language
Not the font encoding is important here (I believe) but the input encoding of your editor. You should check with which encoding your files are saved. The one of »inputenc« should match that.omer21 wrote:As i know right font encoding is iso-8859-9 (latin5) for turkish.
I triedbut it does not work.Code: Select all
\usepackage[latin5]{inputenc}
Regards
site moderator & package author
Translation of Identifiers to other Language
When latin5 >>inputenc<< is in the preamble, i save document with turkish character set. Similarly with utf8 inputenc i save with UT8 character set. In both cases when i preview pdf it does not seem properly.cgnieder wrote: Not the font encoding is important here (I believe) but the input encoding of your editor. You should check with which encoding your files are saved. The one of »inputenc« should match that.
Regards
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Translation of Identifiers to other Language
This is not part of the error, just a warning. You have to activate the hyphenation patterns for your language. I can't tell you how to do that in SW.omer21 wrote:[…] Also i tried it with Thorsten's suggestion but i got the following errorCode: Select all
Package babel Warning: No hyphenation patterns were loaded for (babel) the language `Turkish' (babel) I will use the patterns loaded for \language=0 instead.
Simply install the package by the package manager of SW (if there is one). It is part of the oberdiek bundle.omer21 wrote:Code: Select all
! LaTeX Error: File `selinput.sty' not found.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10