• No results found

The ocr package L

N/A
N/A
Protected

Academic year: 2021

Share "The ocr package L"

Copied!
9
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The ocr package

L

A

TEX support for the OCR fonts (Optical Chatacter Recognition

fonts)

version 1.0 September 22, 2006

Palle Jørgensen

1

Introduction

The ocr package provides support for the OCR fonts. The OCR fonts are already installed on many systems, this is only support for using the OCR fonts with LATEX.

(2)

2

Using the ocr package

2.1

Package options

The ocr package has the following options

Option: Effect: Example Comments: ocr-a Selects the OCR

font to be OCR-A 123 ocr-b Selects the OCR

font to be OCR-B

123 Default ocr-b-outline Selects the OCR

font to be an out-line of OCR-B

123 ocr-b-negative Selects the OCR

font to be a neg-ative OCR-B

123 ocr-b-sharp Selects the OCR

font to be a “sharp” OCR-B

123 The sharp fonts are not con-structed properly. Use with care ocr-b-sharp-negative Selects the OCR

font to be a negative “sharp” OCR-B

123 The sharp fonts are not con-structed properly. Use with care

2.2

Commands

If you want some text typeset with the selected OCR font for a short text you can use the command \ocr; ie. \ocr{cheese}.

It is possible to use the command \ocrfamily but this command also changes the current fontencoding; use with caution. . .

2.2.1 Negative fonts

(3)

3

Source of the files in the OCR bundle

3.1

ocr.sty

\ P r o v i d e s P a c k a g e { o c r } [ 2 0 0 6 / 0 9 / 1 8 LaTeX s u p p o r t f o r t h e v a r i o u s OCR f o n t s . C r e a t e d by P a l l e J o r g e n s e n , h a m s e l v @ p a l l e j . dk ] \ R e q u i r e P a c k a g e { i f t h e n } \ def \ o c r d e f a u l t { o c r b } \ D e c l a r e O p t i o n { o c r −a }{\ def \ o c r d e f a u l t { o c r a }} \ D e c l a r e O p t i o n { o c a }{\ def \ o c r d e f a u l t { o c a }%

\ PackageWarning { o c r }{The OCA f o n t s a r e buggy . Use t h e ’ o c r −a ’ o p t i o n t o g e t p r o p e r OCR−A f o n t s .^^ J }} \ D e c l a r e O p t i o n { o c r −b }{\ def \ o c r d e f a u l t { o c r b }} \ D e c l a r e O p t i o n { o c r −b−o u t l i n e }{\ def \ o c r d e f a u l t { o c r b o }} \ D e c l a r e O p t i o n { o c r −b−n e g a t i v e }{\ def \ o c r d e f a u l t { o c r b n }} \ D e c l a r e O p t i o n { o c r −b−s h a r p }{\ def \ o c r d e f a u l t { o c r b s }%

\ PackageWarning { o c r }{The s h a r p OCR−B f o n t s a r e buggy . Use w i t h c a r e .^^ J }}

\ D e c l a r e O p t i o n { o c r −b−sharp−n e g a t i v e }{\ def \ o c r d e f a u l t { o c r b n s }%

\ PackageWarning { o c r }{The s h a r p OCR−B f o n t s a r e buggy . Use w i t h c a r e .^^ J }}

\ P r o c e s s O p t i o n s ∗

\ def \ o c r f a m i l y {\ fontencoding {OT1}\ fontfamily {\ o c r d e f a u l t }\ s e l e c t f o n t } \ DeclareTextFontCommand {\ o c r }{\ o c r f a m i l y } \ def \ o c r n e g f a m i l y {% \ i f t h e n e l s e {\ e q u a l {\ o c r d e f a u l t }{ o c r b }}{}{% \ PackageWarning { o c r }{% Using t h e ’ n e g a t i v e OCR−B ’ f o n t s w i t h o u t u s i n g t h e \ MessageBreak

OCR−B f o n t s may g i v e a funny r e s u l t .^^ J }} \ fontencoding {OT1}\ fontfamily { o c r b n }\ s e l e c t f o n t } \ def \ o c r s @ n e g f a m i l y {%

\ i f t h e n e l s e {\ e q u a l {\ o c r d e f a u l t }{ o c r b s }}{}{ \ PackageWarning { o c r }{%

(4)
(5)
(6)
(7)
(8)
(9)

Referenties

GERELATEERDE DOCUMENTEN

In this section, we evaluate the feature performance for writer identification based on single- script and the results on five data sets are given in Table 7.1, from which we can

Discussion This thesis studies different problems for handwritten manuscript understanding, including writer identification, script recognition, historical document dating

and Brink, A.: 2007, Text-independent writer identification and verification on offline Arabic handwriting, International Conference on Document Analysis and Recognition (ICDAR),

Three fundamental problems have been studied in this thesis for handwritten document understanding based on handwriting style analysis: Writer identification, historical document

In dit proefschrift worden drie fundamentele problemen bestudeerd op het gebied van analyse van hand- schriften ten behoeve van het begrip van handgeschreven

Sheng He, Petros Samara, Jan Burgers, Lambert Schomaker (2016) “Image-based historical manuscript dating using contour and stroke fragments”, Pattern Recognition (PR), Elsevier

I wish to thank Jean-Paul van Oosten (JP) for sharing ideas during the PhD project and helping me to translate many letters in Dutch.. Thanks to Michiel Holtkamp and Gyuhee Lee

5, Solving different problems on the same material usually requires different types of shape features and/or classification methods, because each method entails limitations