Index: trunk/extensions/wikihiero/wikihiero.body.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | * Render hieroglyph text |
88 | 88 | * |
89 | 89 | * @param $text string: text to convert |
90 | | - * @param $mode string: convertion mode [DEFAULT|TEXT|HTML|STYLE|IMAGE] (def=HTML) |
| 90 | + * @param $mode string: conversion mode [DEFAULT|TEXT|HTML|STYLE|IMAGE] (def=HTML) |
91 | 91 | * @param $scale string: global scale in percentage (def=100%) |
92 | 92 | * @param $line string: use line [true|false] (def=false) |
93 | 93 | * @return string: converted code |
— | — | @@ -170,8 +170,8 @@ |
171 | 171 | /** |
172 | 172 | * Resize a glyph |
173 | 173 | * |
174 | | - * @param $item string: glyph's code |
175 | | - * @param $is_cartouche bool: true if glyph inside a cartouche |
| 174 | + * @param $item string: glyph code |
| 175 | + * @param $is_cartouche bool: true if glyph is inside a cartouche |
176 | 176 | * @param $total int: total size of a group for multi-glyph block |
177 | 177 | * @return size |
178 | 178 | */ |
— | — | @@ -368,10 +368,10 @@ |
369 | 369 | $contentHtml .= WH_TD_S . self::renderGlyph( $code[0], $option ) . WH_TD_E; |
370 | 370 | } |
371 | 371 | |
372 | | - // block contain more than 1 glyph |
| 372 | + // block contains more than 1 glyph |
373 | 373 | } else { |
374 | 374 | |
375 | | - // convert all code into '&' to test prefabs glyph |
| 375 | + // convert all codes into '&' to test prefabs glyph |
376 | 376 | $temp = ""; |
377 | 377 | foreach ( $code as $t ) { |
378 | 378 | if ( preg_match( "/[*:!()]/", $t[0] ) ) { |
— | — | @@ -381,13 +381,13 @@ |
382 | 382 | } |
383 | 383 | } |
384 | 384 | |
385 | | - // test is block is into tje prefabs list |
| 385 | + // test if block exists in the prefabs list |
386 | 386 | if ( in_array( $temp, self::$prefabs ) ) { |
387 | 387 | $option = "height='" . $this->resizeGlyph( $temp, $is_cartouche ) . "'"; |
388 | 388 | |
389 | 389 | $contentHtml .= WH_TD_S . self::renderGlyph( $temp, $option ) . WH_TD_E; |
390 | 390 | |
391 | | - // block must be manualy computed |
| 391 | + // block must be manually computed |
392 | 392 | } else { |
393 | 393 | // get block total height |
394 | 394 | $line_max = 0; |