eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

printucddata.cpp 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2012-2013 Reece H. Dunn
  3. *
  4. * This file is part of ucd-tools.
  5. *
  6. * ucd-tools is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * ucd-tools is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with ucd-tools. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include "ucd/ucd.h"
  20. #include <stdio.h>
  21. int main()
  22. {
  23. for (ucd::codepoint_t c = 0; c <= 0x10FFFF; ++c)
  24. {
  25. const char *script = ucd::get_script_string(ucd::lookup_script(c));
  26. const char *category = ucd::get_category_string(ucd::lookup_category(c));
  27. const char *category_group = ucd::get_category_group_string(ucd::lookup_category_group(c));
  28. ucd::codepoint_t upper = ucd::toupper(c);
  29. ucd::codepoint_t lower = ucd::tolower(c);
  30. ucd::codepoint_t title = ucd::totitle(c);
  31. const char *whitespace = ucd::isspace(c) ? "White_Space" : "";
  32. printf("%06X %s %s %s %06X %06X %06X %s\n",
  33. c, script, category_group, category,
  34. upper, lower, title,
  35. whitespace);
  36. }
  37. return 0;
  38. }