OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2011 Nokia Inc. All rights reserved. | 2 * Copyright (C) 2011 Nokia Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const char* lang; | 65 const char* lang; |
66 UChar open1; | 66 UChar open1; |
67 UChar close1; | 67 UChar close1; |
68 UChar open2; | 68 UChar open2; |
69 UChar close2; | 69 UChar close2; |
70 QuotesData* data; | 70 QuotesData* data; |
71 | 71 |
72 bool operator<(const Language& b) const { return strcmp(lang, b.lang) < 0; } | 72 bool operator<(const Language& b) const { return strcmp(lang, b.lang) < 0; } |
73 }; | 73 }; |
74 | 74 |
75 // Table of quotes from http://www.whatwg.org/specs/web-apps/current-work/multip
age/rendering.html#quote | 75 // Table of quotes from |
| 76 // http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#qu
ote |
76 Language languages[] = { | 77 Language languages[] = { |
77 {"af", 0x201c, 0x201d, 0x2018, 0x2019, 0}, | 78 {"af", 0x201c, 0x201d, 0x2018, 0x2019, 0}, |
78 {"agq", 0x201e, 0x201d, 0x201a, 0x2019, 0}, | 79 {"agq", 0x201e, 0x201d, 0x201a, 0x2019, 0}, |
79 {"ak", 0x201c, 0x201d, 0x2018, 0x2019, 0}, | 80 {"ak", 0x201c, 0x201d, 0x2018, 0x2019, 0}, |
80 {"am", 0x00ab, 0x00bb, 0x2039, 0x203a, 0}, | 81 {"am", 0x00ab, 0x00bb, 0x2039, 0x203a, 0}, |
81 {"ar", 0x201d, 0x201c, 0x2019, 0x2018, 0}, | 82 {"ar", 0x201d, 0x201c, 0x2019, 0x2018, 0}, |
82 {"asa", 0x201c, 0x201d, 0x2018, 0x2019, 0}, | 83 {"asa", 0x201c, 0x201d, 0x2018, 0x2019, 0}, |
83 {"az-cyrl", 0x00ab, 0x00bb, 0x2039, 0x203a, 0}, | 84 {"az-cyrl", 0x00ab, 0x00bb, 0x2039, 0x203a, 0}, |
84 {"bas", 0x00ab, 0x00bb, 0x201e, 0x201c, 0}, | 85 {"bas", 0x00ab, 0x00bb, 0x201e, 0x201c, 0}, |
85 {"bem", 0x201c, 0x201d, 0x2018, 0x2019, 0}, | 86 {"bem", 0x201c, 0x201d, 0x2018, 0x2019, 0}, |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 if (m_depth) | 390 if (m_depth) |
390 m_depth--; | 391 m_depth--; |
391 break; | 392 break; |
392 } | 393 } |
393 } | 394 } |
394 if (oldDepth != m_depth) | 395 if (oldDepth != m_depth) |
395 updateText(); | 396 updateText(); |
396 } | 397 } |
397 | 398 |
398 } // namespace blink | 399 } // namespace blink |
OLD | NEW |