4 /* special characters */
10 #define CHAR_SQUOTE 39
11 #define CHAR_OPEN_SQUOTE 96
12 #define CHAR_TILDE 126
13 #define CHAR_ASTERISK 42
14 #define CHAR_FORESLASH 47
17 #define CHAR_UNDERSCORE '_'
18 #define CHAR_OPEN_CBRACK '{'
19 #define CHAR_CLOSE_CBRACK '}'
20 #define CHAR_OPEN_RBRACK '('
21 #define CHAR_CLOSE_RBRACK ')'
22 #define CHAR_OPEN_SBRACK '['
23 #define CHAR_CLOSE_SBRACK ']'
25 #define CHAR_LS_QUOTE 0x2018
26 #define CHAR_RS_QUOTE 0x2019
27 #define CHAR_LD_QUOTE 0x201C
28 #define CHAR_RD_QUOTE 0x201D
30 #define CHAR_IS_SQUOTE(c) ((c)==CHAR_SQUOTE || (c)==CHAR_OPEN_SQUOTE || \
31 (c)==CHAR_LS_QUOTE || (c)==CHAR_RS_QUOTE)
33 #define CHAR_IS_DQUOTE(c) ((c)==CHAR_DQUOTE || (c)==CHAR_LD_QUOTE || \
36 #define CHAR_IS_APOSTROPHE(c) ((c)==CHAR_SQUOTE || (c)==CHAR_RS_QUOTE)
38 /* longest and shortest normal PG line lengths */
39 #define LONGEST_PG_LINE 75
40 #define WAY_TOO_LONG 80
41 #define SHORTEST_PG_LINE 55
69 long base,space,non_PG_space,PG_space;
72 struct first_pass_results {
73 long firstline,astline;
74 long footerline,totlen,binlen,alphalen,endquote_count,shortline,dotcomma;
75 long fslashline,hyphens,longline,verylongline,htmcount,standalone_digit;
77 struct dash_results emdash;
79 int Dutchcount,Frenchcount;
83 int shortline,longline,bin,dash,dotcomma,ast,fslash,digit,hyphen;
84 int endquote,newlines;
85 gboolean isDutch,isFrench;
88 struct line_properties {
89 unsigned int len,blen;
97 extern gboolean pswit[SWITNO];
99 extern long cnt_quote,cnt_brack,cnt_bin,cnt_odd,cnt_long,cnt_short,cnt_punct;
100 extern long cnt_dash,cnt_word,cnt_html,cnt_lineend,cnt_spacend,linecnt;
101 extern long checked_linecnt;
103 #endif /* BOOKOUPE_H */