libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

sentence.c (1683B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include "util.h"
      3 
      4 #define FILE_SENTENCE "data/SentenceBreakProperty.txt"
      5 
      6 static const struct property_spec sentence_break_property[] = {
      7 	{
      8 		.enumname = "OTHER",
      9 		.file     = NULL,
     10 		.ucdname  = NULL,
     11 	},
     12 	{
     13 		.enumname = "CR",
     14 		.file     = FILE_SENTENCE,
     15 		.ucdname  = "CR",
     16 	},
     17 	{
     18 		.enumname = "LF",
     19 		.file     = FILE_SENTENCE,
     20 		.ucdname  = "LF",
     21 	},
     22 	{
     23 		.enumname = "EXTEND",
     24 		.file     = FILE_SENTENCE,
     25 		.ucdname  = "Extend",
     26 	},
     27 	{
     28 		.enumname = "SEP",
     29 		.file     = FILE_SENTENCE,
     30 		.ucdname  = "Sep",
     31 	},
     32 	{
     33 		.enumname = "FORMAT",
     34 		.file     = FILE_SENTENCE,
     35 		.ucdname  = "Format",
     36 	},
     37 	{
     38 		.enumname = "SP",
     39 		.file     = FILE_SENTENCE,
     40 		.ucdname  = "Sp",
     41 	},
     42 	{
     43 		.enumname = "LOWER",
     44 		.file     = FILE_SENTENCE,
     45 		.ucdname  = "Lower",
     46 	},
     47 	{
     48 		.enumname = "UPPER",
     49 		.file     = FILE_SENTENCE,
     50 		.ucdname  = "Upper",
     51 	},
     52 	{
     53 		.enumname = "OLETTER",
     54 		.file     = FILE_SENTENCE,
     55 		.ucdname  = "OLetter",
     56 	},
     57 	{
     58 		.enumname = "NUMERIC",
     59 		.file     = FILE_SENTENCE,
     60 		.ucdname  = "Numeric",
     61 	},
     62 	{
     63 		.enumname = "ATERM",
     64 		.file     = FILE_SENTENCE,
     65 		.ucdname  = "ATerm",
     66 	},
     67 	{
     68 		.enumname = "SCONTINUE",
     69 		.file     = FILE_SENTENCE,
     70 		.ucdname  = "SContinue",
     71 	},
     72 	{
     73 		.enumname = "STERM",
     74 		.file     = FILE_SENTENCE,
     75 		.ucdname  = "STerm",
     76 	},
     77 	{
     78 		.enumname = "CLOSE",
     79 		.file     = FILE_SENTENCE,
     80 		.ucdname  = "Close",
     81 	},
     82 };
     83 
     84 int
     85 main(int argc, char *argv[])
     86 {
     87 	(void)argc;
     88 
     89 	properties_generate_break_property(sentence_break_property,
     90 	                                   LEN(sentence_break_property),
     91 	                                   NULL, NULL, "sentence_break", argv[0]);
     92 
     93 	return 0;
     94 }