Scientific Word/Workplace ⇒ Translation of Identifiers to other Language
Translation of Identifiers to other Language
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.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Translation of Identifiers to other Language
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
- Attachments
-
- identifiers-turkish.jpg (17.88 KiB) Viewed 32622 times
Translation of Identifiers to other Language
\usepackage[T1]{fontenc}
to your preamble.Regards
Re: Translation of Identifiers to other Language
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
Code: Select all
\usepackage{selinput}\SelectInputMappings{ % Semi-automatic determinationccedilla={ç}, % of input encodingodieresis={ö}, % by a list of selected glyphsscedilla={ş} % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt}
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Translation of Identifiers to other Language
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

Translation of Identifiers to other Language
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
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.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10