Hi. I am making a book with the help of Texinfo. This book is in European Portuguese (Portuguese of Portugal).
When I compile the book to PDF, instead of having book links that say "Secção X.X.X" (Section X.X.X , on an English translation), my compiled book appears with links that say "Seção X.X.X" (mind the omission of the "c" behind the "ç"). Which makes those links to be in Brazilian Portuguese, instead of Portugal's Portuguese. And my book is written in Portugal's Portuguese. I have fetched the source, did a `find` together with an `xargs` and with a `sed`, to replace all occurrences of [Ss]eç with [Ss]ecç . Making this the Portugal's way of writing, and making my book all in Portugal's Portuguese. The command for this replacement is as follows: $ find src/ -type f -name \*.bib -or -name \*.cls -or -name \*.dtx -or -name \*.lang -or -name \*.tex -or -name \*.xml | xargs -d '\n' sed -i -e 's/Seç/Secç/g' -e 's/seç/secç/g' Well, this is not working. My GNU Parabola distro recipe for compiling is attached to this message. I wonder if these sections links' are images. If so, it would explain why my replacement is not working. If it these links are images, is there a way to regenerate this images from source? How can I have my book's sections links appear in Portugal's Portuguese? My operating system is GNU Parabola/Linux-libre. My Texinfo package is: local/texinfo 7.2-2 My TeXLive packages are, which also had the same replacement method applied to the source (and were locally compiled) are: local/texlive-basic 2025.2-2 (texlive) local/texlive-bin 2025.2-1.parabola1 local/texlive-binextra 2025.2-2 (texlive) local/texlive-doc 2025.2-2 local/texlive-fontsextra 2023.66328-1.par2 (texlive-most) local/texlive-fontsrecommended 2025.2-2 (texlive) local/texlive-langenglish 2025.2-2 (texlive-lang) local/texlive-langportuguese 2025.2-2 (texlive-lang) local/texlive-latex 2025.2-2 (texlive) local/texlive-latexextra 2025.2-2 (texlive) local/texlive-latexrecommended 2025.2-2 (texlive) local/texlive-pictures 2025.2-2 (texlive) local/texlive-plaingeneric 2025.2-2 (texlive) Can someone help me with this issue in my Portuguese book production? -- The pioneers of a warless world are the youth that refuse military service. ~ Albert Einstein
# Maintainer: Frederik Schwan <freswa at archlinux dot org> # Contributor: Bartłomiej Piotrowski <[email protected]> # Contributor: Allan McRae <[email protected]> # Contributor: Tom Newsom <[email protected]> pkgname=texinfo pkgver=7.2 pkgrel=2 pkgdesc='GNU documentation system for on-line information and printed output' arch=(x86_64) url='https://www.gnu.org/software/texinfo/' license=(GPL3) depends=(ncurses gzip perl sh) optdepends=('perl-archive-zip: EPUB file output via texi2any') options=(!debug) source=(https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig} texinfo-install.hook texinfo-remove.hook) sha256sums=('0329d7788fbef113fa82cb80889ca197a344ce0df7646fe000974c5d714363a6' 'SKIP' 'beb0ff50bd8e8ca1d6e1c01e6a50352f9d25937c62822cf767a7b3d8f7374a9d' '913ca8aac84386399b0a83ed0f6b04b5e6322da62f5c1d7ed31e1050ed37c1a9') validpgpkeys=('EAF669B31E31E1DECBD11513DDBC579DAB37FBA9') # Gavin Smith prepare() { cd $pkgname-$pkgver # my patch patch -p1 < ../../0001-tp-ext-epub.pm-make-first-image-a-cover-image.patch echo "Needs this because it is detecting as pt_BR..." find . -type f -name \*.po -or -name \*.html | xargs -d '\n' sed -i -e 's/Seç/Secç/g' -e 's/seç/secç/g' } build() { cd $pkgname-$pkgver ./configure --prefix=/usr # update po make update-po make } # check() { # make -C $pkgname-$pkgver check # } package() { make -C $pkgname-$pkgver DESTDIR="$pkgdir" install install -dm755 "$pkgdir"/usr/share/libalpm/hooks/ install -m644 texinfo-{install,remove}.hook "$pkgdir"/usr/share/libalpm/hooks/ }
signature.asc
Description: PGP signature
