Subversion Repositories wimsdev

Rev

Rev 13771 | Rev 14712 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13771 Rev 13783
Line 794... Line 794...
794
{
794
{
795
/*  singlespace(p); strip_trailing_spaces(p); return find_word_start(p); */
795
/*  singlespace(p); strip_trailing_spaces(p); return find_word_start(p); */
796
  nospace(p); return p;
796
  nospace(p); return p;
797
}
797
}
798
 
798
 
-
 
799
#pragma GCC diagnostic push
-
 
800
#pragma GCC diagnostic ignored "-Winvalid-source-encoding"
799
char *htmlsymbs[][2]={
801
char *htmlsymbs[][2]={
800
  {"",""},
802
  {"",""},
801
  {"à","à"},
803
  {"à","à"},
802
  {"À","À"},
804
  {"À","À"},
803
  {"á","á"},
805
  {"á","á"},
Line 855... Line 857...
855
  {"ý","ý"},
857
  {"ý","ý"},
856
  {"Ý","Ý"},
858
  {"Ý","Ý"},
857
  {"ß","ß"},
859
  {"ß","ß"},
858
  {"«","«"},
860
  {"«","«"},
859
  {"»","»"},
861
  {"»","»"},
860
  {"‹","‹"},
862
  {"‹","\'"},
861
  {"›","›"},
863
  {"›","\'"},
862
  {"‘","‘"},
864
  {"‘","\'"},
863
  {"’","’"},
865
  {"’","\'"},
864
  {"“","“"},
866
  {"“","\""},
865
  {"”","”"},
867
  {"”","\""},
866
  {"&","&"},
868
  {"&","&"},
867
  {"&lt;","<"},
869
  {"&lt;","<"},
868
  {"&gt;","<"},
870
  {"&gt;","<"},
869
  {"&quot;","\""},
871
  {"&quot;","\""},
870
  {"&para;","§"},
872
  {"&para;","§"},
871
  {"&copy;","©"},
873
  {"&copy;","©"},
872
  {"&nbsp;","\~"},
874
  {"&nbsp;"," "},
873
  {"&euro;","euro(s)"},
875
  {"&euro;","euro(s)"},
874
  {"&#44;",","},
876
  {"&#44;",","},
875
  {"&#59;",";"},
877
  {"&#59;",";"},
876
};
878
};
-
 
879
#pragma GCC diagnostic pop
877
 
880
 
878
#define thesymbs_no (sizeof(htmlsymbs)/sizeof(htmlsymbs[0]) - 1)
881
#define thesymbs_no (sizeof(htmlsymbs)/sizeof(htmlsymbs[0]) - 1)
879
 
882
 
880
int htmltrans[6*thesymbs_no][256]; /* 6 is the maximum length of a html symbol stripped of & and ; */
883
int htmltrans[6*thesymbs_no][256]; /* 6 is the maximum length of a html symbol stripped of & and ; */
881
 
884