summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex/lbx/catalan.lbx
blob: 8b6675d12b0c72dc13ac14f919dc27cba717ea1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
\ProvidesFile{catalan.lbx}
[\abx@lbxid]

\DeclareRedundantLanguages{catalan}{catalan}

\DeclareBibliographyExtras{%
  \protected\def\bibrangedash{\addnbthinspace -\addnbthinspace}%
  \let\finalandcomma=\empty
  \let\finalandsemicolon=\empty
  \def\mkbibordinal{\mkbibmascord}%
  \protected\def\mkbibmascord#1{%
    \begingroup
    \@tempcnta0#1\relax\number\@tempcnta
    \ifcase\@tempcnta\or r\or n\or r\or t\else\`e\fi		
    \endgroup}%
  \protected\def\mkbibfemord#1{\stripzeros{#1}a}%
  \protected\def\mkbibdatelong#1#2#3{% maintainers: check me
    \iffieldundef{#3}
      {}
      {\stripzeros{\thefield{#3}}%
       \iffieldundef{#2}
         {}
         {\space%
          \ifthenelse{\thefield{#2}=4}
            {d'}
            {\ifthenelse{\thefield{#2}=8}
               {d'}
               {\ifthenelse{\thefield{#2}=10}
                  {d'}
                  {de\nobreakspace}}}}}%
    \iffieldundef{#2}
      {}
      {\mkbibmonth{\thefield{#2}}%
       \iffieldundef{#1}
         {}
         {\space de\nobreakspace}}%
    \iffieldundef{#1}
      {}
      {\iffieldbibstring{#1}
         {\bibstring{\thefield{#1}}}
         {\dateeraprintpre{#1}\thefield{#1}}}}%
  \protected\def\mkbibdateshort#1#2#3{% maintainers: check me
    \iffieldundef{#3}
      {}
      {\mkdayzeros{\thefield{#3}}%
       \iffieldundef{#2}{}{\mbox{-}}}%
    \iffieldundef{#2}
      {}
      {\mkmonthzeros{\thefield{#2}}%
       \iffieldundef{#1}{}{\mbox{-}}}%
    \iffieldbibstring{#1}
      {\bibstring{\thefield{#1}}}
      {\dateeraprintpre{#1}\thefield{#1}}}%
  \savecommand\lbx@initnamehook
  \savecommand\lbx@inittitlehook
  \savecommand\mkdaterangeterse
  \savecommand\mkbibordedition
  \savecommand\mkbibordseries
  \let\lbx@initnamehook=\lbx@ca@smartof
  \let\lbx@inittitlehook=\lbx@ca@smartof
  \protected\def\mkdaterangeterse{%
    \BibliographyWarning{%
      Date format 'terse' not applicable to\MessageBreak
      Catalan dates. Using format 'short' instead}%
    \mkdaterangefull{short}}%
  \def\mkbibordedition{\mkbibfemord}%
  \def\mkbibordseries{\mkbibfemord}%
  \expandafter\protected\expandafter\def\csname mkbibtime24h\endcsname#1#2#3#4{%
      \iffieldundef{#1}{}
        {\printtext{\mktimezeros{\thefield{#1}}}\setunit{\bibtimesep}}%
      \iffieldundef{#2}{}
        {\printtext{\mktimezeros{\thefield{#2}}}\setunit{\bibtimesep}}%
      \iffieldundef{#3}{}
        {\printtext{\mktimezeros{\thefield{#3}}}}%
      \setunit{}%
      \iffieldundef{#4}{}
        {\bibtimezonesep
         \mkbibtimezone{\thefield{#4}}}}%
  \expandafter\protected\expandafter\def\csname mkbibtime12h\endcsname#1#2#3#4{%
      \stripzeros{\mktimehh{\thefield{#1}}}\bibtimesep
      \forcezerosmdt{\thefield{#2}}%
      \iffieldundef{#3}{}
        {\bibtimesep
         \forcezeros{\thefield{#3}}}%
       \space
       \ifnumless{\thefield{#1}}{12}
         {\bibstring{am}}
         {\bibstring{pm}}%
      \iffieldundef{#4}{}
       {\space\bibtimezonesep
        \parentext{\mkbibtimezone{\thefield{#4}}}}}%
  \protected\def\mkbibseasondateshort#1#2{%
    \mkbibseason{\thefield{#2}}%
    \iffieldundef{#1}{}{\space}%
    \dateeraprintpre{#1}\mkyearzeros{\thefield{#1}}}%
  \protected\def\mkbibseasondatelong#1#2{%
    \mkbibseason{\thefield{#2}}%
    \iffieldundef{#1}{}{\space}%
    \dateeraprintpre{#1}\mkyearzeros{\thefield{#1}}}%
}

\UndeclareBibliographyExtras{%
  \restorecommand\lbx@initnamehook
  \restorecommand\lbx@inittitlehook
  \restorecommand\mkdaterangeterse
  \restorecommand\mkbibordedition
  \restorecommand\mkbibordseries
}

\DeclareBibliographyStrings{%
  bibliography     = {{Bibliografia}{Bibliografia}},
  references       = {{Refer\`encies}{Refer\`encies}},
  shorthands       = {{Llista d'abreviatures}{Abreviatures}},
  editor           = {{editor}{ed\adddot}},
  editors          = {{editors}{ed\adddot}},
  compiler         = {{compilador}{comp\adddot}},% Revisar
  compilers        = {{compiladors}{comp\adddot}},% Revisar
  redactor         = {{redactor}{red\adddot}},
  redactors        = {{redactors}{red\adddot}},
  reviser          = {{revisor}{rev\adddot}},
  revisers         = {{revisors}{rev\adddot}},
  founder          = {{fundador}{fund\adddot}},
  founders         = {{fundadors}{fund\adddot}},
  continuator      = {{continuador}{cont\adddot}},
  continuators     = {{continuadors}{cont\adddot}},
  collaborator     = {{co\l.laborador}{co\l.l\adddot}},% \l* -> catalan.ldf (babel)
  collaborators    = {{co\l.laboradors}{co\l.l\adddot}},
  translator       = {{traductor}{trad\adddot}},
  translators      = {{traductors}{trad\adddot}},
  commentator      = {{comentarista}{com\adddot}},
  commentators     = {{comentaristes}{com\adddot}},
  annotator        = {{anotador}{anot\adddot}},
  annotators       = {{anotadors}{anot\adddot}},
  commentary       = {{comentari}{com\adddot}},
  annotations      = {{notes}{n\adddot}},
  introduction     = {{introducci\'o}{intr\adddot}},
  foreword         = {{pr\`oleg}{pr\`ol\adddot}},
  afterword        = {{ep{\'\i}leg}{ep\adddot}},
  editortr         = {{editor i traductor}{ed\adddotspace i trad\adddot}},
  editorstr        = {{editors i traductors}{ed\adddotspace i trad\adddot}},
  editorco         = {{editor i comentarista}{ed\adddotspace i com\adddot}},
  editorsco        = {{editors i comentaristes}{ed\adddotspace i com\adddot}},
  editoran         = {{editor i anotador}{ed\adddotspace i anot\adddot}},
  editorsan        = {{editors i anotadors}{ed\adddotspace i anot\adddot}},
  editorin         = {{editor i autor de la introducci\'o}
                      {ed\adddotspace i aut\adddotspace de la intr\adddot}},
  editorsin        = {{editors i autors de la introducci\'o}
                      {ed\adddotspace i aut\adddotspace de la intr\adddot}},
  editorfo         = {{editor i autor del pr\`oleg}
                      {ed\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editorsfo        = {{editors i autors del pr\`oleg}
                      {ed\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editoraf         = {{editor i autor de l'ep{\'\i}leg} %
                      {ed\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorsaf        = {{editors i autors de l'ep{\'\i}leg} %
                      {ed\adddotspace i aut\adddotspace de l'ep\adddot}},
  editortrco       = {{editor, traductor i comentarista}
                      {ed.,\addabbrvspace trad\adddotspace i com\adddot}},
  editorstrco      = {{editors, traductors i comentaristes}
                      {ed.,\addabbrvspace trad\adddotspace i com\adddot}},
  editortran       = {{editor, traductor i anotador}
                      {ed.,\addabbrvspace trad\adddotspace i anot\adddot}},
  editorstran      = {{editors, traductors i anotadors}
                      {ed.,\addabbrvspace trad\adddotspace i anot\adddot}},
  editortrin       = {{editor, traductor i autor de la introducci\'o}
                      {ed.,\addabbrvspace trad\adddotspace i aut\adddotspace de la intr\adddot}},
  editorstrin      = {{editors, traductors i autors de la introducci\'o}
                      {ed.,\addabbrvspace trad\adddotspace i aut\adddotspace de la intr\adddot}},
  editortrfo       = {{editor, traductor i autor del pr\`oleg}
                      {ed.,\addabbrvspace trad\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editorstrfo      = {{editors, traductors i autors del pr\`oleg}
                      {ed.,\addabbrvspace trad\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editortraf       = {{editor, traductor i autor de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace trad\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorstraf      = {{editors, traductors i autors de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace trad\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorcoin       = {{editor, comentarista i autor de la introducci\'o}
                      {ed.,\addabbrvspace com\adddotspace i aut\adddotspace de la intr\adddot}},
  editorscoin      = {{editors, comentaristes i autors de la introducci\'o}
                      {ed.,\addabbrvspace com\adddotspace i aut\adddotspace de la intr\adddot}},
  editorcofo       = {{editor, comentarista i autor del pr\`oleg}
                      {ed.,\addabbrvspace com\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editorscofo      = {{editors, comentaristes i autors del pr\`oleg}
                      {ed.,\addabbrvspace com\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editorcoaf       = {{editor, comentarista i autor de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace com\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorscoaf      = {{editors, comentaristes i autors de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace com\adddotspace i aut\adddotspace de l'ep\adddot}},
  editoranin       = {{editor, anotador i autor de la introducci\'o}
                      {ed.,\addabbrvspace anot\adddotspace i aut\adddotspace de la intr\adddot}},
  editorsanin      = {{editors, anotadors i autors de la introducci\'o}
                      {ed.,\addabbrvspace anot\adddotspace i aut\adddotspace de la intr\adddot}},
  editoranfo       = {{editor, anotador i autor del pr\`oleg}
                      {ed.,\addabbrvspace anot\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editorsanfo      = {{editors, anotadors i autors del pr\`oleg}
                      {ed.,\addabbrvspace anot\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  editoranaf       = {{editor, anotador i autor de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace anot\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorsanaf      = {{editors, anotadors i autors de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace anot\adddotspace i aut\adddotspace de l'ep\adddot}},
  editortrcoin     = {{editor, traductor, comentarista i autor de la introducci\'o}
                      {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace i aut\adddotspace de la intr\adddot}},
  editorstrcoin    = {{editors, traductors, comentaristes i autors de la introducci\'o}
                      {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace i aut\adddotspace de la intr\adddot}},
  editortrcofo     = {{editor, traductor, comentarista i autor del pr\`oleg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace i aut\adddotspace del pr\`ol\adddot }},
  editorstrcofo    = {{editors, traductors, comentaristes i autors del pr\`oleg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace i aut\adddotspace del pr\`ol\adddot }},
  editortrcoaf     = {{editor, traductor, comentarista i autor de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorstrcoaf    = {{editors, traductors, comentaristes i autors de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace i aut\adddotspace de l'ep\adddot}},
  editortranin     = {{editor, traductor, anotador i autor de la introducci\'o}
                      {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de la intr\adddot}},
  editorstranin    = {{editors, traductors, anotadors i autors de la introducci\'o}
                      {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de la intr\adddot}},
  editortranfo     = {{editor, traductor, anotador i autor del pr\`oleg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de pr\`ol\adddot}},
  editorstranfo    = {{editors, traductors, anotadors i autors del pr\`oleg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de pr\`ol\adddot}},
  editortranaf     = {{editor, traductor, anotador i autor de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de l'ep\adddot}},
  editorstranaf    = {{editors, traductors, anotadors i autors de l'ep{\'\i}leg}
                      {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de l'ep\adddot}},
  translatorco     = {{traductor i comentarista}
                      {trad\adddotspace i com\adddot}},
  translatorsco    = {{traductors i comentaristes}
                     {trad\adddotspace i com\adddot}},
  translatoran     = {{traductor i anotador}
                      {trad\adddotspace i anot\adddot}},
  translatorsan    = {{traductors i anotadors}
                      {trad\adddotspace i anot\adddot}},
  translatorin     = {{traductor i autor de la introducci\'o}
                      {trad\adddotspace i aut\adddotspace de la intr\adddot}},
  translatorsin    = {{traductors i autors de la introducci\'o}
                      {trad\adddotspace i aut\adddotspace de la intr\adddot}},
  translatorfo     = {{traductor i autor del pr\`oleg}
                      {trad\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  translatorsfo    = {{traductors i autors del pr\`oleg}
                      {trad\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  translatoraf     = {{traductor i autor de l'ep{\'\i}leg}
                      {trad\adddotspace i aut\adddotspace de l'ep\adddot}},
  translatorsaf    = {{traductors i autors de l'ep{\'\i}leg}
                      {trad\adddotspace i aut\adddotspace de l'ep\adddot}},
  translatorcoin   = {{traductor, comentarista i autor de la introducci\'o}
                      {trad.,\addabbrvspace com\adddotspace i aut\adddotspace de la intr\adddotspace}},
  translatorscoin  = {{traductors, comentaristes i autors de la introducci\'o}
                      {trad.,\addabbrvspace com\adddotspace i aut\adddotspace de la intr\adddotspace}},
  translatorcofo   = {{traductor, comentarista i autor del pr\`oleg}
                      {trad.,\addabbrvspace com\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  translatorscofo  = {{traductors, comentaristes i autors del pr\`oleg}
                      {trad.,\addabbrvspace com\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  translatorcoaf   = {{traductor, comentarista i autor de l'ep{\'\i}leg}
                      {trad.,\addabbrvspace com\adddotspace i aut\adddotspace de l'ep\adddot}},
  translatorscoaf  = {{traductors, comentaristes i autors de l'ep{\'\i}leg}
                      {trad.,\addabbrvspace com\adddotspace i aut\adddotspace de l'ep\adddot}},
  translatoranin   = {{traductor, anotador i autor de la introducci\'o}
                      {trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de la intr\adddot}},
  translatorsanin  = {{traductors, anotadors i autors de la introducci\'o}
                      {trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de la intr\adddot}},
  translatoranfo   = {{traductor, anotador i autor del pr\`oleg}
                      {trad.,\addabbrvspace anot\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  translatorsanfo  = {{traductors, anotadors i autors del pr\`oleg}
                      {trad.,\addabbrvspace anot\adddotspace i aut\adddotspace del pr\`ol\adddot}},
  translatoranaf   = {{traductor, anotador i autor de l'ep{\'\i}leg}
                      {trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de l'ep\adddot}},
  translatorsanaf  = {{traductors, anotadors i autors de l'ep{\'\i}leg}
                      {trad.,\addabbrvspace anot\adddotspace i aut\adddotspace de l'ep\adddot}},
  byauthor         = {{per}{per}},
  byeditor         = {{edici\'o a cura \smartof}{ed\adddotspace\smartof}},
  bycompiler       = {{compilaci\'o a cura \smartof}{comp\adddotspace\smartof}},
  byredactor       = {{redacci\'o a cura \smartof}{red\adddotspace\smartof}},
  byreviser        = {{revisi\'o a cura \smartof}{rev\adddotspace\smartof}},
  byreviewer       = {{ressenya a cura \smartof}{ress\adddotspace\smartof}},
  byfounder        = {{fundat per}{fund\adddotspace per}},
  bycontinuator    = {{continuat per}{cont\adddotspace per}},
  bycollaborator   = {{amb la co\l.laboraci\'o \smartof}{amb la co\l.l\adddotspace\smartof}},
  bytranslator     = {{traducci\'o \lbx@fromlang\ a cura \smartof}{trad\adddotspace\lbx@fromlang\ \smartof}},
  bycommentator    = {{comentaris a cura \smartof}{com\adddotspace\smartof}},
  byannotator      = {{notes a cura \smartof}{n\adddotspace\smartof}},
  withcommentator  = {{amb comentaris a cura \smartof}{amb com\adddotspace\smartof}},
  withannotator    = {{amb notes a cura \smartof}{amb n\adddotspace\smartof}},
  withintroduction = {{amb la introducci\'o a cura \smartof}{amb la intr\adddotspace\smartof}},
  withforeword     = {{amb el pr\`oleg a cura \smartof}{amb el pr\`ol\adddotspace\smartof}},
  withafterword    = {{amb l'ep{\'\i}leg a cura \smartof}{amb l'ep\adddotspace\smartof}},
  byeditortr       = {{edici\'o i traducci\'o \lbx@fromlang\ a cura \smartof}%
                      {ed\adddotspace i trad\adddotspace\lbx@fromlang\ \smartof}},
  byeditorco       = {{edici\'o i comentaris a cura \smartof}%
                      {ed\adddotspace i com\adddotspace\smartof}},
  byeditoran       = {{edici\'o i notes a cura \smartof}%
                      {ed\adddotspace i n\adddotspace\smartof}},
  byeditorin       = {{edici\'o i introducci\'o a cura \smartof}%
                      {ed\adddotspace i intr\adddotspace\smartof}},
  byeditorfo       = {{edici\'o i pr\`oleg a cura \smartof}%
                      {ed\adddotspace i pr\`ol\adddotspace\smartof}},
  byeditoraf       = {{edici\'o i ep{\'\i}leg a cura \smartof}%
                      {ed\adddotspace i ep\adddotspace\smartof}},
  byeditortrco     = {{edici\'o, traducci\'o \lbx@fromlang\ i comentaris a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace\lbx@fromlang\ i com\adddotspace\smartof}},
  byeditortran     = {{edici\'o, traducci\'o \lbx@fromlang\ i notes a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace\lbx@fromlang\ i n\adddotspace\smartof}},
  byeditortrin     = {{edici\'o, traducci\'o \lbx@fromlang\ i introducci\'o a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace\lbx@fromlang\ i intr\adddotspace\smartof}},
  byeditortrfo     = {{edici\'o, traducci\'o \lbx@fromlang\ i pr\`oleg a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace\lbx@fromlang\ i pr\`ol\adddotspace\smartof}},
  byeditortraf     = {{edici\'o, traducci\'o \lbx@fromlang\ i ep{\'\i}leg a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace\lbx@fromlang\ i ep\adddotspace\smartof}},
  byeditorcoin     = {{edici\'o, comentaris i introducci\'o a cura \smartof}
                      {ed.,\addabbrvspace com\adddotspace i intr\adddotspace\smartof}},
  byeditorcofo     = {{edici\'o, comentaris i pr\`oleg a cura \smartof}
                      {ed.,\addabbrvspace com\adddotspace i pr\`ol\adddotspace\smartof}},
  byeditorcoaf     = {{edici\'o, comentaris i ep{\'\i}leg a cura \smartof}%
                      {ed.,\addabbrvspace com\adddotspace i ep\adddotspace\smartof}},
  byeditoranin     = {{edici\'o, notes i introducci\'o a cura \smartof}%
                      {ed.,\addabbrvspace n\adddotspace i intr\adddotspace\smartof}},
  byeditoranfo     = {{edici\'o, notes i pr\`oleg a cura \smartof}%
                      {ed.,\addabbrvspace n\adddotspace i pr\`ol\adddotspace\smartof}},
  byeditoranaf     = {{edici\'o, notes i ep{\'\i}leg a cura \smartof}%
                      {ed.,\addabbrvspace n\adddotspace i ep\adddotspace\smartof}},
  byeditortrcoin   = {{edici\'o, traducci\'o \lbx@fromlang, comentaris i introducci\'o a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace \lbx@fromlang, com\adddotspace i intr\adddotspace\smartof}},
  byeditortrcofo   = {{edici\'o, traducci\'o \lbx@fromlang, comentaris i pr\`oleg a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddotspace \lbx@fromlang, com\adddotspace i pr\`ol\adddotspace\smartof}},
  byeditortrcoaf   = {{edici\'o, traducci\'o \lbx@fromlang, comentaris i ep{\'\i}leg a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddot\ \lbx@fromlang, com\adddot\ i ep\adddot\ \smartof}},
  byeditortranin   = {{edici\'o, traducci\'o \lbx@fromlang, notes i introducci\'o a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddot\ \lbx@fromlang, n\adddot\ i intr\adddot\ \smartof}},
  byeditortranfo   = {{edici\'o, traducci\'o \lbx@fromlang, notes i pr\`oleg a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddot\ \lbx@fromlang, n\adddot\ i pr\`ol\adddot\ \smartof}},
  byeditortranaf   = {{edici\'o, traducci\'o \lbx@fromlang, notes i ep{\'\i}leg a cura \smartof}%
                      {ed.,\addabbrvspace trad\adddot\ \lbx@fromlang, n\adddot\ i ep\adddot\ \smartof}},
  bytranslatorco   = {{traducci\'o \lbx@fromlang\ i comentaris a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang\ i com\adddot\ \smartof}},
  bytranslatoran   = {{traducci\'o \lbx@fromlang\ i notes a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang\ i n\adddot\ \smartof}},
  bytranslatorin   = {{traducci\'o \lbx@fromlang\ i introducci\'o a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang\ i intr\adddot\ \smartof}},
  bytranslatorfo   = {{traducci\'o \lbx@fromlang\ i pr\`oleg a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang\ i pr\`ol\adddot\ \smartof}},
  bytranslatoraf   = {{traducci\'o \lbx@fromlang\ i ep{\'\i}leg a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang\ i ep\adddot\ \smartof}},
  bytranslatorcoin = {{traducci\'o \lbx@fromlang, comentaris i introducci\'o a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang, com\adddot\ i intr\adddot\ \smartof}},
  bytranslatorcofo = {{traducci\'o \lbx@fromlang, comentaris i pr\`oleg a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang, com\adddot\ i pr\`ol\adddot\ \smartof}},
  bytranslatorcoaf = {{traducci\'o \lbx@fromlang, comentaris i ep{\'\i}leg a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang, com\adddot\ i ep\adddot\ \smartof}},
  bytranslatoranin = {{traducci\'o \lbx@fromlang, notes i introducci\'o a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang, n\adddot\ i intr\adddot\ \smartof}},
  bytranslatoranfo = {{traducci\'o \lbx@fromlang, notes i pr\`oleg a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang, n\adddot\ i pr\`ol\adddot\ \smartof}},
  bytranslatoranaf = {{traducci\'o \lbx@fromlang, notes i ep{\'\i}leg a cura \smartof}%
                      {trad\adddot\ \lbx@fromlang, n\adddot\ i ep\adddot\ \smartof}},
  and              = {{i}{i}},
  andothers        = {{et al\adddot}{et al\adddot}},
  andmore          = {{i m\'es}{i m\'es}},
  volume           = {{volum}{vol\adddot}},
  volumes          = {{volums}{vol\adddot}},
  involumes        = {{en}{en}},
  jourvol          = {{volum}{vol\adddot}},
  jourser          = {{s\`erie}{s\`er\adddot}},
  book             = {{llibre}{llib\adddot}},
  part             = {{part}{part}},
  issue            = {{n\'umero}{n\'um\adddot}},
  newseries        = {{s\`erie nova}{s\`erie nova}},
  oldseries        = {{s\`erie antiga}{s\`erie ant\adddot}},
  edition          = {{edici\'o}{ed\adddot}},
  reprint          = {{reimpressi\'o}{reimpr\adddot}},
  reprintof        = {{reimpressi\'o \smartof}{reimpr\adddotspace\smartof}},
  reprintas        = {{reimpr\`es com}{reimpr\adddotspace com}},
  reprintfrom      = {{reimpr\`es \smartof}{reimpr\adddotspace\smartof}},
  reviewof         = {{ressenya \smartof}{ress\adddotspace\smartof}},
  translationof    = {{traducci\'o \smartof}{trad\adddotspace\smartof}},
  translationas    = {{tradu{\"\i}t com}{trad\adddotspace com}},
  translationfrom  = {{tradu{\"\i}t del}{trad\adddotspace del}}, % Unsure of 'del'
  origpubas        = {{publicat originalment com}{pub\adddotspace orig\adddotspace com}},
  origpubin        = {{publicat originalment el}{pub\adddotspace orig\adddotspace el}},
  astitle          = {{com}{com}},
  bypublisher      = {{per}{per}},
  page             = {{p\`agina}{p\`ag\adddot}},
  pages            = {{p\`agines}{p\`ag\adddot}},
  column           = {{columna}{col\adddot}},
  columns          = {{columnes}{cols\adddot}},
  line             = {{l{\'\i}nia}{l{\'\i}n\adddot}}, 
  lines            = {{l{\'\i}nies}{l{\'\i}n\adddot}},
  nodate           = {{sine data}{s\adddotspace d\adddot}},
  verse            = {{vers}{v\adddot}}, 
  verses           = {{versos}{v\adddot}},
  section          = {{apartat}{\S}},
  sections         = {{apartats}{\S}},
  paragraph        = {{par\`agraf}{\P}},
  paragraphs       = {{par\`agrafs}{\P}},
  in               = {{a}{a}},
  inseries         = {{\smartof}{\smartof}},
  ofseries         = {{\smartof}{\smartof}},
  number           = {{n\'umero}{n\'um\adddot}},
  chapter          = {{cap{\'\i}tol}{cap\adddot}},
  mathesis         = {{tesi de m\`aster}{tesi de m\`aster}},
  phdthesis        = {{tesi doctoral}{tesi doct\adddot}},
  candthesis       = {{tesi de candidatura}{tesi de cand\adddotspace}},
  resreport        = {{informe de recerca}{inf\adddotspace de rec\adddot}},
  techreport       = {{informe t\`ecnic}{inf\adddotspace t\`ec\adddot}},
  software         = {{programari}{prog\adddot}},
  datacd           = {{CD de dades}{CD de dades}},
  audiocd          = {{CD d'\`audio}{CD d'\`audio}},
  version          = {{versi\'o}{vers\adddot}},
  url              = {{adre\c{c}a}{adr\adddot}},
  urlfrom          = {{disponible a}{disp\adddotspace a}},
  urlseen          = {{consultat}{cons\adddotspace}},
  inpreparation    = {{en preparaci\'o}{en prep\adddot}},
  inpress          = {{a impremta}{a impr\adddot}},% Per revisar
  prepublished     = {{pre-publicat}{pre-publicat}},
  submitted        = {{enviat a publicar}{env\adddotspace a pub\adddot}},
  forthcoming      = {{acceptat per a publicar}{acc\adddotspace per a pub\adddot}},
  citedas          = {{d'ara endavant citat com}{d'ara end\adddotspace cit\adddotspace com}},
  thiscite         = {{aquesta citaci\'o}{aqu\adddotspace cit\adddot}},
  seenote          = {{vegeu la nota}{v\adddotspace la n\adddot}},
  quotedin         = {{citat a}{cit\adddotspace a}},
  idem             = {{{\'\i}dem}{{\'\i}d\adddot}},
  idemsf           = {{{\'\i}dem}{{\'\i}d\adddot}},
  idemsm           = {{{\'\i}dem}{{\'\i}d\adddot}},
  idemsn           = {{{\'\i}dem}{{\'\i}d\adddot}},
  idempf           = {{{\'\i}dem}{{\'\i}d\adddot}},
  idempm           = {{{\'\i}dem}{{\'\i}d\adddot}},
  idempn           = {{{\'\i}dem}{{\'\i}d\adddot}},
  idempp           = {{{\'\i}dem}{{\'\i}d\adddot}},
  ibidem           = {{ib{\'\i}dem}{ib\adddot}},
  opcit            = {{\`op\adddotspace cit\adddot}{\`op\adddotspace cit\adddot}},
  loccit           = {{loc\adddotspace cit\adddot}{loc\adddotspace cit\adddot}},
  confer           = {{cf\adddot}{cf\adddot}},
  sequens          = {{seq\adddot}{seq\adddot}},
  sequentes        = {{et seq\adddot}{et seq\adddot}},
  passim           = {{p\`assim}{p\`assim}},
  see              = {{vegeu}{v\adddot}},
  seealso          = {{vegeu tamb\'e}{v\adddotspace tamb\'e}},
  backrefpage      = {{vegeu la p\`agina}{v\adddotspace la p\`ag\adddot}},
  backrefpages     = {{vegeu les p\`agines}{v\adddotspace les p\`ag\adddot}},
  january          = {{gener}{gen\adddot}},
  february         = {{febrer}{febr\adddot}},
  march            = {{mar\c{c}}{mar\c{c}}},
  april            = {{abril}{abr\adddot}},
  may              = {{maig}{maig}},
  june             = {{juny}{juny}},
  july             = {{juliol}{jul\adddot}},
  august           = {{agost}{ag\adddot}},
  september        = {{setembre}{set\adddot}},
  october          = {{octubre}{oct\adddot}},
  november         = {{novembre}{nov\adddot}},
  december         = {{desembre}{des\adddot}},
  langamerican     = {{angl\`es americ\`a}{ang\adddotspace amer\adddot}},
  langbrazilian    = {{portugu\`es brasiler}{port\adddotspace bras\adddot}},
  langcatalan      = {{catal\`a}{cat\adddot}},
  langczech        = {{txec}{txec}},
  langcroatian     = {{croat}{croat}},
  langdanish       = {{dan\`es}{dan\adddot}},
  langdutch        = {{neerland\`es}{neerl\adddot}},
  langenglish      = {{angl\`es}{ang\adddot}},
%  langestonian     = {{}{}},% FIXME: missing
  langfinnish      = {{fin\`es}{fin\adddot}},
  langfrench       = {{franc\`es}{fr\adddot}},
  langgerman       = {{alemany}{al\adddot}},
  langgreek        = {{grec}{grec}},
  langitalian      = {{itali\`a}{it\adddot}},
  langlatin        = {{llat{\'\i}}{ll\adddot}},
  langnorwegian    = {{noruec}{nor\adddot}},
  langpolish       = {{polon\`es}{pol\adddot}},
  langportuguese   = {{portugu\`es}{port\adddot}},
  langrussian      = {{rus}{rus}},
  langslovene      = {{eslov\`e}{esl\adddot}},
  langspanish      = {{castell\`a}{cast\adddot}},
  langswedish      = {{suec}{suec}},
  fromamerican     = {{de l'angl\`es americ\`a}{de l'ang\adddotspace amer\adddot}},
  frombrazilian    = {{del portugu\`es brasiler}{del port\adddotspace bras\adddot}},
  fromcatalan      = {{del catal\`a}{del cat\adddot}},
  fromcroatian     = {{del croat}{del croat}},
  fromczech        = {{del txec}{del txec}},
  fromdanish       = {{del dan\`es}{del dan\adddot}},
  fromdutch        = {{del neerland\`es}{del neerl\adddot}},
  fromenglish      = {{de l'angl\`es}{de l'ang\adddot}},
%  fromestonian     = {{}{}},% FIXME: missing
  fromfinnish      = {{del fin\`es}{del fin\adddot}},
  fromfrench       = {{del franc\`es}{del fr\adddot}},
  fromgerman       = {{de l'alemany}{de l'al\adddot}},
  fromgreek        = {{del grec}{del grec}},
  fromitalian      = {{de l'itali\`a}{de l'it\adddot}},
  fromlatin        = {{del llat{\'\i}}{del ll\adddot}},
  fromnorwegian    = {{del noruec}{del nor\adddot}},
  frompolish       = {{del polon\`es}{del pol\adddot}},
  fromportuguese   = {{del portugu\`es}{del port\adddot}},
  fromrussian      = {{del rus}{del rus}},
  fromslovene      = {{de l'eslov\`e}{de l'esl\adddot}},
  fromspanish      = {{del castell\`a}{del cast\adddot}},
  fromswedish      = {{del suec}{del suec}},
  countryde        = {{Alemanya}{DE}},
  countryeu        = {{Uni\'o Europea}{UE}},
  countryep        = {{Uni\'o Europea}{UE}},
  countryfr        = {{Fran\c{c}a}{FR}},
  countryuk        = {{Regne Unit}{GB}},
  countryus        = {{Estats Units d'Am\`erica}{US}},
  patent           = {{patent}{pat\adddot}},
  patentde         = {{patent alemana}{pat\adddot\ al\adddot}},
  patenteu         = {{patent europea}{pat\adddot\ eur\adddot}},
  patentfr         = {{patent francesa}{pat\adddot\ fr\adddot}},
  patentuk         = {{patent brit\`anica}{pat\adddot\ brit\adddot\adddot}},
  patentus         = {{patent estatunidenca}{pat\adddot\ EUA}},
  patreq           = {{so\l.licitud de patent}{so\l.l\adddotspace de pat\adddot}},
  patreqde         = {{so\l.licitud de patent alemana}{so\l.l\adddotspace de pat\adddot\ al\adddot}},
  patreqeu         = {{so\l.licitud de patent europea}{so\l.l\adddotspace de pat\adddot\ eur\adddot}},
  patreqfr         = {{so\l.licitud de patent francesa}{so\l.l\adddotspace de pat\adddot\ fr\adddot}},
  patrequk         = {{so\l.licitud de patent brit\`anica}{so\l.l\adddotspace de pat\adddot\ brit\adddot}},
  patrequs         = {{so\l.licitud de patent estatunidenca}{so\l.l\adddotspace de pat\adddot\ EUA}},
  file             = {{fitxer}{fitx\adddot}},
  library          = {{biblioteca}{bibl\adddot}},
  abstract         = {{resum}{res\adddot}}, 
  annotation       = {{nota}{n\adddot}}, 
  commonera        = {{Era Comuna}{EC}},
  beforecommonera  = {{abans de l’Era Comuna}{AEC}},
  annodomini       = {{despr\'es de Crist}{dC}},
  beforechrist     = {{abans de Crist}{aC}},
% circa            = {{}{}},% FIXME: missing
% spring           = {{}{}},% FIXME: missing
% summer           = {{}{}},% FIXME: missing
% autumn           = {{}{}},% FIXME: missing
% winter           = {{}{}},% FIXME: missing
  am               = {{a\adddotspace m\adddot}{a\adddotspace m\adddot}},
  pm               = {{p\adddotspace m\adddot}{p\adddotspace m\adddot}},
}

\begingroup
\catcode`\&=3

\gdef\lbx@ca@smartof{%
  \iftoggle{smartof}{\lbx@ca@smartof@i}{\@gobble}}

\protected\long\gdef\lbx@ca@smartof@i#1{%
  \global\togglefalse{smartof}%
  \begingroup
  \def\forceD##1{a\relax}%
  \def\forceDE##1{x\relax}%
  \def\do##1{\let##1\@empty}%
  \abx@dosingleaccents
  \abx@dodoubleaccents
  \def\i{i}\def\j{j}%
  \def\AE{a}\def\ae{a}%
  \def\OE{o}\def\oe{o}%
  \def\O{o}\def\o{o}%
  \let\IeC\@firstofone
  \let\@tabacckludge\@gobble
  \ifnum\catcode`\"=\active
    \uccode`\~=`\"
    \uppercase{\let~\@empty}%
  \fi
  \ifnum\catcode`\~=\active
    \let~\@empty
  \fi
  \let\protect\noexpand
  \lowercase{\edef\lbx@tempa{#1}}%
  \expandafter\futurelet
  \expandafter\lbx@tempa
  \expandafter\lbx@ca@smartof@ii
  \lbx@tempa&}

\gdef\lbx@ca@smartof@ii{%
  \ifcat\bgroup\noexpand\lbx@tempa
    \def\lbx@tempa##1{\futurelet\lbx@tempa\lbx@ca@smartof@ii##1}%
  \else\ifcat\noexpand~\noexpand\lbx@tempa
    \def\lbx@tempa##1{\futurelet\lbx@tempa\lbx@ca@smartof@ii}%
  \else\if a\noexpand\lbx@tempa
    \let\lbx@tempa\lbx@ca@smartof@d
  \else\if e\noexpand\lbx@tempa
    \let\lbx@tempa\lbx@ca@smartof@d
  \else\if i\noexpand\lbx@tempa
    \let\lbx@tempa\lbx@ca@smartof@d
  \else\if o\noexpand\lbx@tempa
    \let\lbx@tempa\lbx@ca@smartof@d
  \else\if u\noexpand\lbx@tempa
    \let\lbx@tempa\lbx@ca@smartof@d
  \else\if y\noexpand\lbx@tempa
    \let\lbx@tempa\lbx@ca@smartof@d
  \else\if h\noexpand\lbx@tempa
    \def\lbx@tempa##1{\futurelet\lbx@tempa\lbx@ca@smartof@ii}%
  \else
    \let\lbx@tempa\lbx@ca@smartof@de
  \fi\fi\fi\fi\fi\fi\fi\fi\fi
  \lbx@tempa}

\gdef\lbx@ca@smartof@d#1&{\endgroup d'}
\gdef\lbx@ca@smartof@de#1&{\endgroup de\space}

\endgroup

\endinput