summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst')
-rw-r--r--Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst237
1 files changed, 171 insertions, 66 deletions
diff --git a/Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst b/Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst
index 75794270c5e..438f78b36d7 100644
--- a/Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst
+++ b/Master/texmf-dist/bibtex/bst/persian-bib/unsrt-fa.bst
@@ -3,7 +3,6 @@
%%
%% 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.
@@ -11,8 +10,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Original Copyright
-%%%%%%%%%%% History:
-
ENTRY
{ address
author
@@ -43,16 +40,13 @@ translator
{ label }
INTEGERS { output.state before.all mid.sentence after.sentence 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 }
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.5" }
+FUNCTION{bst.file.date} { "2011/07/01" }
FUNCTION{bst.file.website} { "http://www.parsilatex.com" }
FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
@@ -63,7 +57,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$ }
@@ -93,46 +87,151 @@ 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}
+{
+fa.isPersianLanguage
+ {" ص." }
+ { " p." }
+if$
+}
+
+FUNCTION {bbl.chapter}
+{
+fa.isPersianLanguage
+ { " فصل " }
+ {" chap." }
+if$
+}
+
+FUNCTION {bbl.techrep}
+{
+fa.isPersianLanguage
+ { " گزارش طرح تحقیقی"}
+ { " Tech. Rep." }
+if$
+}
+
+FUNCTION {bbl.mthesis}
{
- " و " '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
+ {" پایان‌نامه کارشناسی‌ارشد"}
+ { " Master's thesis" }
+if$
+}
+
+FUNCTION {bbl.phdthesis}
{
- " 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
+ {" پایان‌نامه دکترا" }
+ { " Ph.D. thesis" }
+if$
+}
+
+FUNCTION {bbl.etal}
+{
+ fa.isPersianLanguage
+ {" و دیگران"}
+ {" et~al."}
+ if$
+}
+
+FUNCTION {bbl.translator}
+{
+ fa.isPersianLanguage
+ {"ترجمه‌ی "}
+ {"Translator "}
+ if$
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -187,13 +286,14 @@ FUNCTION {output.check}
FUNCTION {output.bibitem}
{ 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$
@@ -206,6 +306,13 @@ FUNCTION {fin.entry}
{ add.period$
write$
newline$
+ fa.isPersianLanguage
+ {skip$}
+ { newline$
+ "\end{LTRbibitems}" write$
+ newline$
+ }
+ if$
}
FUNCTION {new.block}
@@ -283,6 +390,7 @@ FUNCTION {field.or.null}
if$
}
+
FUNCTION {emphasize}
{ duplicate$ empty$
{ pop$ "" }
@@ -290,6 +398,7 @@ FUNCTION {emphasize}
if$
}
+
INTEGERS { nameptr namesleft numnames }
FUNCTION {format.names}
@@ -439,8 +548,8 @@ FUNCTION {format.bvolume}
{ "" }
{ bbl.volume volume tie.or.space.connect
series empty$
-'skip$
-{ bbl.of * series emphasize * }
+ 'skip$
+ { bbl.of * series emphasize * }
if$
"volume and number" number either.or.check
}
@@ -523,18 +632,18 @@ FUNCTION {format.vol.num.pages}
number empty$
'skip$
{ "(" number * ")" * *
- volume empty$
-{ "there's a number but no volume in " cite$ * warning$ }
-'skip$
- if$
+ volume empty$
+ { "there's a number but no volume in " cite$ * warning$ }
+ 'skip$
+ if$
}
if$
pages empty$
'skip$
{ duplicate$ empty$
-{ pop$ format.pages }
-{ ":" * pages n.dashify * }
- if$
+ { pop$ format.pages }
+ { ":" * pages n.dashify * }
+ if$
}
if$
}
@@ -1109,12 +1218,8 @@ ITERATE {call.type$}
FUNCTION {end.bib}
{ newline$
"\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
}
EXECUTE {end.bib}
EXECUTE{completed.message}
-%%
-%% by Mahmood Amintoosi
-%%
%% End of file `unsrt-fa.bst'.