Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2016-10-02 02:34:13

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

Thanks for all the responses. I understand the concerns with pasted text and apologise for confusion. To be clear if i manually create a new post and type in the following block using Textile I get the following output.

WRITE WINDOW:
Line 1 This is a test no quotes

Line 2 This is a test ‘single quotes’

Line 3 This is a test “double quotes”

Line 4 this is a test of i’m

Line 5 this is a test of im

HTML WINDOW:
<p>Line 1 This is a test no quotes</p>

<p>Line 4 this is a test of i&#8217;m</p>

<p>Line 5 this is a test of im</p>

PREVIEW WINDOW:
Line 1 This is a test no quotes

Line 4 this is a test of i’m

Line 5 this is a test of im

If i dont use Textile in advanced settings everything displays with or without line breaks as per input.

As this only appears to affect me and nobody has been struck by “newbie forgot to set something” it has to be my environment.

What i will do today is try and find a different input device to see if its some weird codepage or language setting on my PC. I use windows 10 in English but live in Asia sometimes embedded location features in web based software decide to do things with languages.

If that doesnt work i’ll clean down and reload the software on my host.

Last edited by StFual (2016-10-02 02:35:40)

Offline

#17 2016-10-02 12:36:53

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Quotes in pasted blocks of text

I appreciate your efforts :)

One more thing you could try to get to the bottom is posting your text here in the way that I noted above (jakob asked for it here). If we can reproduce it here in LTR environments, with just the mere text, then the source of your troubles is inside the text and is not a setting or encoding or similar but more probably caused by hard-/software.

With the Textile code before your actual text we want to make sure that the forum software doesn’t convert or swallow any characters. So please put the code bc.. (that’s bc dot dot plus a whitespace character) in front of your actual text.

Edit: BTW you can subscribe to this topic by pushing the gray button below the last post.

Last edited by uli (2016-10-02 12:40:09)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#18 2016-10-02 12:39:00

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: Quotes in pasted blocks of text

Maybe you can try it in the Demo installation or in TxStyle or re-uplod in your installation the Netcarver folder (in textpattern > vendors).

Offline

#19 2016-10-02 13:52:09

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

I tried creating and editing with an android tablet and had the same issues.
I deleted everything including databases, users , folders and .htaccess
I redownloaded and unzipped 4.6 and did a full default install.
I’m sorry to report everything is still the same. If I use textile for input it wont recognises non embedded quote characters.

Textpattern
“Textpattern”[colon]http://forum.textpattern.com does parse correctly so some quotes are being recognised.

But a less important problem is textile doesn’t work correctly with internet archival links.
The second colon gets messed up.

textpattern old
“textpattern old”[colon]https://web.archive.org/web/20151019021621/http://textpattern.com/documentation

becomes

https://web.archive.org/web/20151019021621/http%3A//textpattern.com/documentation

Feel like im learning but not moving forward.

Offline

#20 2016-10-02 14:18:25

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

Sorry i’m a bit confused now.Ive deleted the earlier test cases.

There is a new one in the new installation here

HTML output is this

<p>Line 2 No Single quotes</p>

<p>Line 4 No Double quotes</p>

<p>Line 5 embedded apostrophe i&#8217;m</p>

<p>Line 6 no embedded apostrophe im </p>

<p>Line 7 <a href=“http://www.stfual.com”>link</a></p>

The source text from the left “text” tab is this. Is this what you want or you want actual page code from firefox ? Fullstop typed before paste as requested.

. Line 1 ‘Single quotes’

Line 2 No Single quotes

Line 3 “Double Quotes”

Line 4 No Double quotes

Line 5 embedded apostrophe i’m

Line 6 no embedded apostrophe im

Line 7 link

Offline

#21 2016-10-02 15:24:27

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,394
Website GitHub Mastodon Twitter

Re: Quotes in pasted blocks of text

StFual, could you please post your diagnostics here?

Also, did you try Guguser’s suggestion and if yes did you get the same results?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#22 2016-10-02 15:34:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,394
Website GitHub Mastodon Twitter

Re: Quotes in pasted blocks of text

StFual wrote #301898:

But a less important problem is textile doesn’t work correctly with internet archival links.
The second colon gets messed up.

This is indeed true! In such cases I use a bitly short url and then add <txp:hide>https://web.archive.org/web/20151019021621/http://textpattern.com/documentation</txp:hide> so as to keep a record of the web archive’s url just in case bitly decides to close down at some point. Alternatively you can use raw html: <a rel="external" href="https://web.archive.org/web/20151019021621/http://textpattern.com/documentation">your link</a>


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#23 2016-10-02 18:35:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,496
Website GitHub

Re: Quotes in pasted blocks of text

Your diagnostics really would help us reproduce this.

Can you check which PCRE version you have with your installed PHP? If you can write an article (without Textile switched on!) that contains this:

<txp:php>
phpinfo();
</txp:php>

Then go view that article on your main site and have a look through what you see there. Post anything here you think might be interesting or relevant (redact any server-specific paths and stuff). Anything at all that might give us a clue will be a step up from what we have to work on now. Examples include versions of things, languages installed, (especially) locale information, and so forth. And then remember to hide or delete the article afterwards :-)

It’ll probably be something to do with Textile interpreting quotes differently/wrongly in whatever language you use. But unless we can reproduce it on one of our servers, we could guess all day.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#24 2016-10-03 05:30:57

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

Diagnostics

Textpattern version: 4.6.0 (86d82f868a753eb919f2250d82f4dcae)
Last update: 1970-01-01 00:00:00/2016-09-10 10:11:45
Document root: /home/stfualco/public_html
$path_to_site: /home/stfualco/public_html
Textpattern path: /home/stfualco/public_html/textpattern
Article URL pattern: section_id_title
Temporary directory path: /home/stfualco/public_html/textpattern/tmp
Site URL: www.stfual.com
PHP version: 7.0.11
GD Graphics Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: America/Indiana/Indianapolis
Server local time: 2016-10-03 01:27:55
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds): Asia/Tokyo (-14400)
MySQL: 10.0.20-MariaDB-cll-lve
Database server time: 2016-10-03 01:27:55
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: en_GB.UTF-8
Server: LiteSpeed
PHP server API: litespeed
RFC 2616 headers: 
Server OS: Linux 2.6.32-604.30.3.lve1.3.63.el6.x86_64
Admin-side theme: hive 4.6.0

Pre-flight check: 
------------------------
Clean URLs are only supported on Apache, use at your own risk.
------------------------

.htaccess file contents: 
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /relative/web/path/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]

    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*) index.php

    RewriteCond %{HTTP:Authorization}  !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>
# END Textpattern

------------------------

Charset (default/config): latin1/utf8mb4
character_set_client: latin1
character_set_connection: latin1
character_set_database: latin1
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: sftextpattern is utf8mb4, sftxp_category is utf8mb4, sftxp_css is utf8mb4, sftxp_discuss is utf8mb4, sftxp_discuss_nonce is utf8mb4, sftxp_file is utf8mb4, sftxp_form is utf8mb4, sftxp_image is utf8mb4, sftxp_lang is utf8mb4, sftxp_link is utf8mb4, sftxp_log is utf8mb4, sftxp_page is utf8mb4, sftxp_plugin is utf8mb4, sftxp_prefs is utf8mb4, sftxp_section is utf8mb4, sftxp_token is utf8mb4, sftxp_users is utf8mb4

10 Custom fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: Core/7.0.11, date/7.0.11, libxml/7.0.11, openssl/7.0.11, pcre/7.0.11, sqlite3/0.7-dev, zlib/7.0.11, bz2/7.0.11, calendar/7.0.11, ctype/7.0.11, curl/7.0.11, hash/1.0, filter/7.0.11, ftp/7.0.11, gettext/7.0.11, gmp/7.0.11, SPL/7.0.11, iconv/7.0.11, pcntl/7.0.11, readline/7.0.11, Reflection/7.0.11, session/7.0.11, standard/7.0.11, shmop/7.0.11, SimpleXML/7.0.11, mbstring/7.0.11, tokenizer/7.0.11, xml/7.0.11, litespeed, imap/7.0.11, bcmath/7.0.11, dom/20031129, json/1.4.0, PDO/7.0.11, xmlreader/7.0.11, sockets/7.0.11, xmlwriter/7.0.11, fileinfo/1.0.5, pdo_mysql/7.0.11, gd/7.0.11, exif/1.4 $Id: 8bdc0c8f27c2c9dd1f7551f1f9fe3ab57a06a4b1 $, mcrypt/7.0.11, pdo_sqlite/7.0.11, mysqli/7.0.11, Phar/2.0.2, mysqlnd/mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $, posix/7.0.11

Apache modules: mod_rewrite, mod_mime, mod_headers, mod_expires, mod_auth_basic

pretext_data: array (
  'status' => '200',
  'id' => '',
  's' => '',
  'c' => '',
  'context' => '',
  'q' => '',
  'm' => '',
  'pg' => '',
  'p' => '',
  'month' => '',
  'author' => '',
  'request_uri' => '/052b6843ce8cbb9d54c9a75028d2c599/?txpcleantest=1',
  'qs' => 'txpcleantest=1',
  'subpath' => '\\/',
  'req' => '/052b6843ce8cbb9d54c9a75028d2c599/?txpcleantest=1',
)

/../index.php: 
	91b2dbb550c73fe2a7f8bad6c0c165b3
/../css.php: 
	1872823dbb091f1a3e28d37018a25917
/admin-themes/hive/hive.php: 
	878dc58dd6ee69b49d866c15343fc1d5
/admin-themes/hiveneutral/hiveneutral.php: 
	dd71fcb0f99280b1d8fd3171832cec5a
/css.php: 
	15b5eb655ba4f162361c30ed083502d0
/include/txp_admin.php: 
	6e1b2ec212f673fae4022da9e1dee03e
/include/txp_article.php: 
	7b547f580f04af938fffcba1d7d161b6
/include/txp_auth.php: 
	3c53dc12daf2818a58b65d26dc995358
/include/txp_category.php: 
	b82bf6f9668fb3953786cc8ea6c72e26
/include/txp_css.php: 
	bba6b2ef0cb1dcefee7426adf8174e4b
/include/txp_diag.php: 
	1236dbc50fcd292555e17a5357d257b0
/include/txp_discuss.php: 
	28d572167f576f7ababc3138a23fc77b
/include/txp_file.php: 
	71419d4054f71ae6ce2bc199f5e1763f
/include/txp_form.php: 
	3d34ef3a3664dafdcf5771c38edc280e
/include/txp_image.php: 
	049f3bca22cd0b8f9e6df71c1a027248
/include/txp_lang.php: 
	6e0c06bd366837d4b23bd755f7a54d9b
/include/txp_link.php: 
	e520a78a533de4bfbfcc5b4a949902d5
/include/txp_list.php: 
	51f7511074c1a6fb068aabef6f08d6fc
/include/txp_log.php: 
	6474bae0873b4b66a4ffab7b0fafe86b
/include/txp_page.php: 
	1b48cca9a9c3920345595000e6e52f77
/include/txp_pane.php: 
	a6fd0eb91f9a9d2454f558ce82dd236c
/include/txp_plugin.php: 
	c10be88d56fe2daa3a297d6a5a4bc7ae
/include/txp_prefs.php: 
	6951674c8e3267b9171acf90e52a28a4
/include/txp_section.php: 
	9a9bb075ec2ae48a8898392a28f80c10
/include/txp_tag.php: 
	b7ce7f8161b8e160cc227601414171d7
/index.php: 
	e4cb62c52cd3b4623aa35c301166bb0d
/lib/IXRClass.php: 
	a1b525b4a9ed12dcb5677d5232a3d92e
/lib/PasswordHash.php: 
	40e06a9c70b96309728e0a02822a6722
/lib/admin_config.php: 
	e81e53b7c3083ac599967072df52c49f
/lib/class.thumb.php: 
	385ecc1a5c59561db667c2490a1d45c8
/lib/class.trace.php: 
	0ee318488a6f48da87f0c0cf6fe323f9
/lib/classTextile.php: 
	bc332cd871af9aea59d1f0a20e6e47cb
/lib/constants.php: 
	be11b7315b4a9505e2d2ab0ab04c2ab7
/lib/taglib.php: 
	f1b871e7ff90028d3cd12a944b4c2153
/lib/txplib_admin.php: 
	6606e92a784303065e2594e71fc13f3c
/lib/txplib_db.php: 
	ca6b700297fb15acd8ae43df05c71b44
/lib/txplib_forms.php: 
	c61b2af91351854c8df777d2b8097e9f
/lib/txplib_head.php: 
	c74b4a61144f6020fb513fbe2d446ce2
/lib/txplib_html.php: 
	2a6520ac0de472e03f48963570359ea2
/lib/txplib_misc.php: 
	3d7e04b149f0f21f778ac9bb940822ea
/lib/txplib_publish.php: 
	b5707fa079d073cb8f2ba138c09c0d70
/lib/txplib_theme.php: 
	6de524114ee36d72ce424a77b92051ed
/lib/txplib_update.php: 
	477518d6ecc2ab603ffa9439df4b3720
/lib/txplib_validator.php: 
	7bf016bf3449424b84c15dfe3544e329
/lib/txplib_wrapper.php: 
	be2a8ee0e5a16a67cfb366802d5d0176
/publish.php: 
	805fd06782ecd44b3ed42fabc54a954c
/publish/atom.php: 
	9dffcb3fa3a6c7990f731e8c8073b76c
/publish/comment.php: 
	49004f3d722f096741eb685fa1817a45
/publish/log.php: 
	d99b408d6bf88b39865dab18cfaf73a2
/publish/rss.php: 
	af420738b7d5c6e1e97fdbcffa527a62
/publish/search.php: 
	3d7e0fcea6f40d31dae8c7fb208e35e6
/publish/taghandlers.php: 
	a92a759af24c58301c3329ecbc94dde5
/textpattern.js: 
	71f36e74725661cf859b7af6f54ae480
/update/_to_1.0.0.php: 
	038fee881209aae809666177852f0c64
/update/_to_4.0.2.php: 
	2fda6b67e48855a503d31b226739c1e8
/update/_to_4.0.3.php: 
	0ed87e575b17dc7a5c96ae68a3d16397
/update/_to_4.0.4.php: 
	bf3676db9029bcd37c2df43bef3443f0
/update/_to_4.0.5.php: 
	fa4026347c767cfbd6450cd98c9e37f6
/update/_to_4.0.6.php: 
	6e9a6eb010ba628e77fb00bfb5a0c62a
/update/_to_4.0.7.php: 
	f72fc3ee07beb2a63a56057187daf136
/update/_to_4.0.8.php: 
	0d96bca3d788b371b54e925bb3b006a0
/update/_to_4.2.0.php: 
	efcc7e8a390968de49fd8e060f5e01a4
/update/_to_4.3.0.php: 
	6a819428ad8c1952a7ce5e394abe2823
/update/_to_4.5.0.php: 
	328e41695d6fd6be1c3e18b86e91ab08
/update/_to_4.5.7.php: 
	12f67c98bc6479b54dc7f02cade86638
/update/_to_4.6.0.php: 
	1ef8c82d6dd6263c746eb5ada604702b
/update/_update.php: 
	9339f4bca4bc46b0aadf8a0039142e23
/vendors/dropbox/zxcvbn/zxcvbn.js: 
	552e88c7475079aa29c5cd91aa1925c7
/vendors/jquery/jquery/jquery.js: 
	4f252523d4af0b478c810c2547a63e19
/vendors/jquery/jquery-ui/jquery-ui.js: 
	8cbf62fc02083afe12a90787cb8f9e3c
/vendors/PrismJS/prism/prism.js: 
	9987be40687dad6b26f400b8ce7d4a54
/vendors/Netcarver/Textile/DataBag.php: 
	63e6f6033871535df2494a0253ceb691
/vendors/Netcarver/Textile/Parser.php: 
	f78b64f1082064fa92524e5f8a0682b4
/vendors/Netcarver/Textile/Tag.php: 
	a7f254b354148a092dbb7ae2f91482ee
/vendors/Textpattern/Adaptable/AdapterInterface.php: 
	de8792292a384f8a51f07d8c1e24c1e5
/vendors/Textpattern/Adaptable/Providable.php: 
	db58e36723a5e6169cdab51407ec3e61
/vendors/Textpattern/Adaptable/ProvidableInterface.php: 
	fe415c23619c580543a415c8872d2761
/vendors/Textpattern/Admin/Theme.php: 
	eede702ee31d32d67b9ed3ea58287dd1
/vendors/Textpattern/Container/Container.php: 
	8aa23f3dd76ae9515e01f92210fca272
/vendors/Textpattern/Container/ContainerInterface.php: 
	73fdfc8a970ba41953207f18e245436b
/vendors/Textpattern/Container/FactorableInterface.php: 
	7a5493a74358c0f9cb362119565c0b8a
/vendors/Textpattern/Container/FactoryInterface.php: 
	231dca8874a1e894afbf57de8b343620
/vendors/Textpattern/Container/ReusableInterface.php: 
	df4edfb5a1ae3d43f0ad257139647dbd
/vendors/Textpattern/Date/Timezone.php: 
	d83b6ea7db588599b81709f85c600b1b
/vendors/Textpattern/Filter/Exception.php: 
	9dfad03467f770dfe5fea7f4c3886cfb
/vendors/Textpattern/Filter/FilterCallable.php: 
	ff71a066bde804ec70a4ef5a32ed7d79
/vendors/Textpattern/Filter/StringFilter.php: 
	aa39802e3186f455cf46071ea4e21cf9
/vendors/Textpattern/Http/Request.php: 
	eb603f3a3aee03861cf57f59851ff5a6
/vendors/Textpattern/Iterator/FileIterator.php: 
	0b92ccce27d3dc6684914c14a645bf54
/vendors/Textpattern/L10n/Locale.php: 
	da92218be29aa7573b5768c2f6d4cf7e
/vendors/Textpattern/Loader.php: 
	5132ee7aec8a6be0e0a19984c5fb68ca
/vendors/Textpattern/Mail/Adapter/Mail.php: 
	7d09ff9ec0f6c042bc37af0521af255f
/vendors/Textpattern/Mail/AdapterInterface.php: 
	5c374a13da2b48765337daf6564608c8
/vendors/Textpattern/Mail/Compose.php: 
	c26a947697ba18e05aa6dcab94baee5d
/vendors/Textpattern/Mail/Encode.php: 
	0dc0530c9033491519a097130402c711
/vendors/Textpattern/Mail/Exception.php: 
	ce0c04106b33126de84b777ba80c9950
/vendors/Textpattern/Mail/Message.php: 
	e35c47b7bf47cbcbd9f96864941b3689
/vendors/Textpattern/Password/Adapter/PasswordHash.php: 
	53d6862f0d1dada12218ab3aace85162
/vendors/Textpattern/Password/AdapterInterface.php: 
	a23c46382eff2c784f5e549eb17160b4
/vendors/Textpattern/Password/Generator.php: 
	0b2697558cda93525de4bf4671e49453
/vendors/Textpattern/Password/Hash.php: 
	7404c7e10f304be5089b6607c235a602
/vendors/Textpattern/Password/Random.php: 
	e2d21125ea9fc2567157080a137c9473
/vendors/Textpattern/Search/Filter.php: 
	8b4ef3fd8511467ee5f6026c748e259c
/vendors/Textpattern/Search/Method.php: 
	9de58b5033c9c0b61bef5d5f92bef75a
/vendors/Textpattern/Security/Exception.php: 
	1271a06d808208d3fc208cbe675555a0
/vendors/Textpattern/Security/Filter.php: 
	5a15e72dd32ab2f616c219742fbdee7c
/vendors/Textpattern/Server/Config.php: 
	33ae325df3a4c5788908ad49bab86c04
/vendors/Textpattern/Tag/Registry.php: 
	9bd60f0c914e97f5ec894f46437adda1
/vendors/Textpattern/Tag/Syntax/Authors.php: 
	c29c9244f8a1009483c634d78df01bf5
/vendors/Textpattern/Tag/Syntax/File.php: 
	705562c46df238e113a3c29a2f1cb3c1
/vendors/Textpattern/Tag/Syntax/Image.php: 
	d8917b9156ec10930bacdd209ae93bc7
/vendors/Textpattern/Tag/Syntax/Link.php: 
	80f8b01a48682d20649b739a574ba690
/vendors/Textpattern/Tag/Syntax/Partial.php: 
	657fa060189b64a08e2cbd241b759b77
/vendors/Textpattern/Textfilter/Base.php: 
	0496350b655278e555c139d6a00d559d
/vendors/Textpattern/Textfilter/Constraint.php: 
	03b065d525667b360b31a346e539c926
/vendors/Textpattern/Textfilter/Nl2Br.php: 
	00c2e5eb5bf332688a9c50f4e5ed73f1
/vendors/Textpattern/Textfilter/Plain.php: 
	e3c7f63b9a1940cc798855b9967f23de
/vendors/Textpattern/Textfilter/Registry.php: 
	4170a43b7973f1120de914a3fc0576fb
/vendors/Textpattern/Textfilter/TextfilterInterface.php: 
	30811632e0c2f491726995e95c579087
/vendors/Textpattern/Textfilter/Textile.php: 
	082ebbdb2f7a49fdb9765c4c6d2f5ef9
/vendors/Textpattern/Textile/Parser.php: 
	9d949632792c6b4d06989d9e2850744f
/vendors/Textpattern/Textpack/Parser.php: 
	2a1f718b9b11e97086161060c8e76b17
/vendors/Textpattern/Textpack/String/Iterator.php: 
	135cf5d86e191bae3139703c51cdc217
/vendors/Textpattern/Textpack/StringInterface.php: 
	b6cc517b7ec5f0e1995916878d5ee358
/vendors/Textpattern/Type/StringType.php: 
	c322366173b359c6d14223eee5b425bc
/vendors/Textpattern/Type/TypeCallable.php: 
	af1e2c7330803292e81aec97a198a373
/vendors/Textpattern/Type/TypeInterface.php: 
	b1b40316a4aaa7fc99f43078f215ab16
/vendors/Textpattern/Validator/BlankConstraint.php: 
	fa03c1d5576cbb03d62113e84617016b
/vendors/Textpattern/Validator/CategoryConstraint.php: 
	7983c8612d3289f20ee02c07657102e3
/vendors/Textpattern/Validator/ChoiceConstraint.php: 
	3308767c97cfb14f608a01d7583c79a6
/vendors/Textpattern/Validator/Constraint.php: 
	ac476eae8cd4acbf30b1f1ed80f59240
/vendors/Textpattern/Validator/FalseConstraint.php: 
	fa81622e336dc47e5706c860983fe79a
/vendors/Textpattern/Validator/FormConstraint.php: 
	8f5c5ececcc8b9b45ab9d237f1d1ba60
/vendors/Textpattern/Validator/SectionConstraint.php: 
	18a6828594b47798bf7db56f9e01c40c
/vendors/Textpattern/Validator/TrueConstraint.php: 
	415c2ec0adc2a37b0c9bfb82af66b000
/vendors/Textpattern/Validator/Validator.php: 
	ff06c7f8ccdc75c195c8cc38c624ea0f
/vendors/Txp.php: 
	3cbca9376577717d0a4cfc80903013ff

------------------------

Offline

#25 2016-10-03 06:05:14

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

Bloke wrote #301904:

Your diagnostics really would help us reproduce this.

Can you check which PCRE version you have with your installed PHP? If you can write an article (without Textile switched on!) that contains this:

PHP version 7 seems to be the obvious item.
Ive just noted that textpattern requires PHP 5.4+ My host offers 5 as an option so i can downgrade

The host date and timezone dont match textpattern and reading the requirements timezone seems to be important. I can look at that

iconv directives are blank

Multibyte support has some no value lines

Multibyte Support enabled
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input no value no value
mbstring.http_output no value no value
mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml)
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

Offline

#26 2016-10-03 06:38:01

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

I believe i have the solution.

Installing and selecting the US English language pack in Textpattern Double and Single quotes are parsed correctly .
With the British English language pack it doesnt.

I can recreate the problem by selecting British English again. Quotes display correctly with BE but dont work. Also with the British English language pack enabled any double byte languages dsplay as garbage text under the Language select drop down menu.

I can live with Zees instead of Zeds but let me know if you want other details

I have corrected the host date.time zone but PHP is still on version 7 . Should i downgrade ?

Offline

#27 2016-10-03 07:52:39

StFual
Member
Registered: 2016-09-30
Posts: 19

Re: Quotes in pasted blocks of text

colak wrote #301903:

This is indeed true! In such cases I use a bitly short url and then add <txp:hide>https://web.archive.org/web/20151019021621/http://textpattern.com/documentation</txp:hide> so as to keep a record of the web archive’s url just in case bitly decides to close down at some point. Alternatively you can use raw html: <a rel="external" href="https://web.archive.org/web/20151019021621/http://textpattern.com/documentation">your link</a>

Thanks. That was a “holy crap” moment!. While i’ve cut and pasted them many times I didnt know how those short links were generated before.

Offline

#28 2016-10-03 07:57:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,496
Website GitHub

Re: Quotes in pasted blocks of text

StFual wrote #301907:

Installing and selecting the US English language pack in Textpattern Double and Single quotes are parsed correctly. With the British English language pack it doesnt.

Thanks for the diagnostics info. Very helpful.

I’m not the most well-versed at locale issues, so hopefully one of the more multi-lingual-aware forum members can help out. On the surface, it looks like there are several forces at play, but PHP 7 probably isn’t one of them. I’d leave that alone for now.

A few things that look anomalous in the diagnostics:

  • Last update: 1970-01-01 00:00:00 (might be normal for new installs, can’t remember).
  • Locale: en_GB.UTF-8
  • Charset (default/config): latin1/utf8mb4
  • character_set_client: latin1
  • character_set_connection: latin1
  • character_set_database: latin1
  • character_set_filesystem: binary
  • character_set_results: latin1
  • character_set_server: latin1
  • character_set_system: utf8

That’s a strange concoction of charsets that I would expect contribute to the various effects you’re seeing: garbled characters and perhaps the Textile problems. Quite how to alter it without data corruption I’m not entirely sure. Hopefully Ruud or someone else here on the forum will be able to advise.

Regarding why en-us vs en-gb fixes it: maybe the fact that the server is on US soil and, presumably, configured only with that locale installed, has some bearing.

The other stuff like Litespeed and MariaDB, although not officially supported at the moment, are probably not a factor here if the rest of the installation behaves itself.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#29 2016-10-03 08:21:37

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,217
Website GitHub

Re: Quotes in pasted blocks of text

Bloke wrote #301909:

That’s a strange concoction of charsets that I would expect contribute to the various effects you’re seeing: garbled characters and perhaps the Textile problems. Quite how to alter it without data corruption I’m not entirely sure. Hopefully Ruud or someone else here on the forum will be able to advise.

Yes, that was in the back of my mind earlier. It looks like you don’t have all that many entries in your installation yet (you’ve just been testing, right?) and are using the standard template, so maybe it’s easiest to reinstall the whole thing completely using a fresh database with collation set to utf8mb4 / utf8mb4_unicode_ci or utf-8 / utf8_general_ci. If you can influence your mysql setup on the server, try and make sure that is also set to utf-8.


TXP Builders – finely-crafted code, design and txp

Offline

#30 2016-10-03 08:27:11

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,668
Website

Re: Quotes in pasted blocks of text

StFual wrote #301907:

Installing and selecting the US English language pack in Textpattern Double and Single quotes are parsed correctly .
With the British English language pack it doesnt.

I can recreate the problem by selecting British English again. Quotes display correctly with BE but dont work. Also with the British English language pack enabled any double byte languages dsplay as garbage text under the Language select drop down menu.

That is weird. I routinely use the British English language pack (that is the default) and have no issues with quotes of any type, nor problems with double byte languages. My wife runs a website with en-gb as the admin (back-end) language, all articles are in Japanese.

As Bloke notes, I suspect your issues have more to do with the mix of character_sets in the database. Ideally you’d have them set to utf8mb4 nowadays (except probably@character_set_server@, which is out of your control, I think).

Here are mines:

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8

(that is running on a US based server – Dreamhost)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB