diff options
Diffstat (limited to 'Master/texmf-dist/bibtex/bst/persian-bib/ieeetr-fa.bst')
-rw-r--r-- | Master/texmf-dist/bibtex/bst/persian-bib/ieeetr-fa.bst | 219 |
1 files changed, 164 insertions, 55 deletions
diff --git a/Master/texmf-dist/bibtex/bst/persian-bib/ieeetr-fa.bst b/Master/texmf-dist/bibtex/bst/persian-bib/ieeetr-fa.bst index d5cee901dd3..e1c1cbe6f8f 100644 --- a/Master/texmf-dist/bibtex/bst/persian-bib/ieeetr-fa.bst +++ b/Master/texmf-dist/bibtex/bst/persian-bib/ieeetr-fa.bst @@ -3,12 +3,12 @@ %% %% by: Mahmood Amintoosi and Mostafa Vahedi, m.amintoosi@gmail.com %% For XePersian, a Persian Typsetting Package in XeTeX -%% 2010/01/15 %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either this version %% of this license or (at your option) any later version. %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% Original Copyright ENTRY @@ -22,7 +22,7 @@ ENTRY institution journal key -language + language month note number @@ -32,7 +32,7 @@ language school series title -translator + translator type volume year @@ -42,16 +42,13 @@ translator INTEGERS { output.state before.all mid.sentence after.quote after.sentence after.quoted.block after.block } -STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number - bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis - bbl.translator}% bbl.formatnames} FUNCTION {is.print.banners.to.terminal} { #1 } %%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% FILE VERSION AND BANNER %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%% -FUNCTION{bst.file.version} { "0.4" } -FUNCTION{bst.file.date} { "2010/01/15" } +FUNCTION{bst.file.version} { "0.6" } +FUNCTION{bst.file.date} { "2011/07/01" } FUNCTION{bst.file.website} { "http://www.parsilatex.com" } FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" } @@ -62,7 +59,7 @@ FUNCTION {banner.message} top$ "-- This is a BibTeX style for XePersian: " bst.file.website * %top$ - %"-- See the " quote$ * "bibtex-fa_userguide.pdf" * quote$ * " manual for usage information." * + %"-- See the " quote$ * "Persian-bib-userguide.pdf" * quote$ * " manual for usage information." * top$ } { skip$ } @@ -92,48 +89,152 @@ FUNCTION {fa.isPersianLanguage} if$ } -FUNCTION {keywords.fa} + % Here are the language-specific definitions for explicit words. + % Each function has a name bbl.xxx where xxx is the English word. + % The languages selected here is ENGLISH and Farsi +FUNCTION {bbl.and} +{ + fa.isPersianLanguage + {" و "} + {" and "} + if$ +} + +FUNCTION {bbl.editors} +{ +fa.isPersianLanguage + { " ویراستاران "} + {" eds. "} +if$ +} + +FUNCTION {bbl.editor} +{ +fa.isPersianLanguage + { " ویراستار "} + {" ed. " } +if$ +} + +FUNCTION {bbl.edby} +{ +fa.isPersianLanguage + { " ویراستهی "} + { " edited by " } +if$ +} + +FUNCTION {bbl.edition} +{ +fa.isPersianLanguage + {" ویرایش "} + {" ed. " } +if$ +} + +FUNCTION {bbl.volume} +{ +fa.isPersianLanguage + {" جلد "} + { " vol."} +if$ +} + +FUNCTION {bbl.of} +{ +fa.isPersianLanguage + { " از "} + { " of " } +if$ +} + +FUNCTION {bbl.number} +{ +fa.isPersianLanguage + {" شماره " } + { " no." } +if$ +} + +FUNCTION {bbl.nr} +{ +fa.isPersianLanguage + {" شماره "} + { " no." } +if$ +} + +FUNCTION {bbl.in} +{ +fa.isPersianLanguage + {" در "} + { " in " } +if$ +} + +FUNCTION {bbl.pages} +{ +fa.isPersianLanguage + {" صفحات "} + { " pp." } +if$ +} + +FUNCTION {bbl.page} { - " و " 'bbl.and := - " و دیگران" 'bbl.etal := - " ویراستاران " 'bbl.editors := - " ویراستهی " 'bbl.editor := - " ویرایش " 'bbl.edition := - " جلد " 'bbl.volume := - " از " 'bbl.of := - " شماره " 'bbl.number := - " در " 'bbl.in := - " صفحات " 'bbl.pages := - " ص." 'bbl.page := - " فصل " 'bbl.chapter := - " سری " 'bbl.series := - " گزارش طرح تحقیقی" 'bbl.techrep := - " پایاننامه کارشناسیارشد" 'bbl.mthesis := - " پایاننامه دکترا" 'bbl.phdthesis := - " ترجمهی " 'bbl.translator := -} - -FUNCTION {keywords.en} +fa.isPersianLanguage + {" ص." } + { " p." } +if$ +} + +FUNCTION {bbl.chapter} { - " and " 'bbl.and := - " et~al." 'bbl.etal := - " Eds." 'bbl.editors := - " Ed." 'bbl.editor := - " Ed." 'bbl.edition := - " Vol." 'bbl.volume := - " of " 'bbl.of := - " No." 'bbl.number := - " In " 'bbl.in := - " pp." 'bbl.pages := - " p." 'bbl.page := - " Ch." 'bbl.chapter := - " Ser." 'bbl.series := - " Tech. Rep." 'bbl.techrep := - " Master's thesis" 'bbl.mthesis := - " Ph.D. disseration" 'bbl.phdthesis := - " Translator " 'bbl.translator := +fa.isPersianLanguage + { " فصل " } + {" chap." } +if$ } +FUNCTION {bbl.techrep} +{ +fa.isPersianLanguage + { " گزارش طرح تحقیقی"} + { " Tech. Rep." } +if$ +} + +FUNCTION {bbl.mthesis} +{ +fa.isPersianLanguage + {" پایاننامه کارشناسیارشد"} + { " Master's thesis" } +if$ +} + +FUNCTION {bbl.phdthesis} +{ +fa.isPersianLanguage + {" پایاننامه دکترا" } + { " Ph.D. thesis" } +if$ +} + +FUNCTION {bbl.etal} +{ + fa.isPersianLanguage + {" و دیگران"} + {" et~al."} + if$ +} + +FUNCTION {bbl.translator} +{ + fa.isPersianLanguage + {"ترجمهی "} + {"Translator "} + if$ +} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% End of Persian Functions %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -197,15 +298,17 @@ FUNCTION {output.check} } FUNCTION {output.bibitem} -{ newline$ +{ + newline$ fa.isPersianLanguage - { keywords.fa - "\Persian" write$ - newline$ } - { keywords.en - "\Latin" write$ - newline$ } + { skip$ } + { + "\begin{LTRbibitems}" write$ + newline$ + "\resetlatinfont " write$ + } if$ + newline$ "\bibitem{" write$ cite$ write$ "}" write$ @@ -225,6 +328,13 @@ FUNCTION {fin.entry} if$ write$ newline$ + fa.isPersianLanguage + {skip$} + { newline$ + "\end{LTRbibitems}" write$ + newline$ + } + if$ } FUNCTION {new.block} @@ -1141,7 +1251,6 @@ ITERATE {call.type$} FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ - "\Persian" write$ newline$ } EXECUTE {end.bib} |