From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64719 Path: news.gmane.org!not-for-mail From: Marco Pessotto Newsgroups: gmane.comp.tex.context Subject: Re: What's the proper way to typeset a slash in a text flow? Date: Tue, 21 Dec 2010 13:04:08 +0100 Message-ID: <87r5dbxrgn.fsf@universe.krase.net> References: <87fwtsaui5.fsf@universe.krase.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292933096 27698 80.91.229.12 (21 Dec 2010 12:04:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 12:04:56 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 21 13:04:51 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PV0xX-0005Gr-OM for gctc-ntg-context-518@m.gmane.org; Tue, 21 Dec 2010 13:04:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 198E7CA92E; Tue, 21 Dec 2010 13:04:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GLJrI54XC9Fw; Tue, 21 Dec 2010 13:04:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8089CA91A; Tue, 21 Dec 2010 13:04:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0AE6CA91A for ; Tue, 21 Dec 2010 13:04:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9wH4xCLk80Iq for ; Tue, 21 Dec 2010 13:04:42 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id A53A0CA918 for ; Tue, 21 Dec 2010 13:04:42 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBLC4fsX011255 for ; Tue, 21 Dec 2010 13:04:41 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PV0xK-0005Ba-MB for ntg-context@ntg.nl; Tue, 21 Dec 2010 13:04:38 +0100 Original-Received: from 93-137-3-251.adsl.net.t-com.hr ([93.137.3.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 13:04:38 +0100 Original-Received: from melmothx by 93-137-3-251.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 13:04:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 71 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-137-3-251.adsl.net.t-com.hr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:PXW+ImlxMi+90it8z3SxFaJlyos= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DJM4Fhi - 46eadf773888 - 20101221 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:64719 Archived-At: Wolfgang Schuster writes: > Am 21.12.2010 um 00:34 schrieb Marco Pessotto: > >> >> See the following minimal example (I'm not trying to typeset urls or >> filesystem paths in this way, just regular text): >> >> %%%%%%%%%%%%%%%%%%%%%%%%%%%% >> \def\myslash{/\penalty-5000} >> \starttext >> >> \type{/} >> >> {\bfd Love/Hate/Play/Love/Hate/Play/Love/Hate/Play/Love/Hate/Play} >> >> \type{\slash} >> >> {\bfd Love\slash Hate\slash Play\slash Love\slash >> Hate\slash Play\slash Love\slash Hate\slash Play\slash Love\slash >> Hate\slash Play} >> >> \type{\textslash} >> >> {\bfd Love\textslash Hate\textslash Play\textslash Love\textslash >> Hate\textslash Play\textslash Love\textslash Hate\textslash >> Play\textslash Love\textslash Hate\textslash Play} >> >> \type{\myslash} >> >> {\bfd Love\myslash Hate\myslash Play\myslash Love\myslash Hate\myslash >> Play\myslash Love\myslash Hate\myslash Play\myslash Love\myslash >> Hate\myslash Play} >> >> \stoptext >> %%%%%%%%%%%%%%%%%%%%%%%%%%%% >> >> Neither one of the first three solutions above give me the right thing, >> because the line won't break at /. What am I missing? >> >> A workaround seems to be >> >> \def\myslash{/\penalty-5000} >> >> and then using \myslash instead of \slash, but I'm pretty sure I'm not >> doing this right. > > MkIV: \setbreakpoints[compound] > Ah, that's odd, because I've already defined that and I didn't realize it fixed the problem (but I was used to type \slash from LaTeX, breaking the typesetting). This \setbreakpoints looks like a panacea to me (it already fixed the hyphen issue some weeks ago, but I didn't know it fixed the slash too). I'm thinking how to make this information more accessible (because from my point of view hate/love is not a compound word) on the wiki. I found this in cont-new.mkiv % potential new defaults: \setbreakpoints[compound] Is this going to happen or there are serious reasons not to have it as default? Thanks again -- Marco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________