Commit c22eac3f authored by Georges Khaznadar's avatar Georges Khaznadar

Import Upstream version 2.0

parents
This diff is collapsed.
File added
to install felix, here are the commads to launch
$ qmake
$ make
$ ./mkmanpage
$ ./mkhelp
# make install
to uninstall felix, provided the file Makefile is there, just launch
# make uninstall
to clean the source package (for distributing it) the command is:
$ ./distclean
#!/bin/bash
tout:
xelatex felix34.tex
convert -density 150 felix34.pdf help.tif
mv help.tif ..
clean:
rm *.aux *.log *.pdf
% © Yves Ouvrard (Collatinus), 2010
% =======================================================================
% This file is part of Felix 34.
% Felix 34 is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% Felix 34 is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with Felix 34. If not, see <http://www.gnu.org/licenses/>.
% =======================================================================
%/
% À compiler avec xelatex
\documentclass[12pt]{article}
\XeTeXdefaultencoding utf-8
\usepackage{fontspec}
\usepackage{textcomp}
\usepackage{geometry}
\usepackage[frenchb]{babel}
\geometry{a4paper, left=1in, right=1in, top=1in, bottom=1in}
\setmainfont[Mapping=tex-text,Ligatures={Rare,Historical,Contextual},Numbers=OldStyle]{Linux Libertine O}
\begin{document}
\begin{center}
\Huge{Felix 34}
\end{center}
Voir en fin de page la licence et les conditions d'utilisation.
Pour chercher un mot, taper m : la ligne de saisie
apparaît. Saisir le mot et valider pour ouvrir le
Gaffiot à la bonne page.
Au lieu de taper un mot, on peut taper
\begin{itemize}
\item /exeo pour quitter ;
\item /aux pour avoir de l'aide ;
\item /felix pour connaître l'auteur et la licence du logiciel ;
\item ↑ et ↓ pour naviguer dans l'historique des requêtes.
\end{itemize}
Après avoir cliqué dans la page du Gaffiot affichée, on
peut se servir du clavier pour modifier l'affichage et
tourner les pages :
\begin{itemize}
\item pour quitter : q ;
\item Pour avoir de l'aide : ? ;
\item pour chercher un mot : m ;
\item page suivante : s ;
\item page précédente : p ;
\item plus gros : i ou + ou Ctrl-roulette ;
\item plus petit : o ou - ou Ctrl-roulette ;
\item pleine largeur : y ;
\item pleine hauteur : t ;
\item pour déplacer la page : déplacer la souris bouton gauche enfoncé,
ou utiliser les flèches ;
\item plus bas dans la page : j ou flèche bas ;
\item plus haut dans la page : k ou flèche haut ;
\item plus à droite : l ou flèche droite ;
\item plus à gauche : h ou flèche gauche ;
\item un écran plus bas : espace ou page bas;
\item un écran plus haut : retour arrière ou page haut;
\item haut de page : f ;
\item bas de page : g.
\end{itemize}
Ce logiciel est placé sous la licence GPL 3.
Félix Gaffiot étant mort en 1937, la première édition
de son dictionnaire est tombée dans le domaine public.
Cette page d'aide a été ajoutée aux données.
\end{document}
#!/bin/sh
[ ! -f Makefile ] || make distclean
rm -f help.tif felix.1.gz
This diff is collapsed.
[Desktop Entry]
Name=Latin-French dictionary
Name[fr]=dictionnaire Latin-Français
Comment=Gaffiot's dictionary is a reference book
Comment[fr]=Le gaffiot est une référence en matière de dictionnaire latin-français
Exec=felix
Icon=felix
Terminal=false
Type=Application
StartupNotify=true
Categories=Education;
/*
* ======================================================================
* felix.h
* © Yves Ouvrard (Collatinus), 2010
*
* ======================================================================
This file is part of Felix 34.
Felix 34 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Felix 34 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Felix 34. If not, see <http://www.gnu.org/licenses/>.
* ======================================================================
*/
#ifndef FELIX_H
#define FELIX_H
#include <QString>
int page_felix (QString incipit);
void cree_incipit ();
#endif
HEADERS = gafio.h
SOURCES = gafio.cpp \
main.cpp \
felix.h \
felix.cpp
install.files = INSTALL COPYING felix
install.path = /usr/share/felix
install.commands = $(SYMLINK) /usr/share/felix/felix /usr/bin/felix
data.path = /usr/share/felix
data.files = Gaffiot.djvu help.tif
man.path=/usr/share/man/man1
man.files = felix.1.gz
INSTALLS += install
INSTALLS += data
INSTALLS += man
This diff is collapsed.
This diff is collapsed.
/*
* gafio.h
* © Yves Ouvrard (Collatinus), 2010
* =======================================================================
This file is part of Felix 34.
Felix 34 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Felix 34 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Felix 34. If not, see <http://www.gnu.org/licenses/>.
* =======================================================================
*/
#ifndef GAFIO_H
#define GAFIO_H
#include <QObject>
#include <QMainWindow>
#include <QtGui/QScrollArea>
class QAction;
class QLineEdit;
class QFont;
class QLabel;
class QScrollArea;
class QScrollBar;
class QVBoxLayout;
class QHBoxLayout;
class QPushButton;
class Gxxxiv;
class zScrollArea : public QScrollArea{
//zoomable scrollarea
Q_OBJECT
public:
zScrollArea(Gxxxiv * mainWindow);
protected:
Gxxxiv * mainWindow;
void wheelEvent (QWheelEvent *event);
};
class Gxxxiv : public QMainWindow
{
Q_OBJECT
friend class zScrollArea;
public:
Gxxxiv();
private:
QString message;
QStringList historique;
int folio;
int pHist;
private slots:
void about();
void aide ();
void bas ();
void descend ();
void droite ();
void gauche ();
void haut ();
void hauteur ();
void lCachee ();
void lVisible ();
void largeur ();
void monte ();
void page(int n);
void pPrec ();
void pSuiv ();
void page_bas ();
void page_haut ();
void returnPressed ();
protected slots:
void zoomIn ();
void zoomOut ();
private:
void scaleImage();
void adjustScrollBar(QScrollBar *scrollBar, double factor);
QWidget *commandes;
QLineEdit *lSaisie;
QFont *fonte;
QHBoxLayout *horizontalLayout;
QPushButton *bCh;
QPushButton *bPrec;
QPushButton *bSuiv;
QPushButton *fleche;
QLabel *imageLabel;
zScrollArea *scrollArea;
QPixmap pix;
QVBoxLayout *layout;
QPoint lastPos;
double scaleFactor;
protected:
void keyPressEvent (QKeyEvent *event);
void mousePressEvent (QMouseEvent * event);
void mouseMoveEvent (QMouseEvent * event);
};
#endif
/****************************************************************************
** main.cpp
* © Yves Ouvrard (Collatinus), 2010
* =======================================================================
This file is part of Felix 34.
Felix 34 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Felix 34 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Felix 34. If not, see <http://www.gnu.org/licenses/>.
* =======================================================================
*/
#include <QApplication>
//#include <QTextCodec>
#include "gafio.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
//QTextCodec::setCodec(QTextCodec::codecForName("UTF-8"));
Gxxxiv gxxxiv;
gxxxiv.show();
return app.exec();
}
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!--
`xsltproc -''-nonet \
-''-param man.charmap.use.subset "0" \
-''-param make.year.ranges "1" \
-''-param make.single.year.ranges "1" \
/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
manpage.xml'
A manual page <package>.<section> will be generated. You may view the
manual page with: nroff -man <package>.<section> | less'. A typical entry
in a Makefile or Makefile.am is:
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl
XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
manpage.1: manpage.xml
$(XP) $(DB2MAN) $<
The xsltproc binary is found in the xsltproc package. The XSL files are in
docbook-xsl. A description of the parameters you can use can be found in the
docbook-xsl-doc-* packages. Please remember that if you create the nroff
version in one of the debian/rules file targets (such as build), you will need
to include xsltproc and docbook-xsl in your Build-Depends control field.
Alternatively use the xmlto command/package. That will also automatically
pull in xsltproc and docbook-xsl.
Notes for using docbook2x: docbook2x-man does not automatically create the
AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
<refsect1> ... </refsect1>.
To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
found in the docbook-xsl-doc-html package.
Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
General documentation about man-pages and man-page-formatting:
man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
-->
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "Georges">
<!ENTITY dhsurname "Khaznadar">
<!-- dhusername could also be set to "&dhfirstname; &dhsurname;". -->
<!ENTITY dhusername "Georges Khaznadar">
<!ENTITY dhemail "georgesk@ofset.org">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1) and
http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
<!ENTITY dhsection "1">
<!-- TITLE should be something like "User commands" or similar (see
http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
<!ENTITY dhtitle "felix User Manual">
<!ENTITY dhucpackage "FELIX">
<!ENTITY dhpackage "felix">
]>
<refentry>
<refentryinfo>
<title>&dhtitle;</title>
<productname>&dhpackage;</productname>
<authorgroup>
<author>
<firstname>&dhfirstname;</firstname>
<surname>&dhsurname;</surname>
<contrib>Wrote this manpage for the Debian system.</contrib>
<address>
<email>&dhemail;</email>
</address>
</author>
</authorgroup>
<copyright>
<year>2010</year>
<holder>&dhusername;</holder>
</copyright>
<legalnotice>
<para>This manual page was written for the Debian system
(and may be used by others).</para>
<para>Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU General Public License,
Version 2 or (at your option) any later version published by
the Free Software Foundation.</para>
<para>On Debian systems, the complete text of the GNU General Public
License can be found in
<filename>/usr/share/common-licenses/GPL</filename>.</para>
</legalnotice>
</refentryinfo>
<refmeta>
<refentrytitle>&dhucpackage;</refentrytitle>
<manvolnum>&dhsection;</manvolnum>
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>A browser for a Latin-French dictionary</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="description">
<title>DESCRIPTION</title>
<para><command>&dhpackage;</command> is a program to
access Felix Gaffiot's Latin-French dictionary. Entering a Latin
word will open the dictionary at the right page and let you
zoom and pad over the scanned page of the dictionary published
in year 1934.</para>
</refsect1>
</refentry>
#!/bin/sh
cd TeX; make
#!/bin/sh
xsltproc --nonet \
--param man.charmap.use.subset "0" \
--param make.year.ranges "1" \
--param make.single.year.ranges "1" \
/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
manpage.xml
gzip -9 felix.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment